Delete Applications on a Mac

On a Mac, you basically pull your application, you do not want anymore, into your trash bin. That’s it. But there are always some config files in the ~/Library directory.

To get rid of everything open a terminal and use

mdfind -name "application name"

This gives a list with all files related to the application.

Now delete all the files form the list you got.

sudo rm -rf <line>


Keyboard shortcuts for your Mac at boot time

Keep one of these keys pressed at system start.

Command key
Control key
Option key
Shift Key
Caps Lock
fnFunction Key
CBoots from a CD/DVD with a system image
DBoots from the first HD partition
NBoots from the network (netboot)
REnforces a screen reset
TBoots in firewire target mode
Boots in safe mode. Disables login items and less important kernel files
⌘VBoots in verbose mode
⌘SBoots in single-user mode. Goes directly into command-line
 Displays possible startup disks

… and much more:

Start a TFTP server on your Mac

Activate the tftp server on your Mac:

To change the properties, edit the file


The default directory is /private/tftpboot.

Make this directory accessible for everybody.

chmod 777 /private/tftpboot

and start it with

sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist

If you want to stop the daemon, do

sudo launchctl unload /System/Library/LaunchDaemons/tftp.plist

Backup a system to a remote location using ‘netcat’ and ‘tar’

I use to say “backup is only for wimps”. But to be honest, I do backups. And I even store the backup media in a save place.

To get the data onto a backup device and put that one to a save place, sometimes you have to write the backup over the network.

netcat or nc, the swiss army knife of networking is a big help for that.

On the remote system, where you want to write the backup start netcat:

nc -l -p 12345 > /var/backup/name-of -the-backup-2010-08-18.tgz
  • -l means listen
  • -p <number> is the port, where nc listens.

On the system you want to backup  you can exclude some directories, like /proc and /sys from being backed up. So run:

echo "./proc
./tmp" > /tmp/X

Now it is time to start the backup:

cd /
tar -X /tmp/X -czpf - . | nc 12345

So you cd into the root directory, exclude the files listed in /tmp/X, write the backup to STDOUT  and backup everything under the current directory. The backup is done relative.

Of course, you could use a backup command like tar -czpf – /,  but then the backup is done absolute. You realize the advantage of doing relative backups, when you want to restore the backup into a directory. With an absolute backup everything is written back to the original location.