System information
Red Book for AIX Rel. 7.0 and 8.0
146 © 2006 Intuit Inc. All rights reserved.
System Management Commands
The following table describes common AIX system management commands.
Command Description and Example
pwd
Displays your current directory path.
Example:
root:/# pwd
root:/u2/eclipse#
who –b
Displays the last reboot date.
Example:
root:/# who -b
system boot Jan 06 20:09
shutdown –Fr
Reboots the system.
shutdown –F
Halts the system.
oslevel
Displays the AIX version.
Example:
root:/# oslevel
4.3.3.0
ps au|pg
Displays all users cpu and memory usage
Example:
USER PID %CPU %MEM SZ RSS TTY STAT STIME TIME CMND
root 516 16.2 0.0 8 7332 -A Feb 01 5516:26 kproc
root 774 15.1 0.0 8 7332 -A Feb 01 5144:03 kproc
root 1290 15.0 0.0 8 7332 -A Feb 01 5123:37 kproc
root 1032 14.8 0.0 8 7332 -A Feb 01 5055:35 kproc
mbarr 106126 1.2 0.0 6848 6120 -A 04:00:04 30:38 phantom SOE.PH.O
root 5254 1.0 0.0 164 36 -A Feb 01 350:56 /usr/sbin/syncd
mbarr 68544 1.0 0.0 4164 3468 -A 21:57:02 38:32 phantom SYSTEM.A
pyaracs 108322 0.5 0.0 10888 9344 pts/108 A 09:06:14 6:38 uv
ps au|sort –k3rn|pg
Sorts the list by top cpu percentage (the 3rd column is cpu%)
Example:
kohalb 29428 0.3 0.0 7336 6580 pts/32 A 13:59:52 0:09 uv
rinjes 84494 0.3 0.0 7476 5964 pts/11 A 06:03:35 3:04 uv
bredav 75838 0.2 0.0 8672 7884 pts/78 A 13:04:36 0:21 uv
hamshe 53772 0.2 0.0 7312 6528 pts/47 A 12:17:51 0:24 uv
kitjud 24226 0.2 0.0 8172 7364 pts/35 A 11:53:18 0:42 uv
ps au|sort –k5rn|pg
Sorts the list by top memory usage. The 4th column is the memory usage.
Example:
parjim 72820 0.0 0.0 11056 9896 pts/31 A 06:48:37 0:23 uv
kohbon 52618 0.1 0.0 10164 8960 pts/30 A 06:46:44 1:23 uv
fultom 48022 0.1 0.0 9820 8156 pts/77 A 08:07:49 0:31 uv
dealar 44408 0.0 0.0 9524 8640 pts/44 A 07:11:45 0:19 uv
belpet 67996 0.0 0.0 9480 8320 pts/63 A 07:57:34 0:12 uv