Home OPERATING SYSTEMS AIX Useful AIX Commands

Useful AIX Commands

E-mail Print PDF
User Rating: / 8
PoorBest 
Here some useful AIX commands.

TO VIEW SYSTEM ERROR LOGS ( AIX 4.x / 5.1 )

hostname>errpt ( by IBM )

TO CHANGE A PHRASE IN A DOCUMENT WITH ANOTHER ONE ( AIX 4.x / 5.1 )

#sed "s@HOD@HVD@g" tnsnames.ora > tmp    ( this changes HOD as HVD  )

#mv tmp tnsnames.ora
 

TO WRITE LIST OF FILES INTO A TEXT FILE, WHICH CONTAINS A TEXT ( AIX 4.x / 5.1 )

find .|xargs grep <text> >list 2>&1
 

CHANGE PERMISSION OF LIKE FILESYSTEMS AND SUB-DIRECTORIES ( AIX 4.x / 5.1 )

chmod -R 777 ./sapdata?
 

TO LIST ONLY DIRECTORIES UNDER A DIRECTORY ( AIX 4.x / 5.1 )

find . -type d

CHANGE A USERS PASSWORD ( AIX 4.x / 5.1 )

alterpwd <username>

TO LIST DIRECTORIES WITH THEIR SIZE UNDER A DIRECTORY ( AIX 4.x / 5.1 )

du -ks *

USING SCREEN ( AIX 4.x / 5.1 )

1. activate by command #screen.
2. start process.
2. to put processes into screen, press CTRL+A+Z.

yu have to see "[1]+ Stopped screen " like message

4. if we closed the session, execute command #screen -r.
>> if there is only one process we put into screen before we exit, then it automatically loaded
>> if there are more than one process, we've put into screen, they will be listed with process ID. To call one of them execute the following command.

#screen -r pID
 

VI COMMANDS

TO GO LAST LINE = SHIFT+g
TO GO FIRST LINE = :1
 
Comments (0)add comment

Write comment
smaller | bigger

security image
Write the displayed characters


busy
 

Our valuable member Huseyin Bilgen has been with us since Saturday, 06 May 2006.