3 ms·
Not as technically proficient as you guys. I am a retired psychotherapist not CS engineer. I have been having fun trying to make a basic bash script to mimic
by reify 2y ago
Not as technically proficient as you guys.
I am a retired psychotherapist not CS engineer.
I have been having fun trying to make a basic bash script to mimic bleachbit.
although I only run bleachbit once every few weeks, if I remember, it takes forever sometimes.
this is so much faster
=======================================
#!/bin/bash
# simple database cleaner
function dbclean() {
profile-cleaner p /home/user/.librewolf/gcm9o6u9.default-default/
profile-cleaner p /home/user/.mullvad/mullvadbrowser/51q7dddr.default-release
profile-cleaner p /home/user/.mercury/u6islnxq.default-default
}
# Call the function
dbclean &&
sudo su <<HERE
/home/user/.cargo/bin/srm -v -r -p 5 /home/user/.cache/* &&
cat /dev/null >/home/user/.bash_history &&
shred -vn3 -u /var/log/.old &&
shred -vn3 -u /var/log/boot.log.[123456] &&
cd /var/log/lightdm/
sudo /home/user/.cargo/bin/srm -v -r -p 5 /var/log/lightdm/log.old
HERE
============================================================