Add string to beginning of each line (before existing strings) and output to new file - Useful for custom password lists (see also, Crunch in Security Tools List using -- "crunch -s" to achieve similar results)
Search for binaries with capabilities set (similar to SUID) (1,2)
getcap-r/2>/dev/null
Search for IPv4 address in a file
grep-E-o"([0-9]{1,3}[\.]){3}[0-9]{1,3}"filename
Find string within file(s)
grep-rnw'/path/to/somewhere/'-e'pattern'-ror-Risrecursive,-nislinenumber,and-wstandsformatchthewholeword.-l (lower-case L) can be added to just give the file name of matching files.-eisthepatternusedduringthesearch
Linux terminal control sequence commands
ctrl-c
interrupts the running program
ctrl-d
sends an EOF (end of file) to close the terminal
ctrl-z
suspends the running program
ctrl-s
freezes the screen, stopping the display
ctrl-q
thaws out the screen and allows the screen display to continue
ctrl-h
deletes the last character typed
ctrl-w
deletes the last word typed
ctrl-u
deletes the last line typed
ctrl-r
retrieves previously run commands so you can run them again
ctrl-u
removes text from the command line and places it in the clipboard
ctrl-y
grabs text from the clipboard and runs it
ctrl-l
clears the screen
ctrl-a
moves cursor to the beginning of the line
ctrl-e
moves cursor to the end of the line