fsu seal Florida State University
Creating a website (on FSU's server): Basic Unix Tutorial


Basic Unix Tutorial

An operating system is the software that runs a computer, like Windows, Mac, and Unix. Unix is the operating system that this page is about. It has many similarities to Windows and Mac, the most noticeable difference being that it is completely text-based; everything is done from a command line. It would be like if Windows XP came with no software other than the Command Prompt (on older versions the MS-DOS prompt) or if Mac only came with Terminal.


Command Prompt running on Windows XP:

Screenshot of Command Prompt running on Windows XP



Basic Unix Commands

Basic Unix Commands
Command Effect
ls List the contents of the current directory.
cd Move to a different directory.
man Command explanation.
mkdir Create a new directory.
rm Deletes a file.
rmdir Removes an empty directory.
exit Logout/Close window
Control + C Terminate the currently running program. Has no effect when no other programs are running (used to terminate a program when it freezes).


Unix Terminology

Unix Terminology
Term Symbolic Abbreviation Meaning
current directory . The directory that you are currently in.
parent directory .. The directory that contains the directory you are currently in.
home directory ~user The directory that belongs to user and that user starts in when he or she logs in.


Moving around the command line quickly

Command-Line Keyboard Shortcuts
Unix Keystroke Windows Equivalent Effect
Control + c Terminate the currently running program. Has no effect when no other programs are running.
Control + p (Unix only) or Up arrow Previous command
Control + n (Unix only) or Down arrow Next command
Tab Command and filename auto-complete
Esc + Backspace Control + Backspace Delete last word
Esc + d Control+Delete Delete next word
Backspace Backspace Delete last charater
Control + d Delete Delete next character
Esc + b Control + [Left arrow] Move backwards one word
Esc + f Control + [Right arrow] Move forwards one word
Control + u (No Windows equivalent) Delete entire line
Control + w (No Windows equivalent) Delete text backwards to beginning of line
Control + k (No Windows equivalent) Delete text forwards to end of line
Control + e (No Windows equivalent) Go to end of line
Control + a (No Windows equivalent) Go to beginning of line


This information is officially documented at:

GetJava Download Button NetBeans Download Button