CentOS Linux System Information - System Uptime


ps

  • This command reports information about a selection of the active processes.
  • Different from top command, which give you the information in real time; ps command only give you the information at particular snapshot.
Synopsis
vmstat [options]
 
 optionsdescription
 -A or -edisplay all processes
alists all processes on a terminal, including those of other user
uadding a column for owner of the process.
x lists all processes without controlling terminals

Note
uptime -V is used to displayed version of uptime

Example
 

# ps aux

SER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.1 2424 552 ? S Apr28 0:01 init [5]
root 2 0.0 0.0 0 0 ? S Apr28 0:00 [migration/0]
root 3 0.0 0.0 0 0 ? SN Apr28 0:00 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S< Apr28 0:00 [events/0]
root 5 0.0 0.0 0 0 ? S< Apr28 0:00 [khelper]
root 6 0.0 0.0 0 0 ? S< Apr28 0:00 [kacpid]
root 87 0.0 0.0 0 0 ? S< Apr28 0:00 [kblockd/0]
root 88 0.0 0.0 0 0 ? S Apr28 0:00 [khubd]
root 105 0.0 0.0 0 0 ? S Apr28 0:00 [pdflush]
root 106 0.0 0.0 0 0 ? S Apr28 0:00 [pdflush]