Nowadays, storage is cheaper (though of course not free), so whenever i download BIG files, i review to see if said file is worth saving...If it is, then i promptly move it intop a relevant directory. If not worth saving, then i delete it. As an example, I do this alot with ISO files for Linux distros. Sometimes i download it, copy it to a usb thumb drive, try out the linux distro, and then delete it. Now, if downloaded BIG files so often, then i guess this method won't scale...but for me, its a solved issue.
same, but instead of backup, I just delete the biggest unimportant files. I can last for years doing that, until I change Linux distro, new laptop, or just a fresh install
I've been doing the same for over a decade (closer to 15 years) at this point, except instead of a folder I just create an image of the drive of the computer I'm backing up. The only problems are that navigating old backups to find things is starting to become a chore and duplicates abound. I think the next time I have a bunch of time to myself, maybe between jobs or something, I'm going to take a couple hours each day for a few days to organize it all for better accessibility.
At first I just moved everything into a folder named "old" that sat in the same place, and eventually probably wound up having 20 or 30 recursive folders all named "old".
It wasn't until after probably a decade of that I had the big-brain moment to actually bother labeling them by month+year and put them all at the same level in an explicit backup directory...
Parallel evolution: not on MacOs, place everything on desktop () and move it into backup folder (usually just something like 2023mei29) if the desktop becomes too unmanageable.
Happy to read this solution has been thought of by others as well
I, too, subscribe to the 'shove all my crap into my bedroom closet when told to clean my room' method of computer janitoring.
Ironically enough I have a folder on my desktop called "Sorted" that I just drag things into when I haven't used them in a while. Gotta love the search function, else I'd never find anything in the rare case that I do need it.
Comes in handy sometimes however, like having the installers for every major version, patch and RC of an indie game going back a decade, or old editions of a minecraft or skyrim mod that the author may have pulled offline in some hissy fit or another.
I call that folder "glacier" named after the AWS product with the same tradeoff: easy writes in exchange for harder reads. I also have a physical "glacier" bin in my closet and drawer in my desk.
It's surprisingly easy to reliably remember that I would have put something in the "needed infrequently when I'm willing to spend a few minutes looking for" drawer.
I like the extra purge version of this - Exact same idea, except you also re-install the OS fresh.
I used to do it once a year, but I'm down to once every other year now. Backup folders get the machine name & year, and put on dropbox/drive/nas/other.
Entire machine is wiped, OS is installed, everything feels so fresh and sparkly. It's a bit like going to the dentist - not exactly fun, but you feel very clean for a bit afterwards.
Really helps also wipe out all the other accumulating cruft you just don't have the time or energy to go delete.
On MacOS reinstalling the OS 'from fresh' doesn't really do anything any more because the OS is installed to an immutable sealed volume. Reinstalling the OS is basically a no-op.
Though they're easily removed without a reinstall, it'll clear out things like startup apps and background daemons. Kernel extensions (which should be rare already, but still exist) will also get wiped.
I consider volumes local to the device as something that gets wiped on OS reset, although I definitely understand the confusion.
I'm not just wiping root and leaving home/mail/etc alone. I'm wiping and re-partitioning the local drive.
The partition layout on macOs is fairly complex - on those machines it would be comparable to "Erase all contents and settings" option, but also with a refresh of the immutable OS to the latest released revision (Not always the case on macOS, depending on your recovery drive configuration).
---
That said, I don't buy Apple products for personal use - they're far too hostile to their users for me to give them money, and I was always a "function over form" kinda guy in the first place, which is not Apple's market. Apple is the chauffeured car of the computer world... Smooth, Expensive, Hands-Off. I don't always want to drive manual, but I'm not willing to give up the steering wheel... so windows, linux, and bsd for me. Although lately, less and less Windows.
You’re not alone! I had developed a habit of cleaning downloads and files since storage was somewhat scarce when I started using PCs in the 90s. Now it’s so cheap that I will simply delete very large files, then name the folder yyyy-mm-dump and place it with others in a backup folder somewhere. If I ever have to recove disk space I will glance over and delete it then, but more often it has been more valuable to dig up some meme or image.
Even easier: have a parent folder that holds all the folders/directories containing every piece of data you want to keep. Once you do your fresh start, transfer that folder over, and say to hell with the rest, after a quick scan for the 5 items you actually do want to keep
I'm too lazy to move things out of ~/Downloads, so I've just started using the folder as my default working directory and struggle to clean it out every quarter or so.
/tmp (or probably ~/Library/Caches/TemporaryItems for my account only) being cleaned out on every reboot would force me to be more intentional.
I collapse the crufty locations down onto my desktop. It doesn't really stop me from treating it that way, but it means there's only one place to clean up, and creeping icon sprawl eventually forces me to deal with it semi-regularly (instead of letting it slide until it's time to wipe the device...):
Changing the screenshot settings to make copying the image to your clipboard is good advice, it's one of the first things I do on a new Mac. I take maybe half a dozen screenshots a day, and the workflow is almost always pasting them into Slack or Jira; I don't need my OS to save a local copy on my desktop.
I'm not sure I get the advantage of putting things into a tmp directory. If I have to move things out of there to avoid them being deleted automatically, that seems like about the same amount of work as just archiving important downloads and then deleting everything in ~/Downloads once in a while. And safer too. By that logic, you might as well just save your downloads in the Trash.
Less of an issue with modern computers, but items on the desktop take more resources than anywhere else. It used to be that people who couldn’t see the background under the icons also had a lot of paging and frame drops.
I've been fighting with the automatic accumulation of downloads for years now - it really makes it impossible to figure out if whatever I downloaded can safely be deleted - so my current system is similar to the OP's one, but a little gentler: I have a launchd task that runs every day and warns "I'm about to delete these things that are older than two weeks", which lets me salvage anything I might have forgotten to archive.
Deleting every reboot sounds a bit aggressive. I used to have a .sh script in a cron job that would move downloads to a separate folder after 48 hours, keep them there for 3 months, then delete them permanently. A couple loops and some mtime checks.
Doing CMD+Shift+5 on macOS shows the full clip menu, and in the Options section of the bar you can select it to always store the cutouts to clipboard instead of a file, or always open them to Preview; even send them to another location.
As an aside, perhaps a bit counter to this, after quite a bit of searching, I have not found a way to tell macOS to NOT delete the /tmp folder on reboot.
I have no real problem with the 7 day life span of files there, but since I actually do put quite a bit of "temporary context" into /tmp, it's a bit annoying to have it wiped out on restart.
Now, yes, of course, I can simply create a new folder, create my own 7 day sweeper and be done with it.
The simple nut is that I've been using /tmp for 30 years (like vi, every unix machine has a /tmp), and it's a bit hardwired into my muscle memory. And since the machine is supposed to do my bidding, not the other way around, it would be nice to be able to configure it to not do this.
You do realize this is exactly what /tmp/ is expected to do on all *nix based machines, including Macs, right?
Why not create a new path, and use that?
My downloads folder is my to-do stack, I sort it by oldest items and process each one, either organizing or deleting stuff. Whether I need to read some document, watch a movie, or install something I'll put it in downloads. If the system allows I'll set Downloads as home folder when starting the file browser.
I have a healthy mixture of organized folders, like official documents by years for example and disorganized folders.
The key to happiness is to accept the mixture, also accept that you sometimes rename and reorganize stuff, that that sometimes makes it better and sometimes makes it worse, and that sometimes thinking about all of this is just procrastination, but sometimes it's not!
Same, I use Hazel to periodically move files from Desktop > Downloads > Review
Gives me sort of a drip feed of items to either delete or move to a proper folder. I also place the 'Review' folder in the Dock, so it is usually empty, but every now and then a file pops up in the preview, so I can move it somewhere.
/private and /private/tmp are shared between all users (including non-login users). $TMPDIR is safer for sensitive files, but it lacks the macOS sandboxing protection on ~/Downloads.
You can add your download folder to $daily_clean_tmps_dirs in /etc/periodic.conf and files not accessed for three days will automatically be deleted. See /etc/defaults/periodic.conf and /etc/periodic/daily/110.clean-tmps
Off-topic but there's an obnoxious resource wasting screen "saver" that triggers after some time of inactivity in this website. I took a break and came back a few minutes later to blaring fan noise and drained battery from my laptop.
78 comments
[ 3.8 ms ] story [ 146 ms ] threadI copy anything useful to a NAS and then delete the rest.
Nowadays, storage is cheaper (though of course not free), so whenever i download BIG files, i review to see if said file is worth saving...If it is, then i promptly move it intop a relevant directory. If not worth saving, then i delete it. As an example, I do this alot with ISO files for Linux distros. Sometimes i download it, copy it to a usb thumb drive, try out the linux distro, and then delete it. Now, if downloaded BIG files so often, then i guess this method won't scale...but for me, its a solved issue.
My strategy is simple, I fill with my computer with crap until I decide I want a fresh start.
Then I back up these folders to a backup/year/month folder and never open them again.
But if I ever need that meme from 2013, maybe I'll find it.
At first I just moved everything into a folder named "old" that sat in the same place, and eventually probably wound up having 20 or 30 recursive folders all named "old".
It wasn't until after probably a decade of that I had the big-brain moment to actually bother labeling them by month+year and put them all at the same level in an explicit backup directory...
Ironically enough I have a folder on my desktop called "Sorted" that I just drag things into when I haven't used them in a while. Gotta love the search function, else I'd never find anything in the rare case that I do need it.
Comes in handy sometimes however, like having the installers for every major version, patch and RC of an indie game going back a decade, or old editions of a minecraft or skyrim mod that the author may have pulled offline in some hissy fit or another.
Any info I need to retrieve can be found by searching for filenames or the various file metadata.
It's surprisingly easy to reliably remember that I would have put something in the "needed infrequently when I'm willing to spend a few minutes looking for" drawer.
I used to do it once a year, but I'm down to once every other year now. Backup folders get the machine name & year, and put on dropbox/drive/nas/other.
Entire machine is wiped, OS is installed, everything feels so fresh and sparkly. It's a bit like going to the dentist - not exactly fun, but you feel very clean for a bit afterwards.
Really helps also wipe out all the other accumulating cruft you just don't have the time or energy to go delete.
I'm not just wiping root and leaving home/mail/etc alone. I'm wiping and re-partitioning the local drive.
The partition layout on macOs is fairly complex - on those machines it would be comparable to "Erase all contents and settings" option, but also with a refresh of the immutable OS to the latest released revision (Not always the case on macOS, depending on your recovery drive configuration).
---
That said, I don't buy Apple products for personal use - they're far too hostile to their users for me to give them money, and I was always a "function over form" kinda guy in the first place, which is not Apple's market. Apple is the chauffeured car of the computer world... Smooth, Expensive, Hands-Off. I don't always want to drive manual, but I'm not willing to give up the steering wheel... so windows, linux, and bsd for me. Although lately, less and less Windows.
It's a time machine for your feelings.
I have Desktop added as one of those fan-out folders in the MacOS Dock so it's really easy to drag-n-drop the newest screenshot to GitLab etc.
I'm too lazy to move things out of ~/Downloads, so I've just started using the folder as my default working directory and struggle to clean it out every quarter or so. /tmp (or probably ~/Library/Caches/TemporaryItems for my account only) being cleaned out on every reboot would force me to be more intentional.
I'm not sure I get the advantage of putting things into a tmp directory. If I have to move things out of there to avoid them being deleted automatically, that seems like about the same amount of work as just archiving important downloads and then deleting everything in ~/Downloads once in a while. And safer too. By that logic, you might as well just save your downloads in the Trash.
Source here in case it's useful for anyone: https://github.com/f-f/home/blob/ee0ae5dd201ac6e8ffa60fff71b...
Abusing /tmp sounds fun as well tho.
I have no real problem with the 7 day life span of files there, but since I actually do put quite a bit of "temporary context" into /tmp, it's a bit annoying to have it wiped out on restart.
Now, yes, of course, I can simply create a new folder, create my own 7 day sweeper and be done with it.
The simple nut is that I've been using /tmp for 30 years (like vi, every unix machine has a /tmp), and it's a bit hardwired into my muscle memory. And since the machine is supposed to do my bidding, not the other way around, it would be nice to be able to configure it to not do this.
But, hardly a crisis, I'm coping.
I might be missing something but these are the key suspects (I generally prefer this to be wiped, using tmpfs)
Not sure about anything else *nix
The key to happiness is to accept the mixture, also accept that you sometimes rename and reorganize stuff, that that sometimes makes it better and sometimes makes it worse, and that sometimes thinking about all of this is just procrastination, but sometimes it's not!
https://www.noodlesoft.com
Gives me sort of a drip feed of items to either delete or move to a proper folder. I also place the 'Review' folder in the Dock, so it is usually empty, but every now and then a file pops up in the preview, so I can move it somewhere.
Now, I have a much simpler approach: whenever I touch a file, I'll put it into the right location. The downloads folder is mostly empty.
Same principle in real life. Things have have their designated place and they go back there after use.
Clutter simply doesn’t exist in my life.
I think /tmp/ is auto-mapped to /private/tmp though, which is also user-specific.
Edit: after a bit of web searching, I'm not finding any suggestion that /private is somehow mapped per-user. Is this actually true?
@reboot rm -rf /Users/me/Downloads/*
Throwing away _all_ downloads / items on the desktop is not the hard part. The hard part is deciding if there’s any wheat in with the chaff.