Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Few people here have referred to the /tmp directory. This is essential in my workflow. I put a lot of things there (this is also my Downloads folder) and when the computer reboots, its clean again!

One of the computers I use stay turned on for long times, so I have /tmp/t and a cronjob that cleans all files older than 1 day in this directory:

    # Remove all files in /tmp/t older than 1440 min (one day)
    */10 * * * * find /tmp/t -cmin +1440 -delete > /tmp/.find-delete-1440.log 2>&1
Besides that, I have a lot of bunches in $HOME. dot.files, dot.vim, dot.mutt, etc., are all in private git repositories and I have a "~/s" directory I keep synchronized among different machines with rsync (I don't trust Google nor Dropbox). I was thinking about starting using Syncthing [1], though.

[1] https://syncthing.net/



Using /tmp for my downloads folder became problematic for me when downloading big files.

1. You may want to pause the download and restart it after reboot.

2. It's quick to redownload small files but a pain to have to redownload large ones.

3. Arch puts /tmp on a tmpfs, so big files can eat all your memory!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: