Friday, August 3, 2012

Unix Useful Commands - Part 2

1). Find whether OS is 64/32 Bit Kernel in UNIX
OS
Command
AIX
getconf -a | grep –i KERN OR
bootinfo -K OR
file /usr/lib/boot/unix
HP-UX
getconf -a | grep -i KERN
Solaris
isainfo –kv
Linux
uname –a
2).Find Free Physical Memory in UNIX
OS
Command
AIX
bootinfo -r
HP-UX
grep -i Physical /var/adm/syslog/syslog.log
Solaris
prtconf
Linux
free -m
3).Find CPU details in UNIX
OS
Command
AIX
lsdev -Cc processor
HP-UX
ioscan –fnC processor
Solaris
psrinfo -v
Linux
cat /proc/cpuinfo
4).Find SWAP Size details in UNIX
OS
Command
AIX
lsps –a
HP-UX
                swapinfo -a
Solaris
swap –l
Linux
free -m

No comments: