Skip to content

Commit

Permalink
purge
Browse files Browse the repository at this point in the history
  • Loading branch information
simdok committed Aug 1, 2021
1 parent a29e809 commit 19f6cd4
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions purge.sh
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

0 comments on commit 19f6cd4

Please sign in to comment.