Archive of January 2014

Useful *nix command-line stuff

I'm capturing here a few hints and URLs to pages that contain useful *nix (Unix/Linux/etc) commands. Sometimes I forget a command that was once useful, so here I am capturing them for my long-term memory!

Linux Commands - A practical reference

Simple Commands

To do something with files in a directory, easy syntax:

$ for f in *.c; do cmd $f; done

I find this simpler than find *.c -exec cmd {} \;, which has the habit of including the file path (e.g. ./filename in the command).

@ 02:59 PM on January 18 | 0 Comments