You are on page 1of 3

aix

commands

AIX Common Command Reference


cd

Usage Examples: [cd] - Return to home directory, [cd ..] - Move up one directory, [cd PATHNAME] -
Changes the directory to the pathname given ||
date Description: Displays system date and time

cat

Usage Examples: [cat FILENAME] ||


who Description: Shows who is signed on

touch

Usage Examples: [touch FILENAME] ||


vi

Usage Examples: [vi FILENAME] ||


ls

Usage Examples: [ls], [ls -l] [ls -R]- List with long description, [ls | more] - List one page at a time, -R
lists everything recursivly in directory (contents of subdirectories) ||
pwd Description: Displays current directory

man

Usage Examples: [man COMMAND] [man -k KEYWORD] -k will list all commands with the
keyword given ||
cp

Usage Examples: [cp OLDFILENAME NEWFILENAME] ||


chmod

Usage Examples: [chmod u+r FILENAME] - Gives "user" Read access. The first letter represents
(u)ser, (g)roup, or (a)ll. The plus adds access and a minus revokes access. The second letter is the access
type (r)ead, (w)rite, e(x)ecute. [chmod 777 FILENAME] - Gives user, group and all read, write and
execute access. Given the values of read=4, write=2 and execute=1, so if we instead only wanted group
to have read and write access, but not execute we would add 4+2 and put 6 into the middle position
(group). ||
chown

Usage Examples: [chown newowner filename] ||


rm

page 1 / 3
aix
commands

Usage Examples: [rm FILENAME] [rm -r DIRECTORYNAME] The -r will remove dir even if files
or other directories are inside. ||
history

cal

Usage Examples: [cal 12 2005] displays December calander, [cal 2005] displays 2005 calander, [cal
2005 > outfile] directs 2005 calander data to file. ||
ps Description: Displays jobs

du

Usage Examples: [du -k -s directoryname] - Displays size of directory in kilobytes ||


df Description: Disk Usage Free/Used on mounted file
systems

chgrp

groups Description: Displays groups user belongs to

spell

ctrl+z Description: Suspends a foreground job

stop Description: Suspends a background job

kill

Usage: [kill -9 14636] - Kills job with pid 14636, -9 specifies immediate termination ||
r Description: repeat last command (korn shell)

head Description: Display top of file

tail Description: Display end of file

dircmp Description: Compare contents of 2 directories

&

Usage: enter at end of command ||


>, >>

Usage Examples: [cmd > file] sends output of command to file, [cmd >> file] sends output of command
to file appending to existing data, [cmd < file] takes input for command from file ||
bg

page 2 / 3
aix
commands

Usage Examples: first use jobs command to get id in [ ]1, 2, etc then issue [bg #] ||
fg

Usage Examples: first use jobs command to get id in [ ] 1,2, etc then issue [fg #] ||
jobs Description: Displays active jobs

sort Description: Sort file

mkdir Description: Create a directory

mv

Usage Examples: [mv oldfilename newpath/newfilename] ||


echo $SHELL Description: Displays Shell being used. Generally
chs=c & ksh=korn

at

Usage Examples: [at 7:59 pm June 9] Press enter, then all commands to execute, then <ctrl+d> to
end command entry. ||
istat Description: view inode information

lp

Usage Examples: [/usr/local/bin/lp -ditapp FileToPrint] - Print output to itapp printer ||


find

Usage Examples: See book ||


finger Description: Display information about a user

wall Description: Send message to everyone

write Description: Send message to single user

Big Calm (Handy AIX Commands)----

Universal Command Guide----

||
Korn Shell Documentation

page 3 / 3

You might also like