From a9128dda91897cba88551a81a25cf3fbfc457545 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Cezar=20Mois=C3=A9s?= <86272521+cristiancmoises@users.noreply.github.com> Date: Sun, 13 Mar 2022 16:14:52 -0300 Subject: Create cleanall.sh --- cleanall.sh | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 cleanall.sh diff --git a/cleanall.sh b/cleanall.sh new file mode 100644 index 0000000..e950efc --- /dev/null +++ b/cleanall.sh @@ -0,0 +1,50 @@ +echo -e " +*\033[1;32m + .d8888b. 888 d8888 888 888~~~ + d88P Y88b 888 d88888 888 888~~~~~ + 888 888 888 d88P888 888 888~~~~~~~ + 888 888 .d88b. 8888b. 88888b. d88P 888 888 888~ ~ ~~~~~~ + 888 888 d8P Y8b 88b 888 88b d88P 888 888 888~~~~ ~~~~~~ + 888 888 888 88888888 .d888888 888 888 d88P 888 888 888~~~~~~~~ + Y88b d88P 888 Y8b. 888 888 888 888 d8888888888 888 888~~ ~ ~~ + Y8888P 888 Y8888 Y888888 888 888 d88P 888 888 888~~ + // \\ + ||========================================================================|| + đ“ĸ𝓮đ“Ŧ𝓾đ“ģ𝓮 𝓭𝓮đ“ĩ𝓮đ“Ŋ𝓮 𝔂𝓸𝓾đ“ģ đ“Ŋ𝓮đ“ļ𝓹, đ“Ŋđ“ģđ“Ēđ“ŧ𝓱 đ“Ē𝓷𝓭 đ“¯đ“ģ𝓮𝓮 𝓭𝓲đ“ŧ𝓴 đ“ŧ𝓹đ“Ēđ“Ŧ𝓮 || + =========================================================================== + 𝒞𝓇𝑒đ’ļ𝓉𝑒𝒹 đĩ𝓎 𝒞𝓇𝒾𝓈𝓉𝒾đ’ļ𝓃 𝒞. đ‘€đ‘œđ’žđ“ˆÃŠs + --------------------------------------\033[0m" +day=$(date +%A) +User=$(whoami) +now=$(date +"%T") +echo -e " \e[1;37m ||\e[0m\033[6m Today is : $day\033[0m\e[1;37m|\e[0m\e[1;37m || Time: $now ||\e[0m \033[6m User Is : $User\033[0m\e[1;37m ||\e[0m" +echo "----------------------------------------------------------------------" +echo "|| đ“ĸ𝓲𝔃𝓮 đ“¸đ“¯ 𝓕𝓲đ“ĩ𝓮đ“ŧ ||" +echo "----------------------------------------------------------------------" +du -h --max-depth=1 /tmp/ /var/log/ /var/cache/ ~/.cache/ +echo "----------------------------------------------------------------------" +echo "|| 𝓒đ“ĩ𝓮đ“Ē𝓷𝓲𝓷𝓰 ||" +echo "----------------------------------------------------------------------" +cd / +rm -rfv ~/var/log/* +rm -rfv ~/var/cache/* +rm -rfv ~/.cache/* +rm -rfv ~/tmp/* +rm -rfv ~/usr/src/tmp/* +rm -rfv ~/.bash_history +rm -rfv /zero.yes /zero.file +echo " " +echo "----------------------------------------------------------------------" +echo "|| 𝓒đ“ĩ𝓮đ“Ē𝓷𝓲𝓷𝓰 𝓕đ“ģ𝓮𝓮 𝓤𝓹 đ“ĸ𝓹đ“Ēđ“Ŧ𝓮 ||" +echo "----------------------------------------------------------------------" +dd if=/dev/zero of=zero.yes bs=1024 count=102400 +dd if=/dev/zero of=zero.file bs=1024 +echo "----------------------------------------------------------------------" +echo "|| īŧŗīŊ™īŊ“īŊ”īŊ…īŊ 𝟙𝟘𝟘% 𝓒đ“ĩ𝓮đ“Ē𝓷 ||" +echo "---------------------------------------------------------------------" + day=$(date +%A) +User=$(whoami) +echo -e " \e[1;37m ------------------ ----------------\e[0m" +echo -e " \e[1;37m|\e[0m\033[6mToday is : $day\033[0m\e[1;37m|\e[0m\e[1;37m |\e[0m \033[6mUser Is : $User\033[0m\e[1;37m |\e[0m" +echo -e " \e[1;37m ------------------ ----------------\e[0m" +exit 0 -- cgit v1.2.3