Username   Password       Register

Basic Unix Commands

The total number of Unix commands is immense. No normal user or system administrator would ever need to know them all.

The Unix commands available to you will vary based upon several factors:

  • The version of Unix you are using (FreeBSD, Linux, Solaris, AIX, HP-UX, OpenBSD, etc...)
  • The Unix shell you are using (sh, csh, tcsh, ksh, bash, etc...)
  • The packages installed on the system and the way the system is configured
  • Your access level on the system

In this FAQ, I will address only Bash shell commands, as all other major shells can now be considered obsolete.

This list of basic Unix commands will get you started using and learning Unix.

Use the Unix `man` command to learn more about any of these commands.

Basic Unix Commands

Unix CommandDescription
lsList directory contents
cpCopy files
rmRemove directory entries
fileDetermine file type
findWalk a file hierarchy
whichLocate a program file in the user's path
whereisLocate programs
gcc, g++GNU project C and C++ Compiler
gdbThe GNU Debugger
lessView the contents of a text file
diffFind differences between two files
cmpCompare two files
viText editor
chmodChange file modes
manDisplay the on-line manual pages
mvMove and rename files
ispellInteractive spelling checker
biffBe notified if mail arrives and who it is from
lprPrint a file
lpqShow the print queue
ftpTransfer a file to another Unix system
logoutQuit using the system
pwdPrint working directory name
cdChange working directory
lnMake a file link
mkdirMake directories
rmdirRemove directories
chmodChange file modes
quotaDisplay disk usage and limits
historyDisplay a list of recent commands
psShow the status of processes
killStop a running processes
passwdChange your password
aliasCreate a command alias
unaliasDelete a command alias
exportSet an environment variable
scriptRecord your terminal session to a file
bgSend a job to the background
fgBring a job to the foreground
jobsPrint a list of current jobs

The basic Unix commands are fairly standard across the various Unix platforms, although command arguments differ at times. In addition, the basic Unix commands vary between Unix shells.

blog comments powered by Disqus

Discuss Basic Unix Commands in the forums.

 
(0 - user rating)