Linux Command Line Cheat Sheet
Linux Command Line Cheat Sheet
com Python jQuery NodeJS PHP Java Ruby Javascript ActionScript CSS Express More » Search
!$
Operations cmd1 ; cmd2
Run cmd1 then cmd2 Last argument of previous com
cmd1 |& cmd2
stderr of cmd1 to cmd2
mand
pwd cmd1 && cmd2
Show current directory
Run cmd2 if cmd1 is successful
ALT-.
Last argument of previous com ls Options
mkdir dir cmd1 || cmd2 mand
Run cmd2 if cmd1 is not succes
!* -a
Make directory dir
cd dir
sful
cmd All arguments of previous com Search Files -R
Show all (including hidden)
Change directory to dir mand
cd ..
Run cmd in a subshell
^abc-^-123 grep pattern files Recursive list
Go up a directory Run previous command, replaci
Search for pattern in files -r
ls ng abc with 123 grep -i Reverse order
List files
Case insens-itive search -t
grep -r Sort by last modified
File Recursive search
grep -v
-S
Sort by file size
Operations Inverted search -l
Nano touch file1
Process grep -o
Show matched part of file only -1
Long listing format