Bash 101 Flashcards
Print working directory
pwd
Remove a folder and its files, forcibly
rm -rf filename
In Less, go to the previous search term
N
Modifier to make string searching case insensitive and recursive
-ri
Go to the last directory you were in
Cd -
&&
Perform both commands, but only the second if the first completed
In Less, search
/
Flag for listing files by reverse time modified
-rt
Tab
Tab completion
In Less, go to the next search term
n
Run the last command again (specific)
!cmd
Show running processes
ps
Pipe character
Funnel the output to the command after the pipe, instead of STDOUT
In Less, back or forward a page
^B
^F or space
Erase from cursor to beginning of line
^ U
Kill a process
Kill
In Less, move to the beginning of the file
1G
Move cursor to beginning of line
^ A
In Less, quit
q
In Less, move to the end of the file
G
Flag for showing hidden files with ls
-a