Tuesday, March 8, 2011

System Monitoring Tools Every SysAdmin Should Know




Linux Change Your Own Password


Login using the ssh client or open a command-line terminal (select Applications > Accessories > Terminal), than type the following command:
$ passwd


Rename an Account [ User ID ]


You need to use the usermod command. It can modify the system account files (such as /etc/passwd) to reflect the changes that are specified on the command line. The syntax is as follows:


In this example, rename login id from yuva to yahoo. Open a command-line terminal (select Applications > Accessories > Terminal), and then type the following command


 sudo usermod -l yahoo yuva


To verify new changes, enter:

$ id yahoo

20 Linux System Monitoring Tools Every SysAdmin Should Know

#1: top - Process Activity Command


The top program provides a dynamic real-time view of a running system i.e. actual process activity. By default, it displays the most CPU-intensive tasks running on the server and updates the list every five seconds.


#2: vmstat - System Activity, Hardware and System Information


The command vmstat reports information about processes, memory, paging, block IO, traps, and cpu activity.
# vmstat 3

#3: w - Find Out Who Is Logged on And What They Are Doing


w command displays information about the users currently on the machine, and their processes.

# w username
# w yuva

1 comment: