Common Linux Command
Common Linux command for server administration.
1. top
performance monitor, CPU, memory usage, paging…etc
2. ps -ef
list out all process which is running
3. grep
a find unitility
mix with ps, list out the processes launched by this user
e.g. ps -ef | grep [user name]
4. kill
purge process
e.g. if httpd is hang up and normal shutdown of web server / db failed,
with 2 & 3, obtain the process ID
then kill the process manually.
e.g.
[root@mylinux root]# ps -ef | grep nobody
root 18970 18264 0 09:24 pts/0 00:00:00 grep nobody
[root@mylinux root]# kill -9 18970
Remark: -9 means force kill
5. vnc
Linux build in vnc server support, in console, use
$vncserver [session id]
to start a session
e.g. vncserver :1
after using, type $vncserver -kill [session id] to terminate the remote desktop
e.g. vncserver -kill :1

Leave a Reply
Want to join the discussion?Feel free to contribute!