What are the 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:

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.

Learning the Unix Operating System
Learning the Unix Operating System
If you're new to Unix, this concise book will tell you just what you need to get started and no more. This fifth edition is the most effective introduction to Unix in print, covering Internet usage for email, file transfers, and web browsing. It's an ideal primer for Mac and PC users who need to know a little about Unix on the systems they visit. The new edition also contains many major and minor updates to help the reader navigate Unix's ever-expanding capabilities. In response to the popularity of Linux, the book now focuses on the popular bash shell preferred by most Linux users. A new chapter explains how to use ftp, pine for mail, and offers useful knowledge on how to surf the web. And the author has included tips throughout the text on security basics, especially in the Internet and networking sections. The book includes a completely updated quick reference card to make it easier for the reader to access the key functions of the command line.


Bookmark What are the Basic Unix Commands?

Latest Blog Posts


English English GermanGerman SpanishSpanish FrenchFrench ItalianItalian PortuguesePortuguese RussianRussian DutchDutch
GreekGreek HindiHindi JapaneseJapanese KoreanKorean ChineseChinese Chinese (Simplified)Chinese (Simplified) ArabicArabic

Copyright 2009 Tech-FAQ. All rights reserved. Privacy Policy.