sushil chhetri
Oct 12, 2015 · 1 min read

Couple of addition, If I may,

  1. I use ‘ctrl + l’ to clear the terminal
  2. ‘find’ to find a file by name e.g. `find . -type f -name “<filename>”`
  3. Using ‘find’ command to delete all file but a specific one e.g. `find <folder/path> -type f ! -name <filename of file which should not be deleted> -delete`
  4. ‘open -a <name of application to open with> <filename>’ to open a file using a specific application (i’ve aliased it to ‘opm’ to open with macvim)
  5. ‘grep -irn <word> <location>’ search for a word in the location (-i = ignore case, -r = search recursively on all sub-folders, -n = show line number)

Note: ‘find’ is much stronger than what those example suggest you can do lot more stuff with this command.

sushil chhetri

Written by

Front End Architect, Aspiring Solution Architect, Open to learning all and every tech/language (call me crazy)