2011-11-23

foxfirefey: A fox colored like flame over an ornately framed globe (Default)
[personal profile] foxfirefey2011-11-23 12:38 pm

Bad command line habits and good ones to replace them

UNIX tips: Learn 10 good UNIX usage habits, as follows:

  • Make directory trees in a single swipe.
  • Change the path; do not move the archive.
  • Combine your commands with control operators.
  • Quote variables with caution.
  • Use escape sequences to manage long input.
  • Group your commands together in a list.
  • Use xargs outside of find .
  • Know when grep should do the counting -- and when it should step aside.
  • Match certain fields in output, not just lines.
  • Stop piping cats.


I learned a couple of things from this one!