Skip to content

🧹 This bash script allows you to free up to 3GB of disk space in your home directory, by deleting the cache of several applications.

License

Notifications You must be signed in to change notification settings

ricardoreves/42-free-up-space-disk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

42 Free Up Space Disk

🪧 Overview

This bash script allows you to free up to 3GB of disk space in your home directory, by deleting the cache of several applications.

🚀 Getting Started

  1. Clone the project
git clone git@github.com:ricardoreves/42-free-up-space-disk.git
  1. Navigate to the project directory
cd 42-free-up-space-disk
  1. Set the script executable permission
chmod +x free_up_space_disk.sh
  1. Run the script
bash free_up_space_disk.sh
  1. Run the script every time you log in.
echo "bash ~/42-free-up-space-disk/free_up_space_disk.sh" >> ~/.zshrc

💡 Other Solutions

Find and delete manually

  1. Navigate to your home directory
cd ~
  1. Display the total disk usage size of the directory
du -cksh *
  1. Manually delete the files you deem unnecessary
rm -rf <path>

Use machine disk (goinfre)

  1. Navigate to your goinfre
cd /goinfre/<login42>

NOTE: however you will have to work on the same machine

🧼 Formatting the Home directory

  1. Save the contents of your home in a USB key
  2. Create a .reset/.reset_library file at the root of your home
# reset the home directory
touch ~/.reset

# reset the home library directory
touch ~/.reset_library
  1. Logout then Login
  2. Now your home is like the first day !

📚 References

  • osxdaily.com - Command Line Disk Usage Utilities: df and du

About

🧹 This bash script allows you to free up to 3GB of disk space in your home directory, by deleting the cache of several applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages