Show Menu
Cheatography

Linux Command Line Cheat Sheet Cheat Sheet (DRAFT) by

An overview of often used Linux Command Line Commands and Shortcuts

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Bash Commands

uname -a
Show system and kernel
head -n1 /etc/issue
Show distri­bution
mount
Show mounted filesy­stems
date
Show system date
uptime
Show uptime
whoami
Show your username
man command
Show manual for command

Bash Shortcuts

CTRL-c
Stop current command
CTRL-z
Sleep program
CTRL-a
Go to start of line
CTRL-e
Go to end of line
CTRL-u
Cut from start of line
CTRL-k
Cut to end of line
CTRL-r
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