Virginia Tech® home

Useful Linux Commands

Useful Linux CommandsNote
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
lsList 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 + kDelete everything after the cursor
Ctrl + rReverse-i-search; recall matching command history as you type
Ctrl + wDelete 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