Another “wee” tip. I had a hard time doing this right…
Put emacs in the EDITOR shell variable:
$ EDITOR=emacs
$ export EDITOR
and add the following to your ~/.emacs:
(set 'temporary-file-directory "/tmp")
Now, edit the crontab file via:
$ crontab -e
Edit and save the file, and you should get a response from crontab:
crontab: installing new crontab
If you get an error message, something is wrong. You can check that your edits really changed your crontab using:
$ crontab -l
For a complete list, see Bash Reference Manual – Bash Environment Variables. This is just my own memory-dump. To get the value of a variable, you can use:
echo $OLDPWD
There are a lot of these on the net. Why not one more? :-) I will try to keep this updated. Some commands are shell-specific (I use bash), and some are application specific, like the Apache commands.
Also see the good man-page-like command list at Oreillynet.