A few nice Unix commands.
for i in `ls -1 | grep -v <filetokeep>`; do rm -rf $i; done
More exactly, it'll convert from “AA BB CC” to “0xAA, 0xBB, 0xCC” with each line having 8 bytes.
hexdump -v -e '8/1 "0x%02x, "' -e '"\n"' <filetodump>
Colour directories, binaries (etc) using ls –color=auto.
Take a screenshot of the entire desktop
$ xwd -root -out scrdump
Take a screenshot of a given window:
$ xwd -out scrdump
and point to the window to grab with the mouse.
View a screenshot
$ xwud -in scrdump
tar -xvf <thetar.tar> <thefile>
tar -xvf <thetar.tar> -C <thedir>