Just a general talk on being aware of how to work in the terminal, some basic scripting knowledge, and some tips, tricks and tools I picked up in about a year and a half of working nearly exclusively in a terminal
$NEEDLE > results.txt Shell Builtin Executables Arguments Redirection Pipe Environment Variable output builtin: a regular command, except provided by your shell instead of an executable executables: a file in your path marked as executable arguments: you all know what this means Redirection: Swapping around the standard streams
$NEEDLE > results.txt Shell Builtin Executables Arguments Redirection Pipe Environment Variable output Pipe: Special case of redirection, connects stdout to stdin of the other side Environment variable: a variable that gets the value substituted by the shell
. -name “*.orig” -print - delete • $ find . -type f —mtime -1 -print This will find all the files ending in .orig (merge files from git), print them out, and then delete them exec also allows for running any command selectors let you pick files very concisely
• ps aux | grep grep | awk ‘{print $2}’ 6845 So much more complicated and powerful than I have time for I’ve only scratched the surface, but it’s really helpful for certain things this example prints the pid of any grep processes
make all of your config 100000x easier autocomplete by default, web config, syntax highlighting and checking, sane scripting, small config files (instead of one monolithic _THING_), man page completion