What I do is sort the directories and files by size and go largest to smallest. Based on the likely distribution of files sizes, 20% of your files and/or directories will account for 80% of the hard drive space. I usually then choose candidates for deletion and evaluate them, deleting them on the spot or skipping them for this time. I do this until I get the space reduction I want or until I'm sure that I want to keep what is in the largest 20%. After I reach one of the two states: top 20% of files/directories are keepers or I deleted down X GB. This method can be done with any sorting method. For example, by play count or by date added, old to new. Keep going until the top 20% are keepers. The same distribution is likely to apply across all vertical data labels so the filter is generically usable in lots of situations. For example, 20% of car drivers likely get 80% of speeding tickets. We could reduce speeding by 80% by speed limiting these drivers' cars or by revoking their drivers licenses. Another example is memory hogs in a computer system. The top 20% of memory hogging programs likely account for 80% of used memory in a system. This distribution is called the Pareto principle. The principle is an example of a power law.
Barzaria
Indeed, completely agree. In this case they are the pirates.
Who is running herd right now? I need to know.
I am genuinely confused and do not understand what a paid plex share is and how it ruins things for everyone. Would you be able to elaborate? I'm a jellyfin user and haven't really messed too much with Plex. I'm curious if allowing screening of your personal collection to strangers on the internet is considered piracy?
I'm no fan of megacorps, and I definitely know that they are breaking the law. However, copyright laws should change so that any schmuck can use any text to train any AI. I'm all for punishing mega corporations and I understand that they play by their own set of rules (that is unfair), but piracy is piracy even when mega corporations do it and I believe that piracy is the moral choice. Meta then choosing to make their model not fully open I definitely have a problem with and that does not meet my bar for okay, but I strongly believe that all information for all people or entities should be free to transfer without restriction.
If you want a GUI, I would use Balena Etcher. You might be able to use raspberri pi imager too.
if is short for input file if is short for output file
This dd command from the command line is what I use because it is built in and perfectly bare bones for my needs. I like to use the command flag --status=progress to show a status bar while duplicating the data. A word of caution: the dd, or 'data duplicator' program is sometimes known as the 'destroy disk' program because if you flash the iso file to the wrong disk/drive you can mess up the drive. Use the appropriate level of caution because there is no undo button. You can use the lsblk command to list the block devices on your machine and use the correct device. Quick instructions: use lsblk to list your block devices and locate your flash drive. If the flash drive is mounted (the /sdb/ will have something like /media/files if it is) you can unmount with $umount /path/to/sdb. Once the drive is unmounted you can use the dd program to duplicate the data (iso file) to your drive.
Thank you for the awesomeness that is the script. If I might ask a question: why is the user agent Windows 10 if this is a bash script? I'm genuinely curious and I don't know why.I imagine this might be WSL. You did mention it was an old script so maybe it had something to do with that?
It is real. Enormous dickeroo energy.
Both?!
Or bodies are in a constant state of getting older and undergoing collapse. I think that believing in the good old days is a reaction to getting old. I think that believing in some golden past is it reaction to our own bodily degeneration. Fear of our mortality is a powerful force, and I think that a large amount of people externalize/project that fear onto their perception of society.