diff options
author | Cristian Cezar Moisรฉs <[email protected]> | 2022-03-13 16:14:52 -0300 |
---|---|---|
committer | GitHub <[email protected]> | 2022-03-13 16:14:52 -0300 |
commit | a9128dda91897cba88551a81a25cf3fbfc457545 (patch) | |
tree | 7d62fbc141031d25a3667eff81c900c15da98fb5 /cleanall.sh | |
parent | 5d7606a6502143809e7e4010904ff0ee12eba862 (diff) |
Create cleanall.sh
Diffstat (limited to 'cleanall.sh')
-rw-r--r-- | cleanall.sh | 50 |
1 files changed, 50 insertions, 0 deletions
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 |