42free
42free copied to clipboard
Shell script for School 42 students to free up disk space without losing any data. Takes advantage of symbolic links. Includes option to move files back to their original location.
while running the program (on macos) after having specified to it my sgoinfre dir, it warns me that `'Library/Caches'` already exists, despite it not being the case. moreover, whne continuing...
All `2>/dev/null` could be replaced with `2>>$logfile`. The `logfile` could be `/tmp/42free~error_log`. At the beginning of the script, before doing anything else, it could put the date and time into...
Then `--reverse`/`-r` can just reverse all operations ever recorded. After restoring, that operation can be removed from the record. This can also enable a `-l`/`--list` option that lists all the...
The changelog will always be automatically generated immediately for each release on the GitHub [Releases](https://github.com/itislu/42free/releases) page. There must be a way with the GitHub API to get the body of...
Find out all dependencies and what versions are required to support the features needed by the script. Then check for all of them at startup. For example, the `mapfile` builtin...
Failures can happen if a file is currently blocked by another process, so if it is in use. At the moment, if some parts could not be moved, it will...
The result should be that more than 1GB has been freed.