Basic Linux Commands Flashcards
http://www.cheatography.com/davechild/cheat-sheets/linux-command-line/
(Bash Commands) uname -a
Show system and kernel
(Bash Commands) head -n1 /etc/issue
Show distribution
(Bash Commands) mount
Show mounted filesystems
(Bash Commands) date
Show system date
(Bash Commands) uptime
Show uptime
(Bash Commands) whoami
Show your username
(Bash Commands) man commandName
Show manual for commandName
(Bash Shortcuts) CTRL-c
Stop current command
(Bash Shortcuts) CTRL-z
Sleep program
(Bash Shortcuts) CTRL-a
Go to start of line
(Bash Shortcuts) CTRL-e
Go to end of line
(Bash Shortcuts) CTRL-u
Cut from start of line
(Bash Shortcuts) CTRL-k
Cut to end of line
(Bash Shortcuts) CTRL-r
Search history
(Bash Shortcuts) !!
Repeat last command
(Bash Shortcuts) !abc
Run last command starting with abc
(Bash Shortcuts) !abc:p
Print last command starting with abc
(Bash Shortcuts) !$
Last argument of previous command
(Bash Shortcuts) ALT-.
Last argument of previous command
(Bash Shortcuts) !*
All arguments of previous command
(Bash Shortcuts) ^abc^123
Run previous command, replacing abc with 123
(Bash Variables) env
Show environment variables
(Bash Variables) echo $NAME
Output value of $NAME variable
(Bash Variables) export NAME=value
Set $NAME to value