Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [student@centos2 ~]$ history
- 1 cat /etc/os-release
- 2 exit
- 3 vim countdown
- 4 countdown 12
- 5 ./countdown 12
- 6 ls -l countdown
- 7 chmod +x countdown
- 8 cat countdown
- 9 vim countdown
- 10 cat countdown
- 11 history
- 12 ls -l /root
- 13 sudo ls -l /root
- 14 id
- 15 dnf install openssh
- 16 sudo dnf install openssh
- 17 sudo systemctl status sshd
- 18 ip a
- 19 ssh 192.168.29.141
- 20 history
- 21 LS
- 22 ls
- 23 uname --help
- 24 uname -h
- 25 ls -lrt
- 26 pwd
- 27 cd /etc
- 28 ls -lrt
- 29 whoami
- 30 whoami --help
- 31 hostname
- 32 hostname --help
- 33 hostname --help | less
- 34 hostname -i
- 35 date
- 36 date --help | less
- 37 date +%d-%M-%Y
- 38 date +%d-%m-%Y
- 39 uname
- 40 uname -a
- 41 passwd
- 42 cd
- 43 touch hello
- 44 cd /etc
- 45 touch hello
- 46 cd
- 47 ls -l hello
- 48 touch hello
- 49 ls -l hello
- 50 last
- 51 history
- 52 history | less
- 53 man touch
- 54 pinfo '(coreutils) touch invocation'
- 55 man man
- 56 man -k user
- 57 man -k user | wc -l
- 58 man -k user
- 59 man -k user | grep 8
- 60 man -k sander
- 61 man man
- 62 man apropos
- 63 man mandb
- 64 sudo mandb
- 65 man lvcreate
- 66 history
- 67 man -k lvm
- 68 man lvcreate
- 69 man -k group
- 70 man -k group | wc -l
- 71 man -k group | grep 8
- 72 man -k group | grep 8 | grep user
- 73 man groupmems
- 74 man -k hostname
- 75 man hostnamectl
- 76 man hostname
- 77 hostnamectl centos2.example.com
- 78 hostnamectl --help
- 79 hostnamectl hostname centos2.example.com
- 80 exit
- 81 lvcreate --help | less
- 82 history
- 83 pwd
- 84 echo $USER
- 85 ls
- 86 ls -a
- 87 ls -al
- 88 ls /etc
- 89 ls -d /etc
- 90 ls -dl /etc
- 91 ls -lrt
- 92 cd /etc
- 93 ls a
- 94 ls a*
- 95 ls -d a*
- 96 ls -d a???
- 97 ls -d *???
- 98 ls -d ????
- 99 ls -d a[nm]
- 100 ls -d a[nm]*
- 101 ls -d a[a-m]*
- 102 ls trail
- 103 ls -trail
- 104 cd
- 105 cd /var/log
- 106 mkdir one
- 107 cd /tmp
- 108 mkdir one
- 109 rmdir one
- 110 mkdir one
- 111 touch one/two
- 112 rmdir one
- 113 rm -rf one
- 114 man hier
- 115 ls /usr
- 116 du -hs .
- 117 sudo du -hs .
- 118 cd /usr
- 119 du -hs .
- 120 cd /var
- 121 ls
- 122 ls log/
- 123 ls -l log/
- 124 less logs/messages
- 125 less log/messages
- 126 sudo less log/messages
- 127 cd /etc
- 128 ls
- 129 ls -l
- 130 less vconsole.conf
- 131 less passwd
- 132 less os-release
- 133 sudo apt install zypper
- 134 touch jhhkh
- 135 cd
- 136 countdown
- 137 echo $PATH
- 138 ./countdown
- 139 cp countdown /usr/local/bin
- 140 whoami
- 141 ls ld /usr/local/bin
- 142 ls -ld /usr/local/bin
- 143 sudo cp countdown /usr/local/bin
- 144 countdown
- 145 history
- 146 less log/messages
- 147 ls /var/log/messages
- 148 cd /var/cache
- 149 ls -l /var/log/messages
- 150 ls -l ../log/messages
- 151 cd
- 152 mkdir one/two/three/four/five
- 153 mkdir -p one/two/three/four/five
- 154 cd one/two/three/four/five
- 155 pwd
- 156 ls ..
- 157 ls ../..
- 158 ls ../../../../..
- 159 ls ../../../../../../..
- 160 cd
- 161 cp countdown /tmp/newdir
- 162 ls -l /tmp/newdir
- 163 rm -f /tmp/newdir
- 164 cp countdown /tmp/newdir/
- 165 mkdir /tmp/newdir
- 166 cp countdown /tmp/newdir/
- 167 cp * /tmp/newdir
- 168 ls -a /tmp/newdir
- 169 rm /tmp/newdir/*
- 170 cp -a .* /tmp/newdir/
- 171 ls -a /tmp/newdir
- 172 cp --help | less
- 173 ls
- 174 mv hello bue
- 175 ls
- 176 mv bue /tmp/
- 177 ls
- 178 history
- 179 sudo -i
- 180 cp /etc/hosts .
- 181 ls -il /etc/hosts
- 182 ls -il /etc/hosts hosts
- 183 ln hosts newhosts
- 184 ls -il hosts newhosts
- 185 echo hello
- 186 echo hello >> hosts
- 187 ls -il hosts newhosts
- 188 chmod +x hosts
- 189 ls -il hosts newhosts
- 190 ln -s hosts symhosts
- 191 ls -il hosts newhosts symhosts
- 192 rm hosts
- 193 ls -il hosts newhosts symhosts
- 194 cat symhosts
- 195 ln newhosts hosts
- 196 ls -il hosts newhosts symhosts
- 197 cat symhosts
- 198 history
- 199 cd /boot
- 200 ls
- 201 ln vmlinuz-5.14.0-319.el9.x86_64 ~/kernel
- 202 cd
- 203 unlink --help
- 204 mkdir /tmp/trash
- 205 cp -ar .* /tmp/trash/
- 206 ls -l
- 207 ls -la
- 208 cp -r /tmp .
- 209 ls
- 210 ls -ld tmp/
- 211 history
- 212 mkdir two/three/four
- 213 mkdir -p two/three/four
- 214 ls
- 215 tree
- 216 history
- 217 find / -name "hosts"
- 218 find / -name "hosts" 2>/dev/null
- 219 find / -name "hosts*" 2>/dev/null
- 220 sudo useradd bob
- 221 sudo find / -user "bob" -type f
- 222 sudo find / -user "bob" -type d
- 223 sudo find / -user "bob" -type l
- 224 sudo find / -size +1G
- 225 sudo find / -size +100G
- 226 sudo find / -size +100G 2>/dev/null
- 227 dd if=/dev/zero of=bigfile bs=1M count=111
- 228 sudo find / -size +100G 2>/dev/null
- 229 ls -l
- 230 ls -lh
- 231 sudo find / -size +100G 2>/dev/null
- 232 sudo find / -size +100M 2>/dev/null
- 233 sudo xxd -l 512 /dev/sda
- 234 sudo dd if=/dev/sda of=/root/mbr_backup bs=512 count=1
- 235 sudo dd if=/dev/zero of=/dev/sda bs=512 count=1
- 236 sudo xxd -l 512 /dev/sda
- 237 history
- 238 sudo dd if=/root/mbr_backup of=/dev/sda
- 239 sudo xxd -l 512 /dev/sda
- 240 history
- 241 lsblk
- 242 sudo dd if=/dev/sr0 of=/dev/sdb bs=1M
- 243 find / -user bob -exec ls -l {} \;
- 244 sudo find / -user bob -exec ls -l {} \; 2>/dev/null
- 245 sudo find / -user bob -exec ls -ld {} \; 2>/dev/null
- 246 who; ls
- 247 who\; ls
- 248 sudo find / -user bob -exec ls -ld {} \; 2>/dev/null
- 249 sudo mkdir /root/bob; sudo find / -user bob -exec cp -r {} /root/bob/ \; 2>/dev/null
- 250 echo $?
- 251 sudo ls -l /root/bob
- 252 ls
- 253 ls > lsfile
- 254 cat lsfile
- 255 ls hiughiughuih > lsfile
- 256 ls hiughiughuih hosts 2> lserr
- 257 cat lserr
- 258 ls oihiuh ; who
- 259 ls oihiuh && who
- 260 ls oihiuh || who
- 261 tar -cvf my_archive.tar /etc
- 262 sudo tar -cvf my_archive.tar /etc
- 263 ls
- 264 tar -tvf my_archive.tar
- 265 tar -xvf my_archive.tar
- 266 ls
- 267 tree etc
- 268 ls
- 269 ls -l my_archive.tar
- 270 tar -czvf my_archive.tgz /etc
- 271 sudo tar -czvf my_archive.tgz /etc
- 272 ls -l my*
- 273 sudo tar -cjvf my_archive.tar.bz2 /etc
- 274 ls -l my*
- 275 sudo tar -cJvf my_archive.tar.xz /etc
- 276 ls -l my*
- 277 history
- 278 mkdir /tmp/files
- 279 mkdir /tmp/files/{pictures,photos,videos}
- 280 tree /tmp/files
- 281 cp /etc/a* /tmp/files
- 282 cp /etc/[a-c]* /tmp/files
- 283 cd /tmp/files
- 284 ls
- 285 mv c* videos/
- 286 mv [ab]* photos/
- 287 man find
- 288 sudo find /etc -size -1000c -exec cp {} pictures/ \;
- 289 ls -l pictures/
- 290 ln -s /var .
- 291 ls
- 292 ls -l
- 293 tar -czvd homes.tgz /home
- 294 tar -czvf homes.tgz /home
- 295 ls
- 296 mkdir ../archive
- 297 cd ../archive/
- 298 tar -xvf ../files/homes.tgz
- 299 history
- 300 cd ../files/
- 301 ls
- 302 file homes.tgz
- 303 mv homes.tgz homes
- 304 file homes
- 305 vimtutor
- 306 vim vimfile
- 307 cat vimfile
- 308 sudo less /var/log/messages
- 309 sudo more /var/log/messages
- 310 head /etc/passwd
- 311 tail /etc/passwd
- 312 tail -5 /etc/passwd
- 313 tail -5 /etc/passwd | head -1
- 314 sudo tail -f /var/log/messages
- 315 cat /etc/hosts
- 316 cat /etc/passwd
- 317 cat /etc/passwd | less
- 318 less /etc/passwd
- 319 vim numbers
- 320 cat numbers
- 321 tac numbers
- 322 cd /etc
- 323 sudo grep student *
- 324 sudo grep student * 2>/dev/null
- 325 sudo grep -l student * 2>/dev/null
- 326 sudo grep -li student * 2>/dev/null
- 327 ps aux
- 328 ps aux | grep ssh
- 329 ps aux | grep ssh && echo ssh is running
- 330 ps aux | grep ssh >/dev/null && echo ssh is running
- 331 ps aux | grep sander >/dev/null && echo sander is running
- 332 ps aux | grep sander
- 333 ps aux | grep sander | grep -v grep
- 334 ps aux | grep sander | grep -v grep && echo sander is running
- 335 vim /etc/ssh/sshd_config
- 336 sudo vim /etc/ssh/sshd_config
- 337 sudo grep -i 'kerberos option' /etc/ssh/sshd_config
- 338 sudo grep -A 5 -i 'kerberos option' /etc/ssh/sshd_config
- 339 sudo grep -B 5 -i 'kerberos option' /etc/ssh/sshd_config
- 340 sudo grep -C 5 -i 'kerberos option' /etc/ssh/sshd_config
- 341 history
- 342 cd
- 343 vim regexes
- 344 cat regexes
- 345 grep 'anna' regexes
- 346 grep '^anna' regexes
- 347 grep 'anna$' regexes
- 348 grep '^anna$' regexes
- 349 grep '^anna' regexes
- 350 vim regexes
- 351 grep '^anna' regexes
- 352 grep '^anna$' regexes
- 353 grep '^anna\b' regexes
- 354 grep 'b.*t' regexes
- 355 grep 'b.+t' regexes
- 356 grep -E 'b.+t' regexes
- 357 grep -E 'b.?t' regexes
- 358 grep -E 'bo\{5\}t' regexes
- 359 grep 'bo\{5\}t' regexes
- 360 history
- 361 cat regexes
- 362 cut /etc/passwd
- 363 cut -d : -f 1 /etc/passwd
- 364 sort /etc/passwd
- 365 sort -k 3 /etc/passwd
- 366 sort -d : -k 3 /etc/passwd
- 367 man sort
- 368 echo hello
- 369 echo hello | tr a-z A-Z
- 370 echo hello | tr [:lower:] [:upper:]
- 371 echo hello | tr a-k l-z
- 372 sed -n 5p /etc/passwd
- 373 sed -i s/anna/ANNA/g regexes
- 374 cat regexes
- 375 head -1 /etc/passwd
- 376 awk -F : '{ print $4 }' /etc/passwd
- 377 awk -F : '/bob/ { print $4 }' /etc/passwd
- 378 awk -F : '$3 > 999 { print $1 }' /etc/passwd
- 379 history
- 380 head -5 /etc/passwd | tail -1
- 381 ps aux
- 382 ps aux | awk '{ print $1 }'
- 383 sudo grep -l '^root' /etc/*
- 384 sudo grep -l '^root' /etc/* 2>/dev/null
- 385 sudo tail -f | grep anna /var/log/messages
- 386 sudo tail -f /var/log/messages | grep anna
- 387 sudo sh -c |tail -f /var/log/messages | grep anna
- 388 sudo sh -c "tail -f /var/log/messages | grep anna"
- 389 sudo grep '...' /etc/* 2>/dev/null
- 390 sudo grep '^...$' /etc/* 2>/dev/null
- 391 history
- 392 ls > lsfile
- 393 cat lsfile
- 394 who > lsfile
- 395 cat lsfile
- 396 ls >> lsfile
- 397 grep -R root /etc &> myfile
- 398 ps aux | tee psfile | grep ssh
- 399 ls -la .bash_h*
- 400 history
- 401 sudo useradd anna
- 402 sudo sh -c "echo password | passwd --stdin anna"
- 403 history -d 403
- 404 history -w
- 405 ls -la .bash_h*
- 406 history -w
- 407 awk -F : '/bob/ { print $4 }' /etc/passwd
- 408 sudo dnf install -y bash-completion
- 409 touch ugiiiuguiguygyufuytytyfyugiugiutyutfytfytftydtydtydtrdtrdfyguhhoijiuftrdfytfuygiuhihiohuyfuyfyufyugyuguy
- 410 ls
- 411 rm ugiiiuguiguygyufuytytyfyugiugiutyutfytfytftydtydtydtrdtrdfyguhhoijiuftrdfytfuygiuhihiohuyfuyfyufyugyuguy
- 412 echo $HISTSIZE
- 413 env
- 414 echo $PATH
- 415 echo $SHELL
- 416 echo $USER
- 417 alias
- 418 alias goedemiddag='echo goedemiddag'
- 419 goedemiddag
- 420 cls
- 421 alias cls=clear
- 422 cls
- 423 history
- 424 sleep 3000
- 425 COLOR=red
- 426 echo $COLOR
- 427 bash
- 428 echo $COLOR
- 429 sudo vim /etc/bashrc
- 430 vim .bashrc
- 431 history
- 432 vim regexes
- 433 sleep 300
- 434 bg
- 435 sleep 400 &
- 436 jobs
- 437 fg 1
- 438 while true; do true; done &
- 439 top
- 440 clear
- 441 top
- 442 ps faux
- 443 ps -aux
- 444 ls lrt
- 445 ls -lrt
- 446 sudo top
- 447 sudo echo 0 > /sys/bus/cpu/devices/cpu1/online
- 448 sudo sh -c "echo 0 > /sys/bus/cpu/devices/cpu1/online"
- 449 sudo top
- 450 sudo dd if=/dev/zero of=/dev/null &
- 451 sudo top
- 452 sudo killall dd
- 453 history
- 454 sudo sh -c "echo 1 > /sys/bus/cpu/devices/cpu1/online"
- 455 sudo dnf repolist
- 456 sudo dnf install nmap
- 457 sudo dnf search nmap
- 458 sudo dnf search seinfo
- 459 sudo dnf provides */seinfo
- 460 sudo dnf install setools-console
- 461 sudo dnf groups list
- 462 sudo groups install "Virtualization Host"
- 463 sudo dnf groups install "Virtualization Host"
- 464 sudo useradd linda
- 465 sudo sh -c "echo password | passwd --stdin linda"
- 466 su - linda
- 467 usermod -aG wheel linda
- 468 sudo usermod -aG wheel linda
- 469 su - linda
- 470 sudo journalctl
- 471 history
- 472 sudo groupadd sales
- 473 sudo usermod -aG sales linda
- 474 sudo mkdir /data/sales
- 475 sudo mkdir -p /data/sales
- 476 ls -ld /data/sales
- 477 sudo chgrp sales /data/sales
- 478 ls -ld /data/sales
- 479 sudo chmod g+w /data/sales
- 480 ls -ld /data/sales
- 481 id linda
- 482 su - linda
- 483 history
- 484 ip a
- 485 ip route show
- 486 ping nu.nl
- 487 cat /etc/resolv.conf
- 488 lsblk
- 489 sudo mount /dev/sr0 /mnt
- 490 ls -l /mnt
- 491 sudo umount /mnt
- 492 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement