2/28/2007

Cool Linux shell scripts

Filed under: Developing, Software — Guus @ 3:52 pm

I’m currently busy with creating an auto-mounting script for my mp3 files. When it’s completed, I’ll show/explain it to you. Meanwhile when googling for more info about shell programming I discovered some nice tips and tricks. Let me share it with you:

Find out which commands you use most often (a oneliner):

$ history|awk ‘{print $2}’|awk ‘BEGIN {FS=”|”} 
{print $1}’|sort|uniq -c|sort -rn|head -10

Find out top 10 directories eating up your disk space:
$ du -cks * | sort -rn | head -10

A nice starter article about shell programming can be found at LinuxFocus.
If you want to do more with the file system, this is a nice FAQ.

Unix productivity tips

No Comments »

No comments yet.

RSS feed for comments on this post. | TrackBack URI

Leave a comment

XHTML ( You can use these tags): <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .