-
Notifications
You must be signed in to change notification settings - Fork 0
/
Script_Day1.sc
131 lines (124 loc) · 8.13 KB
/
Script_Day1.sc
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
Script started on 2023-10-16 07:09:00+00:00 [TERM="linux" TTY="/dev/pts/0" COLUMNS="158" LINES="47"]
linux-lab-VM@ubuntu-day-1:~$ cal
October 2023
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 [7m16[27m 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
linux-lab-VM@ubuntu-day-1:~$ cal 2005
2005
January February March
Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa
1 1 2 3 4 5 1 2 3 4 5
2 3 4 5 6 7 8 6 7 8 9 10 11 12 6 7 8 9 10 11 12
9 10 11 12 13 14 15 13 14 15 16 17 18 19 13 14 15 16 17 18 19
16 17 18 19 20 21 22 20 21 22 23 24 25 26 20 21 22 23 24 25 26
23 24 25 26 27 28 29 27 28 27 28 29 30 31
30 31
April May June
Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa
1 2 1 2 3 4 5 6 7 1 2 3 4
3 4 5 6 7 8 9 8 9 10 11 12 13 14 5 6 7 8 9 10 11
10 11 12 13 14 15 16 15 16 17 18 19 20 21 12 13 14 15 16 17 18
17 18 19 20 21 22 23 22 23 24 25 26 27 28 19 20 21 22 23 24 25
24 25 26 27 28 29 30 29 30 31 26 27 28 29 30
July August September
Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa
1 2 1 2 3 4 5 6 1 2 3
3 4 5 6 7 8 9 7 8 9 10 11 12 13 4 5 6 7 8 9 10
10 11 12 13 14 15 16 14 15 16 17 18 19 20 11 12 13 14 15 16 17
17 18 19 20 21 22 23 21 22 23 24 25 26 27 18 19 20 21 22 23 24
24 25 26 27 28 29 30 28 29 30 31 25 26 27 28 29 30
31
October November December
Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa
1 1 2 3 4 5 1 2 3
2 3 4 5 6 7 8 6 7 8 9 10 11 12 4 5 6 7 8 9 10
9 10 11 12 13 14 15 13 14 15 16 17 18 19 11 12 13 14 15 16 17
16 17 18 19 20 21 22 20 21 22 23 24 25 26 18 19 20 21 22 23 24
23 24 25 26 27 28 29 27 28 29 30 25 26 27 28 29 30 31
30 31
linux-lab-VM@ubuntu-day-1:~$ cal 20051200512005 2005
November 2005
Su Mo Tu We Th Fr Sa
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
linux-lab-VM@ubuntu-day-1:~$ date
Mon Oct 16 07:09:44 UTC 2023
linux-lab-VM@ubuntu-day-1:~$ echo "Cop[K[K[KHello from shelllshellishellnshellushellxshell shell[C[C[C[C[C"
Hello from linux shell
linux-lab-VM@ubuntu-day-1:~$ ls
day1_commands
linux-lab-VM@ubuntu-day-1:~$ echo "[K[K[K[K[K[K[Klinux-lab-VM@ubuntu-day-1:~$ [Klinux-lab-VM@ubuntu-day-1:~$ lsecho "Hello from linux shell"date[Kcal 11 2005[3P2005[Kexit[2Plsexit[1Pcal 200511 2005[7Pdateecho "Hello from linux shell"ls[K[Kpwd
/home/linux-lab-VM
linux-lab-VM@ubuntu-day-1:~$ who
linux-lab-VM pts/0 2023-10-16 06:55 (10.0.1.4)
linux-lab-VM@ubuntu-day-1:~$ who
linux-lab-VM pts/0 2023-10-16 06:55 (10.0.1.4)
linux-lab-VM@ubuntu-day-1:~$ tty
/dev/pts/1
linux-lab-VM@ubuntu-day-1:~$ uname
Linux
linux-lab-VM@ubuntu-day-1:~$ uname -r
5.15.0-1045-azure
linux-lab-VM@ubuntu-day-1:~$ ls
day1_commands
linux-lab-VM@ubuntu-day-1:~$ d[Kcd [K[K[Kmkfo[K[Kdor[K[Kir Deskto[[Kp
linux-lab-VM@ubuntu-day-1:~$ cd Desktop
linux-lab-VM@ubuntu-day-1:~/Desktop$ ls [K-[K -lal[C
total 8
drwxrwxr-x 2 linux-lab-VM linux-lab-VM 4096 Oct 16 07:23 [0m[01;34m.[0m
drwxr-xr-x 5 linux-lab-VM linux-lab-VM 4096 Oct 16 07:23 [01;34m..[0m
linux-lab-VM@ubuntu-day-1:~/Desktop$ cd ..
linux-lab-VM@ubuntu-day-1:~$ mkdir Global
linux-lab-VM@ubuntu-day-1:~$ cd [K[K[Kls
[0m[01;34mDesktop[0m [01;34mGlobal[0m day1_commands
linux-lab-VM@ubuntu-day-1:~$ mkdir Documents Downloads labs snap
linux-lab-VM@ubuntu-day-1:~$ mkdir Documents Downloads labs snap[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[KA1 B1 C1 D1
linux-lab-VM@ubuntu-day-1:~$ ls
[0m[01;34mA1[0m [01;34mB1[0m [01;34mC1[0m [01;34mD1[0m [01;34mDesktop[0m [01;34mDocuments[0m [01;34mDownloads[0m [01;34mGlobal[0m day1_commands [01;34mlabs[0m [01;34msnap[0m
linux-lab-VM@ubuntu-day-1:~$ [Klinux-lab-VM@ubuntu-day-1:~$ [Klinux-lab-VM@ubuntu-day-1:~$ lsmkdir A1 B1 C1 D1Documents Downloads labs snap[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[Cls[Kmkdir Global/sub_Glo[K[K[K[K-Global
linux-lab-VM@ubuntu-day-1:~$ ls glo[K[K[KGlobal
[0m[01;34msub-Global[0m
linux-lab-VM@ubuntu-day-1:~$ ls Globalmkdir Global/sub-Global[1P/sub-Global[1P/sub-Global[1P/sub-Global[1P/sub-Global[1P/sub-Global[1P/sub-Globalc/sub-Globalo/sub-Globall/sub-Globall/sub-Globale/sub-Globalg/sub-Globale/sub-Global[1Pollege/sub-GlobalCollege/sub-Global[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[K[K[K[K[K[K[K[K[K[KBGIEM
mkdir: cannot create directory ‘College/BGIEM’: No such file or directory
linux-lab-VM@ubuntu-day-1:~$ mkdir College/BGIEM /BGIEMC/BGIEMo/BGIEMl/BGIEMl/BGIEMe/BGIEMg/BGIEMe/BGIEM[C[C[C[C[C[C College/GGITS College/[Klinux-lab-VM@ubuntu-day-1:~$ mkdir College College/BGIEM College/GGITS College/[Klinux-lab-VM@ubuntu-day-1:~$ mkdir College College/BGIEM College/GGITS College/UIT-[K_RGPV
linux-lab-VM@ubuntu-day-1:~$ ld[Ks
[0m[01;34mA1[0m [01;34mB1[0m [01;34mC1[0m [01;34mCollege[0m [01;34mD1[0m [01;34mDesktop[0m [01;34mDocuments[0m [01;34mDownloads[0m [01;34mGlobal[0m day1_commands [01;34mlabs[0m [01;34msnap[0m
linux-lab-VM@ubuntu-day-1:~$ ls College/
[0m[01;34mBGIEM[0m [01;34mGGITS[0m [01;34mUIT_RGPV[0m
linux-lab-VM@ubuntu-day-1:~$ mkdir A A/B B/[K[KA/C[C A/CB A/C/ A/CD A/C[C A/C[1PA/C[C[C[C[C C/E[C[1P[1P[1P[1P[1P[1@ [C[C[C[C[C[C[C[K[K[KA/b/[K[KB/D A/C/E
linux-lab-VM@ubuntu-day-1:~$ ls A
[0m[01;34mB[0m [01;34mC[0m
linux-lab-VM@ubuntu-day-1:~$ ls B
ls: cannot access 'B': No such file or directory
linux-lab-VM@ubuntu-day-1:~$ ls BAB/B
[0m[01;34mD[0m
linux-lab-VM@ubuntu-day-1:~$ ls A/B[K[K[KA/C
[0m[01;34mE[0m
linux-lab-VM@ubuntu-day-1:~$ rmdr[Kir A/B?[K/C/E
rmdir: failed to remove 'A/B/C/E': No such file or directory
linux-lab-VM@ubuntu-day-1:~$ rmdir A/B/C/E[K[K[K[K[K[K
rmdir: failed to remove 'A': Directory not empty
linux-lab-VM@ubuntu-day-1:~$
linux-lab-VM@ubuntu-day-1:~$ rmdir A/B/C/E[K[K[K[K[K[K1
linux-lab-VM@ubuntu-day-1:~$ ls
[0m[01;34mA[0m [01;34mB1[0m [01;34mC1[0m [01;34mCollege[0m [01;34mD1[0m [01;34mDesktop[0m [01;34mDocuments[0m [01;34mDownloads[0m [01;34mGlobal[0m day1_commands [01;34mlabs[0m [01;34msnap[0m
linux-lab-VM@ubuntu-day-1:~$ rm -r A
linux-lab-VM@ubuntu-day-1:~$ lsexit[K[K[K[K[K[Kls
[0m[01;34mB1[0m [01;34mC1[0m [01;34mCollege[0m [01;34mD1[0m [01;34mDesktop[0m [01;34mDocuments[0m [01;34mDownloads[0m [01;34mGlobal[0m day1_commands [01;34mlabs[0m [01;34msnap[0m
linux-lab-VM@ubuntu-day-1:~$ exit
exit
Script done on 2023-10-16 07:41:58+00:00 [COMMAND_EXIT_CODE="0"]