sandervanvugt

Untitled

Jun 3rd, 2020
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.85 KB | None | 0 0
  1. Jun 03 19:48:49 linfun2.example.com systemd[1]: Started The Apache HTTP Server.
  2. Jun 03 19:49:09 linfun2.example.com httpd[64657]: Server configured, listening on: port 80
  3. [root@linfun2 log]# history
  4. 1 exit
  5. 2 su - linda
  6. 3 sudo passwd linda
  7. 4 su - linda
  8. 5 exit
  9. 6 exit
  10. 7 systemctl status sshd
  11. 8 apt install openssh-server
  12. 9 systemctl enable --now sshd
  13. 10 ip a
  14. 11 firewall-cmd --list-all
  15. 12 ip a
  16. 13 exit
  17. 14 cd /
  18. 15 ls
  19. 16 ls -l
  20. 17 cd
  21. 18 ls
  22. 19 ls -a
  23. 20 ls -ld /etc
  24. 21 ls -l /etc
  25. 22 ls -lrt /etc/
  26. 23 cat /etc/shadow
  27. 24 ls -lrt /etc/
  28. 25 cd /etc
  29. 26 ls a*
  30. 27 ls -d a*
  31. 28 ls -d a?*
  32. 29 ls -d a?t*
  33. 30 ls -d a?[td]*
  34. 31 cd /
  35. 32 cd
  36. 33 mkdir hello
  37. 34 rmdir hello
  38. 35 cd /
  39. 36 ls -l
  40. 37 cd /var/log
  41. 38 ls -l
  42. 39 du -hs
  43. 40 cd /home
  44. 41 ls -l
  45. 42 ls -ld /tmp
  46. 43 cd student
  47. 44 touch studentfile
  48. 45 cp studentfile ../linda/
  49. 46 ls
  50. 47 cp countdown /somedir
  51. 48 ls -l /somedir
  52. 49 rm /somedir
  53. 50 cp countdown /somedir/
  54. 51 mkdir /somedir
  55. 52 cp countdown /somedir/
  56. 53 LS
  57. 54 cp -Ra .* /tmp/student/
  58. 55 mkdir /tmp/student/
  59. 56 cp -Ra .* /tmp/student/
  60. 57 rm -rf /tmp/student
  61. 58 pwd
  62. 59 mkdir /tmp/student; cp -Ra .* /tmp/student/
  63. 60 mkdir /tmp/student; cp -R .* /tmp/student/
  64. 61 ls
  65. 62 pwd
  66. 63 mv studentfile /tmp/
  67. 64 ls
  68. 65 mv q qfile
  69. 66 ln /etc/hosts myhosts
  70. 67 ls -il /etc/hosts myhosts
  71. 68 echo hello >> myhosts
  72. 69 cat myhosts
  73. 70 ls -il /etc/hosts myhosts
  74. 71 ln -s /etc/hosts symhosts
  75. 72 ls -il /etc/hosts myhosts symhosts
  76. 73 rm /etc/hosts
  77. 74 ls -il /etc/hosts myhosts symhosts
  78. 75 cat symhosts
  79. 76 ln myhosts /etc/hosts
  80. 77 ls -il /etc/hosts myhosts symhosts
  81. 78 cd /
  82. 79 ls -l
  83. 80 cd /root
  84. 81 ln /boot/vmlinuz-4.18.0-147.el8.x86_64 mykernel
  85. 82 ln -s /boot/vmlinuz-4.18.0-147.el8.x86_64 mykernel
  86. 83 ln /etc myetc
  87. 84 ln -s /etc myetc
  88. 85 vim myscript
  89. 86 chmod +x myscript
  90. 87 ./myscript
  91. 88 find / -name "hosts"
  92. 89 find / -name "*hosts*"
  93. 90 tail /etc/passwd
  94. 91 find / -user linda
  95. 92 find / -user linda 2>/dev/null
  96. 93 find / -size +100M
  97. 94 mkdir /root/linda; find / -user linda -exec cp {} /root/linda/ \;
  98. 95 tar -cvf myarchive
  99. 96 tar -cvf myarchive /home /etc
  100. 97 ls -l myarchive
  101. 98 file myarchive
  102. 99 tar -tvf myarchive
  103. 100 tar -xvf myarchive
  104. 101 ls
  105. 102 pwd
  106. 103 rm -rf etc home
  107. 104 ls -l myarchive
  108. 105 tar czvf myarchive.tgz /etc/ /home
  109. 106 ls -l myarch*
  110. 107 tar -cjvf myarchive.bz2 /home /etc
  111. 108 ls -l myarch*
  112. 109 history
  113. 110 ls
  114. 111 man tar
  115. 112 history
  116. 113 xz myarchive
  117. 114 ls myarchive*
  118. 115 ls -l myarchive*
  119. 116 vim myvimdemo
  120. 117 less /var/log/messages
  121. 118 more /var/log/messages
  122. 119 cat /etc/hosts
  123. 120 tac /etc/hosts
  124. 121 tail -n 5 /var/log/messages
  125. 122 head -n 5 /var/log/messages
  126. 123 man type
  127. 124 type passwd
  128. 125 type ls
  129. 126 alias
  130. 127 alias sander='echo hello world'
  131. 128 sander
  132. 129 cd /etc
  133. 130 grep lisa *
  134. 131 grep lisa * 2>/dev/null
  135. 132 grep linda * 2>/dev/null
  136. 133 grep -l linda * 2>/dev/null
  137. 134 grep linda * 2>/dev/null
  138. 135 grep linda * 2>/dev/null | grep -v bash
  139. 136 grep -Rl linda *
  140. 137 grep -l root * 2>/dev/null
  141. 138 grep -lR root * 2>/dev/null
  142. 139 cd /
  143. 140 grep -l sander *
  144. 141 grep -lR sander *
  145. 142 find / -name countdown
  146. 143 echo $PATH
  147. 144 ln /usr/local/bin/countdown /usr/bin/countdown
  148. 145 countdown 13
  149. 146 cd
  150. 147 vim myfile
  151. 148 grep 'read' myfile
  152. 149 grep '^read' myfile
  153. 150 grep '^read$' myfile
  154. 151 man semanage-fcontext
  155. 152 history
  156. 153 cut linda /etc/passwd
  157. 154 cut -d : -f 1 /etc/passwd
  158. 155 cut -d : -f 1 /etc/passwd | grep linda
  159. 156 cut -d : -f 1 /etc/passwd | sort
  160. 157 cut -d : -f 1 /etc/passwd | sort -n
  161. 158 vim number
  162. 159 sort number
  163. 160 sort -n number
  164. 161 echo hello | tr [:lower:][:upper:]
  165. 162 echo hello | tr [:lower:] [:upper:]
  166. 163 echo hello | tr a-z A-Z
  167. 164 sed -n 5p /etc/passwd
  168. 165 head -5 /etc/passwd
  169. 166 head -5 /etc/passwd | tail -1
  170. 167 cat myfile
  171. 168 sed -i s/red/read/g myfile
  172. 169 cat myfile
  173. 170 sed -i -e '2d' myfile
  174. 171 cat myfile
  175. 172 cp myfile yourfile
  176. 173 ls
  177. 174 mv myfile myfile.txt
  178. 175 mv yourfile yourfile.txt
  179. 176 ls *txt
  180. 177 cat myfile.txt; cat yourfile.txt; for i in *txt; do sed -i -e '2d' $i; done
  181. 178 cat *txt
  182. 179 awk -F : '{ print $4 }' /etc/passwd
  183. 180 tail /etc/passwd
  184. 181 awk -F : '/linda/ { print $4 }' /etc/passwd
  185. 182 history
  186. 183 ps aux
  187. 184 ps aux | grep ssh
  188. 185 kill -9 1305
  189. 186 ps aux | grep ssh
  190. 187 ps aux | grep ssh | grep -v grep
  191. 188 sleep 30; ps aux | grep ssh | grep -v grep
  192. 189 history
  193. 190 systemctl cat sshd
  194. 191 ps aux | tee psfile | grep ssh
  195. 192 cat psfile
  196. 193 history
  197. 194 exit
  198. 195 history
  199. 196 ls -l .bash_history
  200. 197 env
  201. 198 env | grep HIST
  202. 199 history
  203. 200 history -d 199
  204. 201 history
  205. 202 env | grep HIST
  206. 203 history
  207. 204 rpm -qa | grep bash
  208. 205 echo a > wirhiwrykubhwiurbuiwguigvhuiwguigbiuwuirbguirwgbiurwgiubgrwuigbiuwgrbiugwriugbuiwgruibgwrueigbieurgbiugwreiugbiwugbgiurw
  209. 206 cat wirhiwrykubhwiurbuiwguigvhuiwguigbiuwuirbguirwgbiurwgiubgrwuigbiuwgrbiugwriugbuiwgruibgwrueigbieurgbiugwreiugbiwugbgiurw
  210. 207 rm wirhiwrykubhwiurbuiwguigvhuiwguigbiuwuirbguirwgbiurwgiubgrwuigbiuwgrbiugwriugbuiwgruibgwrueigbieurgbiugwreiugbiwugbgiurw
  211. 208 userinfo linda
  212. 209 nmcli connection show
  213. 210 nmcli connection show ens33
  214. 211 apt install bash-completion
  215. 212 yum install bash-completion
  216. 213 countdown 12
  217. 214 env
  218. 215 MYVAR=hello
  219. 216 echo $MYVAR
  220. 217 shell
  221. 218 bash
  222. 219 echo $MYVAR
  223. 220 export MYVAR=hello
  224. 221 bash
  225. 222 vim /etc/profile
  226. 223 vim .bash_profile
  227. 224 vim .bashrc
  228. 225 sander
  229. 226 source .bashrc
  230. 227 sander
  231. 228 sleep 3600
  232. 229 jobs
  233. 230 bg
  234. 231 jobs
  235. 232 sleep 1800 &
  236. 233 jobs
  237. 234 fg 1
  238. 235 sleep 3600
  239. 236 bg
  240. 237 sleep 3600
  241. 238 jobs
  242. 239 bg
  243. 240 top
  244. 241 dd if=/dev/zero of=/dev/null &
  245. 242 top
  246. 243 ps -e -o pid,args --forest | less
  247. 244 history -w
  248. 245 history
  249. 246 ls -l .bash_history
  250. 247 env
  251. 248 env | grep HIST
  252. 249 history
  253. 250 history -d 199
  254. 251 history
  255. 252 env | grep HIST
  256. 253 history
  257. 254 rpm -qa | grep bash
  258. 255 echo a > wirhiwrykubhwiurbuiwguigvhuiwguigbiuwuirbguirwgbiurwgiubgrwuigbiuwgrbiugwriugbuiwgruibgwrueigbieurgbiugwreiugbiwugbgiurw
  259. 256 cat wirhiwrykubhwiurbuiwguigvhuiwguigbiuwuirbguirwgbiurwgiubgrwuigbiuwgrbiugwriugbuiwgruibgwrueigbieurgbiugwreiugbiwugbgiurw
  260. 257 rm wirhiwrykubhwiurbuiwguigvhuiwguigbiuwuirbguirwgbiurwgiubgrwuigbiuwgrbiugwriugbuiwgruibgwrueigbieurgbiugwreiugbiwugbgiurw
  261. 258 userinfo linda
  262. 259 nmcli connection show
  263. 260 nmcli connection show ens33
  264. 261 apt install bash-completion
  265. 262 yum install bash-completion
  266. 263 countdown 12
  267. 264 env
  268. 265 MYVAR=hello
  269. 266 echo $MYVAR
  270. 267 shell
  271. 268 bash
  272. 269 echo $MYVAR
  273. 270 export MYVAR=hello
  274. 271 bash
  275. 272 vim /etc/profile
  276. 273 vim .bash_profile
  277. 274 vim .bashrc
  278. 275 sander
  279. 276 source .bashrc
  280. 277 sander
  281. 278 sleep 3600
  282. 279 jobs
  283. 280 bg
  284. 281 jobs
  285. 282 sleep 1800 &
  286. 283 jobs
  287. 284 fg 1
  288. 285 sleep 3600
  289. 286 bg
  290. 287 sleep 3600
  291. 288 jobs
  292. 289 bg
  293. 290 top
  294. 291 dd if=/dev/zero of=/dev/null &
  295. 292 top
  296. 293 ps -e -o pid,args --forest | less
  297. 294 history -w
  298. 295 ps -e -o pid,args --forest | less
  299. 296 kill 3169
  300. 297 kill -9 3169
  301. 298 dd if=/dev/sr0 of=cdrom.iso bs=1M &
  302. 299 top
  303. 300 ps aux | head
  304. 301 DD
  305. 302 cd /sys
  306. 303 ls
  307. 304 cd devices/
  308. 305 ls
  309. 306 cd cpu/
  310. 307 ls
  311. 308 cd ../..
  312. 309 cd bus/
  313. 310 ls
  314. 311 cd cpu/
  315. 312 ;s
  316. 313 ls
  317. 314 cd devices/
  318. 315 ls
  319. 316 pwd
  320. 317 tree
  321. 318 cd cpu1/
  322. 319 ls
  323. 320 cat online
  324. 321 lscpu
  325. 322 echo 0 > online
  326. 323 lscpu
  327. 324 pwd
  328. 325 history | tail -5
  329. 326 top
  330. 327 cd
  331. 328 dd if=/dev/zero of=/dev/null &
  332. 329 top
  333. 330 killall dd
  334. 331 history
  335. 332 countdown 12
  336. 333 cd /etc/yum.repos.d/
  337. 334 ls
  338. 335 vim CentOS-Base.repo
  339. 336 cd
  340. 337 yum repolis
  341. 338 yum repolist
  342. 339 yum search nmap
  343. 340 yum install nmap
  344. 341 nmap -ns 192.168.4.0/24
  345. 342 nmap -sn 192.168.4.0/24
  346. 343 nmap 192.168.4.2
  347. 344 nmap 192.168.4.157
  348. 345 yum groups list
  349. 346 yum groups install "Virtualization Host"
  350. 347 systemctl status httpd
  351. 348 cd /var/log
  352. 349 ls -lrt
  353. 350 systemctl status httpd
  354. 351 history
Add Comment
Please, Sign In to add comment