-
Notifications
You must be signed in to change notification settings - Fork 0
/
_
executable file
·106 lines (66 loc) · 2.24 KB
/
_
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#!/bin/bash
#----------------------------------------
#-------------First Class---------------
#----------------------------------------
#this is a makes a file an executable one
#chmod +x fileName.txt : this will make one executable
#chmod a+x fileName.txt : this will make it executb
#sudo touch file.txt;
#sudo touch file.pdf
#sudo touch file.doc
#sudo touch file.html
#sudo touch file.xml
#clear;
#ls -ll;
#sudo rm file.txt;
#sudo rm file.pdf;
#sudo rm file.doc;
#sudo rm file.html;
#sudo rm file.xml;
#ls -ll;
#echo 'Created at'; date;
#--------------------------------------
#-------------Second Class-------------
#--------------------------------------
#var = "text";
#echo $var;
#ls -l ;
#echo 'Done';
#UPDATING APPS FROM APT
sudo apt update;
sudo apt upgrade -y;
echo "=======================================================";
echo "=================== Apps Updated ======================";
echo "=======================================================";
sleep 2s; #small wait
#UPGRADING APPS FROM APT
sudo apt upgrade;
echo "=======================================================";
echo "=============== Apt Upgrated ==============";
echo "=======================================================";
sleep 2s; #small wait
#REMOVE TEMPORAL FILES
sudo apt autoremove -y
echo "=======================================================";
echo "====== Temporal Files From APT Deleted ==============";
echo "=======================================================";
sleep 2s; #small wait
#APTITUDE UPDATE APPS
sudo aptitude update -y;
echo "=======================================================";
echo "================== Aptitude Update =================";
echo "=======================================================";
sleep 2s; #small wait
#Deleting All Temporal Files
echo "=======================================================";
echo "========== Deleting All Temporal files ================";
echo "=======================================================";
sleep 4s; #small wait befor
sudo rm -rvf /var/tmp/*
sudo rm -rvf /tmp/*
TASK="Task Completed!!!"
TEXT="\e[35m${TASK}"
name=$(whoami)
notify-send "Hey!!! $name all Repositories has been check for updates"
echo -e "${TEXT}"
echo -e "\e[0m"