# RootPrompt.org   Nothing but Unix.[Home] [Features] [Programming] [Mac OS X] [Search]


 Learn 10 good UNIX usage habits

Sure you know the basics of the UNIX command shell, but in Learn 10 good UNIX usage habits: Break bad UNIX usage patterns, Michael Stutz, author of The Linux Cookbook, tackles UNIX usage habits to improve your command line efficiency and help break you of bad habits at the same time.

 (Submitted by treehead Mon Dec 18, 2006 )

  

Sure you know the basics of the UNIX command shell, but in Learn 10 good UNIX usage habits: Break bad UNIX usage patterns, Michael Stutz, author of The Linux Cookbook, tackles UNIX usage habits to improve your command line efficiency and help break you of bad habits at the same time.

Ten good habits to adopt are:

  • 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.


Our content can be syndicated: Main page Mac Page

Copyright 1999-2005 Noel Davis. Noel also runs web sites about sailing and kayaking.
All trademarks are the property of their owners.
All articles are owned by their author