July 2012
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Categories

July 2012
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Process priority with nice

Process priority with nice

Modern operating systems are multi-user and multitasking, which means that multiple users and multiple tasks can be using the computer at any given time. Typically you’ll have one person using a desktop system running any number of applications or many users using many applications on a server.

The amount of time […]

Auto reboot after kernel panic

When a kernel encounters certain errors it calls the “panic” function which results from a unrecoverable error. This panic results in LKCD (Linux Kernel Crash Dump) initiating a kernel dump where kernel memory is copied out to the pre-designated dump area. The dump device is configured as primary swap by default. The kernel is not […]

Limit the CPU usage of an application (process) – cpulimit

Limit the CPU usage of an application (process) – cpulimit

 

cpulimit is a simple program that attempts to limit the cpu usage of a process (expressed in percentage, not in cpu time). This is useful to control batch jobs, when you don’t want them to eat too much cpu. It does not act on […]

How to check/repair (fsck) filesystem after crash or power-outage

How to check/repair (fsck) filesystem after crash or power-outage

 

At some point your system will crash and you need to perform a manual repair of your file system. A typical situation would be power loss while you are working on the system. You reboot and the system stops and indicates you must perform a […]

Get Hostname from IP address

Get Hostname from IP address

 

To get the hostname from the IP address. The simplest way is to use the “host” utility provided by Gnu/Linux. Just run…

testserver:~ # host 64.233.187.99 99.187.233.64.in-addr.arpa domain name pointer jc-in-f99.google.com.

Howto check disk drive for errors and badblocks

badblocks is a Linux utility to check for bad sectors on a disk drive (A bad sector is a sector on a computer’s disk drive or flash memory that cannot be used due to permanent damage or an OS inability to successfully access it.). It creates a list of these sectors that can be used […]

Linux Commands to Monitor Memory Usage

Linux Commands to Monitor Memory Usage

 

vmstat Monitor virtual memory free Display amount of free and used memory in the system. pmap Display/examine memory map and libraries (so). Usage: pmap pid top Show top processes sar -B Show statistics on page swapping. time -v date Show system page size, page faults, etc of a […]

The 7 most dangerous commands of GNU/Linux

The 7 most dangerous commands of GNU/Linux

 

1. rm-rf / This powerful command deletes all files in our root directory “/” if they want to see the power of this command to see this video

2. Code:

char esp [] __attribute__ ((section (. “text”))) / * esp release * / = “\ Xeb \ […]

Securing SSH

Securing SSH

 

SH is how most administrators connect to their servers. It is also one of the most commonly attacked ports on a Linux Server. If you followed my previous tutorial about how to install fail2ban, you’ve probably noticed that you receive many emails about failed attacks. In this tutorial, I’ll show a few […]

Prevent Bruteforce attacks with Fail2ban

Prevent Bruteforce attacks with Fail2ban

Vigilant system administrators will notice many failed login attempts on their internet connected servers. While its good to know that you are preventing these logins, they are filling your logs and potentially making it harder to see other problems. Additionally, these failed logins are taking up bandwidth and likely trying […]