SHOW:
|
|
- or go back to the newest paste.
1 | [root@localhost ~]# history | |
2 | 1 vim countdown.sh | |
3 | 2 chmod +x countdown.sh | |
4 | 3 ./countdown.sh 16 | |
5 | 4 exit | |
6 | 5 tar -czvf /root/archive.tgz /etc | |
7 | 6 ls -l /root/archive.tgz | |
8 | 7 tar tvf /root/archive.tgz | |
9 | 8 grep -v '^$' /etc/dnsmasq.conf | |
10 | 9 grep -v '^$' /etc/dnsmasq.conf | sort > /var/tmp/dnslines.txt | |
11 | 10 useradd linda | |
12 | 11 find / -user linda | |
13 | 12 find / -user linda 2>/dev/null | |
14 | 13 mkdir /root/userfiles; find / -user linda -exec cp {} /root/userfiles \; | |
15 | 14 history | |
16 | 15 ./countdown.sh 13 | |
17 | 16 ./countdown.sh 12 | |
18 | 17 cat countdown.sh | |
19 | 18 #tar -cvzf /root/archive2.tgz /etc | |
20 | 19 history | |
21 | 20 vim countdown.sh | |
22 | 21 git clone https://github.com/sandervanvugt/rhcsa | |
23 | 22 cat /etc/passwd | |
24 | 23 head -1 /etc/passwd | |
25 | 24 tail /etc/group | |
26 | 25 id student | |
27 | 26 id linda | |
28 | 27 su - linda | |
29 | 28 passwd lindaA | |
30 | 29 su - linda | |
31 | 30 usermod -aG wheel linda | |
32 | 31 id linda | |
33 | 32 su - linda | |
34 | 33 history | |
35 | 34 vim /etc/login.defs | |
36 | 35 cd /etc/skel/ | |
37 | 36 ls | |
38 | 37 ls -a | |
39 | 38 ls -a /home/linda | |
40 | 39 pwd | |
41 | 40 passwd --help | |
42 | 41 chage linda | |
43 | 42 grep linda /etc/shadow | |
44 | 43 man 5 shadow | |
45 | 44 cd | |
46 | 45 grep linda /etc/passwd | |
47 | 46 grep linda /etc/group | |
48 | 47 id linda | |
49 | 48 ls -l | |
50 | 49 chmod -x countdown.sh | |
51 | 50 ls -l | |
52 | 51 ./countdown.sh | |
53 | 52 chmod +x countdown.sh | |
54 | 53 ./countdown.sh | |
55 | 54 countdown.sh | |
56 | 55 mkdir /data/files | |
57 | 56 mkdir -p /data/files | |
58 | 57 cd /data | |
59 | 58 groupadd sales | |
60 | 59 usermod -aG sales linda | |
61 | 60 mkdir sales | |
62 | 61 ls -l | |
63 | 62 chgrp sales sales | |
64 | 63 ls -l | |
65 | 64 chmod 770 sales | |
66 | 65 ls -l | |
67 | 66 chmod g-x sales | |
68 | 67 ls -l | |
69 | 68 chmod g+x sales | |
70 | 69 ls -l | |
71 | 70 cd sales | |
72 | 71 touch myfile | |
73 | 72 ls -l | |
74 | 73 ln -s myfile linkfile | |
75 | 74 ls -l | |
76 | 75 history | |
77 | 76 cd | |
78 | 77 ./countdown.sh 12 | |
79 | 78 pwd | |
80 | 79 cd /home/linda | |
81 | 80 touch rootfile | |
82 | 81 ls -l | |
83 | 82 su - linda | |
84 | 83 pwd | |
85 | 84 vim playme.sh | |
86 | 85 chmod +x playme.sh | |
87 | 86 su - linda | |
88 | 87 chmod u+s playme.sh | |
89 | 88 ls -k | |
90 | 89 ls -l | |
91 | 90 find / -perm /4000 2>/dev/null | |
92 | 91 find / -perm /4000 -exec ls -l {} \; 2>/dev/null | |
93 | 92 ls -l /etc/shadow | |
94 | 93 tail -1 /etc/shadow | |
95 | 94 useradd -G sales lisa | |
96 | 95 grep sales /etc/group | |
97 | 96 passwd lisa | |
98 | 97 su - lisa | |
99 | 98 chmod g+s /data/sales | |
100 | 99 ls -ld /data/sales | |
101 | 100 su - lisa | |
102 | 101 cd /data | |
103 | 102 chmod +t sales/ | |
104 | 103 ls -l | |
105 | 104 su - lisa | |
106 | 105 ls -l | |
107 | 106 chgrp wheel files | |
108 | 107 ls -l | |
109 | 108 xxd -l 512 /dev/sda | |
110 | 109 lsblk | |
111 | 110 xxd -l 512 /dev/nvme0n1 | |
112 | 111 fdisk -l /dev/nvme0n1 | |
113 | 112 poweroff | |
114 | 113 ./countdown.sh 12 | |
115 | 114 lsblk | |
116 | 115 ls -l /dev/nv* | |
117 | 116 fdisk /dev/nvme0n1 | |
118 | 117 lsblk | |
119 | 118 mkfs.xfs /dev/nvme0n1p3 | |
120 | 119 mount /dev/nvme0n1p3 /mnt | |
121 | 120 findmnt | |
122 | 121 lsblk | |
123 | 122 cd /mnt | |
124 | 123 ls | |
125 | 124 cp /etc/hosts . | |
126 | 125 ls | |
127 | 126 umount /mnt | |
128 | 127 lsof . | |
129 | 128 cd | |
130 | 129 umount /mnt | |
131 | 130 vim /etc/fstab | |
132 | 131 mount -a | |
133 | 132 mkdir /files | |
134 | 133 mount -a | |
135 | 134 reboot | |
136 | 135 who | |
137 | 136 history | |
138 | 137 exit | |
139 | 138 lsblk | |
140 | 139 history | |
141 | 140 cd /files/ | |
142 | 141 ls | |
143 | 142 lsblk | |
144 | 143 history | |
145 | 144 exit | |
146 | 145 history | |
147 | 146 fdisk /dev/nvme0n1 | |
148 | 147 reboot | |
149 | 148 lsblk | |
150 | 149 mkfs.xfs /dev/nvme0n1p5 | |
151 | 150 mkfs.ext4 /dev/nvme0n1p6 | |
152 | 151 mkdir /xfs | |
153 | 152 mkdir /ext4 | |
154 | 153 vim /etc/fstab | |
155 | 154 mount -a | |
156 | 155 lsblk | |
157 | 156 touch /ext4/myext4file | |
158 | 157 history | |
159 |