Inside Paulo Abrantes' head
[ start | index | login or register ]
start > 2006-12-16 > 1

Shell Kung Fu: Learn 10 Good Unix Usage Habits

Created by pabrantes. Last edited by pabrantes, one year and 296 days ago. Viewed 885 times. #2
[diff] [history] [edit] [rdf]
labels
attachments

Shell Kung Fu: Learn 10 Good Unix Usage Habits

Michael Stutz from IBM just released an article called >>Learn 10 good UNIX usage habits, if you already know your way in the shell kung fu you probably know them, althought I think it's a good (and quick) lecture about shell usage.

Michael Stutz points out bad habits on doing certain tasks, shows you a better way and explains why. In my opinion it's a really nice article to read.

At the end of the article you can read the following:

{quote It is good to examine your command-line habits for any bad usage patterns. Bad habits slow you down and often lead to unexpected errors. This article presents 10 new habits that can help you break away from many of the most common usage errors. Picking up these good habits is a positive step toward sharpening your UNIX command-line skills. {quote}

Here's a list of the good habits presented by the writer:

  • Defining complex directory trees with one command
  • Using option -C to unpack a .tar archive file
  • Combining commands with control operators
  • Quoting (and not quoting) a variable
  • Using a backslash for long input
  • Running a list of commands in a subshell
  • Using xargs
  • Counting lines with and without grep
  • Using grep to find patterns in specific fields
  • Using grep with and without cat
Too bad it doesn't introduce >>awk and >>sed more extensively, we all know they can do magic!
Well maybe some other time, who knows..
no comments | post comment
Who am I?
paulo-roca2My name is Paulo Abrantes AKA pabrantes and I'm a software developer. I'm currently employed at >>CIIST working as a Java developer in >>FenixEDU.

This blog is mostly about Java programming, domain driven design and snipsnap bliki developing. Everything written in this blog is my personal opinion and it may not reflect the opinions of my employer and co-workers.


Blog subscription
subscribe by rss subscribe by email

Links
>> Home
>> Paulo's Profile
>> Post History
>> Add to Technorati Favorites
>> Paulo's Photo Gallery
>> WishList
>> Posting without Login

Search Blog
Fellow Bloggers

Recent Posts

Java Programming: Bytecode Injection
Intermission: Sorry For Downtime
Software Developing: Studying The Bliki Domain Model
SnipSnap Developing: Trying to settle a roadmap
System Administration: Load Balancing with Apache
Blogging: Two years have passed
Software Developing: The SnipSnap Saga
Java Programming: Getting your code spicy with Groovy
Software Developing: Fluent Interfaces
Software Developing: Implementing a ShoutBox on SnipsSnip
Software Developing: SnipSnap, SnipIt and SnipSnip
Java Programming: Proxies and Access Control
Java Programming: Proxies and References
Java Programming: References' Package
YALM: Yet Another Layout Modification

For older posts, please refer to post-history for a complete Post History

Logged in Users: (0)
… and 4 Guests.
This is a modified version of snipsnap.org created by >>Paulo Abrantes