Unix and Linux Commands List



The following is a list of the most common commands found on most UNIX and Linux distributions. For more information on a particular command, see its manual page by typing man command or command --help.



alias
Set and view command aliases.
archPrint machine architecture.
awk
Pattern scanning and processing language.
bashBourne again shell.
bg
Move process running in foreground to the background.
biff
Be notified when mail arrives.
catConcatenate and print files.
cd
Change directory.
chageChange user password expiry information.
chgrp
Change group ownership.
chmodchange file permissions.
chownChange file and group owner.
chrootRun command with special root directory.
chshChange login shell.
clearClear the terminal screen.
cpCopy files and directories.
crontab
Maintain crontab files.
cshC shell.
cutRemove sections from each line of files.
date
Print or set the system date and time.
ddConvert and copy a file.
dfPrint file-system disk space usage.
diffFind differences between files.
digDNS (Domain Name System) lookup utility.
dmesgPrint diagnostic messages from system buffer.
dnsdomainnameShow system’s DNS (Domain Name System) domain name.
domainnameShow system’s NIS (Network Information System) or YP (Yellow Pages) name.
duEstimate file space usage.
echo
Display a line of text.
envRun a program in a modified environment.
falseExit with a status code indicating failure.
fdiskDisk partition table manipulator.
fg
Move process running in background to the foreground.
fileDetermine file type.
find
Search for files in a directory hierarchy.
free
Display amount of free and used system memory.
ftpFTP client.
fuserIdentify processes using files or sockets.
gccGNU C and C++ compiler.
grepPrint lines matching a given pattern.
groupaddCreate a new group.
groupdel
Delete a group.
groupmod
Modify a group.
groupsPrint all the groups the user belongs to.
gunzipUncompress files compressed using Lempel Ziv encoding.
gzipCompress files using Lempel Ziv encoding.
hostDNS (Domain Name System) lookup utility.
hostnameShow or set system hostname.
id
Print real and effective user ids and group ids.
ifconfig
Configure a network interface.
kill
Terminate a process.
kshKorn shell.
lastShow listing of last logged-in users.
lastlogShow last login times of accounts.
lnMake links between files.
lsList directory contents.
lsof
List currently open files; also sockets and associated processes.
mail
Send and receive mail.
man
Format and display manual pages.
mesg
Control write access to a terminal.
mkdir
Make directories.
moreDisplay file contents, one screen-full at a time.
mount
Mount a file system.
mv
Move and rename files and directories.
netstatPrint network connections, routing tables, interface statistics.
masquerade
connections, and multicast memberships.
niceRun a program with modified scheduling priority.
nslookupQuery internet name servers.
passwd
Change login and password attributes.
ping
Send icmp echo_request to network hosts.
psReport process status.
pwd
Print name of working directory.
quotaDisplay disk usage and limits.
quotaoff
Turn off file-system quotas.
quotaon
Turn on file-system quotas.
repquota
Summarize quotas for a file system.
rmRemove files or directories.
rmdir
Remove empty directories.
routeShow or manipulate system routing table.
rpcinfo
Report rpc (remote procedure calls) information.
sedStream editor.
setquota
Set disk quotas.
showmount
Show “mount” information for an nfs (network file system) server.
shutdownBring the system down.
sleep
Delay for a specified amount of time.
sort
Sort lines of text files.
straceTrace system calls and signals.
stringsPrint printable characters in files.
su
Run a shell with substitute user and group ids
tailOutput the last part of files.
tar
Archiving utility.
tcsh
C shell with filename completion and command editing.
telnetTelnet client.
tftpTFTP (Trivial File Transfer Protocol) client.
traceroutePrint the route that packets take to a destination host.
true
Exit with a status code indicating success.
umount
Unmount a file system.
unamePrint system information.
useradd
Create a new user.
userdel
Delete user account.
uptime
Print how long the system has been running.
vi
Text editor.
w
Show users that are logged on and what they are doing.
wall
Send message to every user’s terminal.
wc
Print the number of bytes, words, and lines in files.
whereis
Locate the binary, source, and manual page files for a command.
which
Show the full path of commands.
who
Show users that are logged on.
whoami
Print effective user ID.
write
Send a message to another user.
ypdomainname
Show or set system’s NIS (Network Information System) orYP (Yellow Pages) domain name.