UNIX Commands

clear	Clear screen.

Recursively delete all Mac files on the G1

find /Volumes/G1 -name \._* -exec rm {} \;
find /Volumes/G1 -name \.DS_Store -exec rm {} \;

Disk and Machine Info

du		[disk usage]

hostname

ln -s source target		[source is the real directory/file]

pwd		[path to working directory]

su		[space usage]

uname -m	[machine type]
uname -n	[hostname]
uname -r	[release]
uname -s	[system]
uname -v	[verbose info]

sudo /usr/libexec/locate.updatedb	[update locate DB]

tail -f /var/log/messages

CPIO Archive

ditto -c

CPIO Archive GZip Compressed

ditto -cz

PKZip Compatible Archive with Max Compression (no Mac crap)

ditto -ck --keepParent --zlibCompressionLevel 9 --norsrc --noqtn --nohfsCompression src_dir target.zip
ditto -ck --keepParent --zlibCompressionLevel 9 --norsrc --noqtn --nohfsCompression html gaz_corp_r4.zip