January 29, 2010

Unix Commands via Cygwin

$ls -d */
List only directories

$ls -hog
A more compact ls -l
* The -h flag produces human-readable file size (e.g. 91K instead of 92728)
* The -o suppresses the owner column
* The -g suppresses the group column

$ls -1t | head -n10
Find the 10 latest (modified) files