Sunday, 13 January 2013

monitoring command in linux rhel 5 or 6


# Tty                          [to open terminal]

# w                                [show login user]

# who                             [show login user]

# pinky                           [show remotely login user]

# who –a                           [show all login user at every terminal]

# last                                   [show last login]

# last b                                   [show bad login]

# uptime                                    [show login duration]

# vi /var/log/temp                            [last log file]

# vi /var/log/wtmp                            [view last bad login file]

# top                                                          [show process]

# uname                                                        [show kernel]

# uname –r                                                        [kernel release]

# uname –v                                                            [kernel version]

# uname –o                                                               [operating system]

# cat /proc/cpuinfo                                                        [cpu information]

# cat /proc/meminfo                                                        [memory information]

# cat /proc/mdstat                                                               [status of raid]

# free                                                                                       [show ram]

# free –m                                                                                      [show ram in mb]

# swapon –s                                                                                      [status of swap]
 
#df -TH                                                                                                 [show partition space]
 
#du -sh  /Vijay                                                                               [show particular directory of folder]


No comments:

Post a Comment