Virginia Tech® home

Useful Linux Commands

Useful Linux Commands Note
mkdir [directory] Make directory
cd [directory] Change directory
cd .. Change your directory to the parent of the one you are currently in (i.e. up one directory)
cp [source] [destination] copy [source] to [destination]
echo [string] Prints the specified text
gedit [string] GNOME text editor
ls List your directory contents
man [command] Displays a manual on the command specified (type q to exit)
rm [file] Remove
rm-r [directory] Recursively remove (directories with contents)
Ctrl + k Delete everything after the cursor
Ctrl + r Reverse-i-search; recall matching command history as you type
Ctrl + w Delete the word in front of the cursor
. A dot represents your current directory
.. Parent directory
\ The backslash nulls the function of the next character
>> Appends information to the end of the specified file
& runs program in the background (so you can still use the terminal while it runs)
Paste (in GNOME)* Right click (default)
Copy (in terminal) Highlight the text

 



Comments to: ha@vt.edu