50+ Linux Hacks: A Cheat Sheet for Command Line

ads

Shortcuts are time saver, but when we switch to linux is sometimes the only way to execute commands. This is the collections by DaveChild with the most used Linux Command Line. Download below the attached PDF file.

Nano Shortcuts

Files

CtrlR Read file
CtrlO Save file
CtrlX Close file

Cut and Paste

ALTA Start marking text
CTRLK Cut marked text or line
CTRLU Paste text

Navigate File

ALT/ End of file
CTRLA Beginning of line
CTRLE End of line
CTRLC Show line number
CTRL_ Go to line number

Search File

CTRLW Find
ALTW Find next
CTRL\ Search and replace

Bash Shortcuts

CTRLc Stop current command
CTRLz Sleep program
CTRLa Go to start of line
CTRLe Go to end of line
CTRLu Cut from start of line
CTRLk Cut to end of line
CTRLr Search history
!! Repeat last command
!abc Run last command starting with abc
!abc:p Print last command starting with abc
!$ Last argument of previous command
ALT-. Last argument of previous command
!* All arguments of previous command
^abc­^­123 Run previous command, replacing abc with 123

Download Command Line PDF Cheat Sheet

ads
Get our hottest stories to your inbox.
Check your inbox for a confirmation email.

Have something to add to this story? Share it in the comments.