as usual provides us with excellent article about good habits which would help Unix administrators to improve their command line usage efficiency and break away from bad usage patterns in the process. I was impressed by this article and realized my everyday CLI usage is full of “bad patterns”. Nice point to give up them and pick up good style.
When you use a system often, you tend to fall into set usage patterns. Sometimes, you do not start the habit of doing things in the best possible way. Sometimes, you even pick up bad practices that lead to clutter and clumsiness. One of the best ways to correct such inadequacies is to conscientiously pick up good habits that counteract them. This article suggests 10 UNIX command-line habits worth picking up — good habits that help you break many common usage foibles and make you more productive at the command line in the process. Each habit is described in more detail following the list of good habits.
Those 10 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.
- Know when
grepshould do the counting — and when it should step aside.
- Match certain fields in output, not just lines.
- Stop piping
Full article is here.