10 good Unix habits to pick up

Welcome to Linux Screw! If you're new here, you may want to subscribe our RSS feed.

ibm logoas 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.

unix platWhen 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:

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

Full article is here.

Share This
 
 
» You might also be interested in the following articles:
Another 10 good Unix habits to pickup
Two-way conversion of Unix time (seconds since 1970) and regular time
BMW migrates FROM Unix on race to Intel
Manage gzip files on-the-fly (zcommands)
Quick shell change for user in Unix or Linux



» Want to stay up to date? Subscribe to our E-MAIL or RSS feed!


2 Responses to “10 good Unix habits to pick up”


  1. 1 danny

    Awesome tips. Seme I do and some I don’s. Time to clean up…

  1. 1 Another 10 good Unix habits to pickup | Linux Screw

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word




Friendly Sites:Who is behind Linux Screw?
Aspiring Sysadmin | GeekyBits³ | Bash Cures Cancer | TOTMS
Linux Operating System | Small Linux Deployments | My SysAd Blog
The Danesh Project | ZEPY | LinuxHaxor.net | Planet Sysadmin
The Sys Admin | {buhay sysad} | a non-geek's linux notes
CyberCapital.Org | G-LOADED! | The Linux Alternative Project
My name is Artem Nosulchik (artiomix AT gmail DOT com) and I'm Linux/Unix, Cisco systems engineer. The main idea of Linux Screw is to share relevant knowledge, skills and observations over The Web. Here you can find a lot of information related to different Linux distributions, FreeBSD, IOS as well as a other Open Source around staff. Read more ››