Basic Linux Commands

Useful Basic Linux Commands

File Commands:

ls             - Directory listing
ls -al         - Formated listing

cd             - Change to home            
cd <dir>       - Change directory to dir

pwd            - Show current directory

Shortcuts:

ctrl + c                 - Halts current command
ctrl + z                 - Stop current command

fg                       - Resume stopped command in foreground
bg                       - Resume stopped command in background

exit                     - Log out of current sesstion
ctrl + d                 - Log out of current sesstion

ctrl + w                 - Erases one word in current line
ctrl + u                 - Erase whole line

ctrl + r                 - Reverse lookup of previouse commands
!!                       - Repeat last command

Searching:

System Info:

SSH:

Network:

Process Management:

File Permissions:

For more information about file permission visit chmodcommand.com

Compression:

Installation:

Last updated

Was this helpful?