Hacker News new | past | comments | ask | show | jobs | submit login
Tips on how to structure your home directory (unixsheikh.com)
1 point by signa11 on Oct 7, 2023 | hide | past | favorite | 1 comment



I keep shell scripts separate from binary executables in a directory called 'bins', the personal binaries will go in the /home/username/.local/bin directory.

I don't clutter up my home directory with all those 'write once, keep forever' files like music, books, source code, manuals etc. Those go on a separate archive disk.

All files get backed up daily. The home directory has a separate complete snapshot . The archive disk gets rsync'd to several archive-backup disks.

If I need to keep several versions, I distinguish them not with a version number, but with a date. The date is a two-digit year, a two-digit month, and a two-day. That makes all the versions sortable by date with 'ls'. So:

     'myfile_210601'
     'myfile_221004'
     'myfile_230728'




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

Search: