aboutsummaryrefslogtreecommitdiffstats
path: root/site/download/cleanall.sh
blob: d37aae0c8076d6e5774925e58a9bea0246424800 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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.small.file bs=1024 count=102400
shred -z zero.small.file
cat /dev/zero > zero.file
sync
rm zero.small.file
shred -z zero.file
sync
rm zero.file
echo "----------------------------------------------------------------------"
echo "||                   īŧŗīŊ™īŊ“īŊ”īŊ…īŊ 𝟙𝟘𝟘%  𝓒đ“ĩ𝓮đ“Ē𝓷                      ||"
echo  "---------------------------------------------------------------------"
exit 0