Most Commonly used Aix Command
lspv …………………………………………….…..To list Physical volumes lsvg …………………………………………………To list Volume groups lsvg –o ………………………………………….….To list active/varyon volume groups lsvg -l anyvg …………………………………….…To list filesystems of anyvg lsvg anyvg ……….. ……………………………….To list properties of anyvg lsdev -Cc adapter ……………………………….. To display the adapters lsdev -Cc disk ……………………………………. To list the disks lsdev -Cc cdrom …………………………………..To list cdrom lsconf |more …………………………………….…To list the configuration of the server lscfg –vp |more …………………………….….. .. To list the VPD info of the h/w lscfg -vl fcs0 ……………………………….………To list VPD info of particular device. lscfg -vl hdisk0 …………………………………….To check the VPD info of the HDD bosboot -ad /dev/hdisk0 ………………………….To copy the bootimage to the HDD bootinfo –b ……………………………….………..To check the current boot device. bootlist -m normal –o …………………..……….. To view the boolist pwd ………………….. ……………………...…….To view the present working directory. extendvg rootvg hdisk0 ………………..…………To extend a PV in the VG. df –gt ……………………………………………… To see all the mounted filesystems last shutdown ………………………………..…… To see the last shutdown on the system. who ………………………………………………… To see who are logged in the system. date ………………………………………………....To see the date on the syatem. errpt ………………………………………….…….. To check the error logs on the system. Errpt –a ……………………………………………..To check the details of error logs. errclear 0 ………………………………………….. To clear the error logs. cfgmgr –v ………………………………………….. To configure the new h/w uptime ……………………………………………...To check the system uptime. shutdown -F now ………………………………….To shutdown the system. ls –l …………………………………………………To list the files and directories in a particular folder. fsck –y /dev/hd3 ………………………………….. File system check and correction. lsdev –Cc if ……………………………………….. To list the n/w devices. lsvpcfg …………………………………………..…. To list the virtual path config. entstat –d ent0 ……………………………………. To list the config of the n/w interface. lsdev –Cc tape ……………………………..…….. To list the tape devices. chdev –l hdisk# -a pv=clear …………………..…To clear the PVID last root …………………………………………… To list the previous root logins lspv hdisk# ………………………………….…….. To see properties of hdisk. lspv –p hdisk0 ……………………………….……To see physical allocation of data on HDD. lsattr –El fcs0 ……………………………………… To see attributes of FC port lsattr –El tty0 export TERM=vt100 …………………………….…Sets the terminal to vt100 bootinfo –y ………………………………………... To identify the ?bit processor are present. lsattr –El sys0 | grep realmem …………… ……..List the memory present in the system. chfs –a size=+10G /mountpt ………….. ………..To change the size of the filesystem. lsslot –c pci ………………………………………... To list the devices connected in PCI slots. lsdev –Cs scsi ………………………………………Displays the scsi devices oslevel –rl 5300-05 …………….............................To see the recommended filesets required to upgrade to specified ML lsvg –M vgname |grep –I stale |wc –l ……............To see the no. of stale partitions while the PVs in a vg are getting mirrored ulimit –a vi /etc/securities/limits ………………………………To change the umlimits. varyonvg vgname…………………………………….To change ( make it activite ) the state of vg varyoffvg vgname……………………………………..To change (make it deactivate ) the state of vg synclvodm vgname reducevg vgname hdisk#......................................To remove a hdisk from volume group instfix –ik IY#####............................................To see if Apar is installed or not. lsps –a …………………………To view paging size. msps –s’#value no.’ vgname hdisk_no…………………………To make new paging size. rmps vgname………………………………..To remove paging size ps –efmo THREAD ………………………….To view all running thread . lssrc –a………………………………..To list all subsystem. Lssrc –g nfs ………………………..To list all NFS dameons. Smitty cdrfs …………………………..To mount device. lslpp –l | grep ‘name of the file sets’…………….To view if file sets is present or not. ls –li………………………..List inode no. of the file. env | grep umask ……………………..To display export umask=#..........................To set the value of umask. stty erase click backspace…………………….To use backspace to delet character.