-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
echo "updating" | ||
sudo apt update | ||
sudo apt upgrade | ||
echo "cleaning the trash" | ||
sudo rm -rf /home/$USER/.local/share/Trash/files/* | ||
echo "" | ||
echo "" | ||
echo "Cleaning the tmp folder" | ||
sudo rm -rf /var/tmp/* | ||
echo "" | ||
echo "" | ||
echo "Deletion of useless cache from the system. Copies of updates from the update manager" | ||
sudo apt-get clean -y | ||
echo "" | ||
echo "" | ||
echo "Exclusion of programs that are no longer being used by the system" | ||
sudo apt-get autoremove -y | ||
echo "" | ||
echo "" | ||
echo "Deleting duplicate files" | ||
sudo apt-get autoclean -y | ||
echo "" | ||
echo "" | ||
echo "Repairing broken packages during the upgrade" | ||
sudo dpkg --configure -a | ||
echo "" | ||
echo "" | ||
echo "cleaning the system ram" | ||
sudo sync && sudo sysctl -w vm.drop_caches=3 | ||
echo "" | ||
echo "" | ||
clear | ||
echo "Done cleaning" | ||
sleep 1 | ||
exit |