Terminal Tips

Clean History

# Clean the history file.
cat /dev/null > ~/.bash_history

# Clean the terminal.
history -c

Find & Remove

find [CurPath] -type [f][d] -name [Name] -exec rm -rf \;

Close an Open Port

fuser -k [Port]/[tcp][udp]

Make ISO of a Directory

# Mac OSX
hdiutil makehybrid -o [IsoFile] [Path2Backup] -iso -joliet