Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@localhost ~]# history
- 1 vimtutor
- 2 vim countdown
- 3 countdown 12
- 4 echo $PATH
- 5 ./countdown 12
- 6 ls -l countdown
- 7 chmod +x countdown
- 8 ./countdown 12
- 9 exit
- 10 visudo
- 11 id student
- 12 usermod -aG wheel student
- 13 id student
- 14 exit
- 15 visudo
- 16 useradd linda
- 17 passwd linda
- 18 su - linda
- 19 visudo
- 20 su - linda
- 21 visudo
- 22 vim /etc/sudoers.d/linda
- 23 history
- 24 systemctl isolate multi-user.target
- 25 systemctl start graphical.target
- 26 history
- 27 exit
- 28 ip a
- 29 systemctl status sshd
- 30 firewall-cmd --list-all
- 31 ./countdown 13
- 32 ./countdown
- 33 countdown
- 34 echo $PATH
- 35 cp countdown /usr/local/bin
- 36 cd /
- 37 ls -l
- 38 man hier
- 39 cd /etc
- 40 ls
- 41 cd
- 42 vim countdown
- 43 countdown 0
- 44 ln /etc/hosts myhosts
- 45 ls -il /etc/hosts myhosts
- 46 echo 10.0.0.10 dummy >> myhosts
- 47 ls -il /etc/hosts myhosts
- 48 ln -s myhosts symhosts
- 49 ls -il /etc/hosts myhosts symhosts
- 50 cat symhosts myhosts /etc/hosts
- 51 rm myhosts
- 52 ls -il /etc/hosts myhosts symhosts
- 53 cat symhosts
- 54 ln /etc/hosts myhosts
- 55 rm /etc/hosts
- 56 cat myhosts
- 57 ln myhosts /etc/hosts
- 58 ln /boot/vmlinuz-4.18.0-193.el8.x86_64 kernel
- 59 ln -s /boot/vmlinuz-4.18.0-193.el8.x86_64 kernel
- 60 ln /etc myetc
- 61 ln -s /etc myetc
- 62 lsblk
- 63 umount /dev/sdb1
- 64 ls /mnt
- 65 mount /dev/sdb1 /mnt
- 66 ls /mnt
- 67 cd /mnt
- 68 ls
- 69 umount /dev/sdb1
- 70 lsof /mnt
- 71 cd
- 72 umount /dev/sdb1
- 73 cd /boot
- 74 ls
- 75 cd
- 76 ls
- 77 rm myhosts
- 78 find / -xtype l
- 79 ls -l
- 80 find / -xtype l | grep host
- 81 find -P ./ -xtype l
- 82 find / -xtype l -exec ls -l {} \;
- 83 find / -xtype l -exec ls -l {} \; 2>/dev/null
- 84 find / -name "hosts"
- 85 find / -name "*hosts*"
- 86 find / -size +100M > bigfiles.txt
- 87 less bigfiles.txt
- 88 find / -user linda
- 89 ls -l /run/user/1000/
- 90 ls -il /run/user/1000/
- 91 ls -il /run/user/1000/gvfs
- 92 echo $?
- 93 history
- 94 alias twaalf='countdown 12'
- 95 twaalf
- 96 man password
- 97 man -k password
- 98 man man
- 99 man apropos
- 100 mandb
- 101 man -k password
- 102 man -k password | wc
- 103 man -k password | grep 1
- 104 man passwd
- 105 man -k authentication
- 106 man -k user
- 107 less /etc/passwd
- 108 less /etc/shadow
- 109 man passwd
- 110 man 5 passwd
- 111 man pwconv
- 112 ls -l /etc/passwd
- 113 ls -l /etc/shadow
- 114 cat /etc/shadow
- 115 id student
- 116 grep student /etc/group
- 117 grep student /etc/passwd
- 118 id student
- 119 vim /etc/login.defs
- 120 useradd lisa
- 121 passwd -l lisa
- 122 passwd -u lisa
- 123 passwd -L lisa
- 124 chage lisa
- 125 chage -L lisa
- 126 chage -l lisa
- 127 groups --help
- 128 groups student
- 129 history
- 130 chage lisa
- 131 chage --help
- 132 groupadd account
- 133 groupadd sales
- 134 useradd -G account anna
- 135 useradd -G account anouk
- 136 id anna
- 137 w
- 138 id linda
- 139 id lisa
- 140 usermod -aG sales lisa
- 141 usermod -aG sales linda
- 142 id lisa
- 143 usermod -G wheel lisa
- 144 id lisa
- 145 usermod -aG sales lisa
- 146 usermod --help | less
- 147 ls -l $(which useradd) $(which adduser)
- 148 ls -l /etc/skel
- 149 ls -al /etc/skel
- 150 touch /etc/skel/blah
- 151 useradd bill
- 152 ls -la /home/bill
- 153 history
- 154 cd /home
- 155 ls -l
- 156 cd /etc
- 157 ls -l
- 158 cd
- 159 tail -2 /etc/group
- 160 tail -8 /etc/group
- 161 mkdir /data/sales
- 162 mkdir -p /data/sales
- 163 mkdir -p /data/account
- 164 cd /data
- 165 ls -l
- 166 id
- 167 chown linda.sales sales
- 168 ls -l
- 169 chgrp account account
- 170 ls -l
- 171 chmod 770 *
- 172 ls -l
- 173 history
- 174 mkdir linda
- 175 chown linda linda
- 176 chmod 100 linda
- 177 ls -l
- 178 cd linda
- 179 touch a b c d e
- 180 ls -l
- 181 su - linda
- 182 pwd
- 183 chmod u+w .
- 184 ls -ld .
- 185 pwd
- 186 su - linda
- 187 pwd
- 188 chmod 400 .
- 189 ls -ld .
- 190 su - linda
- 191 history
- 192 pwd
- 193 cd /home/linda
- 194 touch rootfile
- 195 ls -l
- 196 su - linda
- 197 pwd
- 198 touch r2
- 199 su - linda
- 200 ls -l
- 201 cd
- 202 ls -l
- 203 ln /etc/hosts myhosts
- 204 ls -l /etc/hosts myhosts symhosts
- 205 passwd linda
- 206 ls -l /home/linda
- 207 ls -ld /home/linda
- 208 pwd
- 209 cd /home/linda
- 210 echo wortel > rootfile3
- 211 su - linda
- 212 pwd
- 213 cd ..
- 214 ls -l
- 215 userdel bill
- 216 ls -l
- 217 useradd jim -u 1006 -g 1008
- 218 ls -l
- 219 useradd jim -u 1006
- 220 ls -l
- 221 cd
- 222 find / -user "jim" -exec mv {} /root/ \;
- 223 ls
- 224 userdel --help
- 225 userdel -r jim
- 226 cd /home/linda
- 227 vim playme
- 228 chmod +x playme
- 229 su - linda
- 230 vim playme
- 231 chmod u+s playme
- 232 ls -l
- 233 find / -perm /4000 2>/dev/null
- 234 ls -l /usr/bin/passwd
- 235 ls -l /etc/shadow
- 236 cd /data
- 237 ls -l
- 238 su - anna
- 239 chmod g+s account/
- 240 ls -l
- 241 su - anna
- 242 ls
- 243 ls -l
- 244 su anouk
- 245 su - anouk
- 246 chmod +t *
- 247 ls -l
- 248 su - anouk
- 249 su - lisa
- 250 su - linda
- 251 su - anouk
- 252 history
- 253 countdown 13
- 254 ls -l
- 255 cd sales
- 256 ls
- 257 su - linda
- 258 chmod g+s sales
- 259 chmod g+s .
- 260 pwd
- 261 ls -ld .
- 262 su - linda
- 263 cd ..
- 264 getfacl sales
- 265 setfacl -m -R g:account:rx sales
- 266 setfacl -R -m g:account:rx sales
- 267 getfacl sales
- 268 ls -l sales
- 269 man setfacl
- 270 setfacl -x g:account sales
- 271 getfacl sales
- 272 setfacl -R -m g:account:rX sales
- 273 ls -l sales/
- 274 setfacl -x g:account sales
- 275 ls -l sales/
- 276 setfacl -R -x g:account sales
- 277 ls -l sales/
- 278 setfacl -R -m g:account:rX sales
- 279 ls -l sales/
- 280 getfacl sales
- 281 cd sales
- 282 getfacl a
- 283 history
- 284 su - linda
- 285 setfacl -m d:g:account:rx sales
- 286 setfacl -m d:g:account:rx .
- 287 su - linda
- 288 cd
- 289 yum repolist
- 290 cd /etc/yum.repos.d/
- 291 ls
- 292 rm -f *
- 293 yum repolist
- 294 cd /
- 295 df -h
- 296 dd if=/dev/sr0 of=/centos82.iso bs=1M &
- 297 mkdir /repo
- 298 vim /etc/fstab
- 299 ls /repo
- 300 mount -a
- 301 ls /repo
- 302 mount | grep repo
- 303 cd repo
- 304 ls
- 305 cd BaseOS/
- 306 ls
- 307 cd Packages/
- 308 ls
- 309 cd ..
- 310 cd repodata/
- 311 ls
- 312 cd ../../AppStream/
- 313 ls
- 314 cd
- 315 yum repolist
- 316 cd /etc/yum.repos.d/
- 317 vim BaseOS.repo
- 318 yum repolist
- 319 vim AppStream.repo
- 320 yum repolist
- 321 vim classroom.repo
- 322 yum repolist
- 323 cat classroom.repo
- 324 vim classroom.repo
- 325 yum repolist
- 326 cd
- 327 mount
- 328 mount | grep '^/'
- 329 history
- 330 history | grep dd
- 331 countdown 12
- 332 which yum
- 333 ls -l /usr/bin/yum
- 334 yum search nmap
- 335 yum install nmap-ncat
- 336 yum install nmap
- 337 yum search seinfo
- 338 yum provides */seinfo
- 339 yum install setools-console
- 340 yum module list
- 341 yum module provides httpd
- 342 yum module provides python
- 343 yum module provides python36
- 344 yum module provides nginx
- 345 yum module info nginx
- 346 yum module info postgresql
- 347 yum module info nginx
- 348 yum module install nginx:1.16
- 349 ip a
- 350 ip addr show
- 351 ip addr add dev ens33 10.0.0.10/24
- 352 ip a
- 353 ping 10.0.0.10
- 354 ifconfig
- 355 ifconfig -a
- 356 man ifconfig
- 357 ip -s link
- 358 which ifconfig
- 359 rpm -qf $(which ifconfig)
- 360 rpm -ql net-tools | grep bin
- 361 yum remove net-tools
- 362 ip route show
- 363 ping nu.nl
- 364 ip route del default via 192.168.4.2
- 365 ping nu.nl
- 366 ip route show
- 367 ip route add default via 192.168.4.2
- 368 ping nu.nl
- 369 cat /etc/resolv.conf
- 370 which dig
- 371 rpm -qf /usr/bin/dig
- 372 systemctl status NetworkManager
- 373 nmtui
- 374 ip a
- 375 vim /etc/sysconfig/network-scripts/ifcfg-ens33
- 376 nmtui
- 377 ip a
- 378 yum install bash-completion
- 379 nmcli connection show
- 380 nmcli connection show ens33
- 381 nmcli connection modify ens33 ipv4.addresses 192.168.4.190/24
- 382 cat /etc/sysconfig/network-scripts/ifcfg-ens33
- 383 ip a
- 384 nmcli connection up ens33
- 385 ip a
- 386 history
- 387 ip a
- 388 ip route show
- 389 cat /etc/resolv.conf
- 390 ping nu.nl
- 391 countdown 12
- 392 poweroff
- 393 history
- 394 lsblk
- 395 groupadd students
- 396 groupadd profs
- 397 vim /etc/login.defs
- 398 vim /etc/shadow
- 399 change anna
- 400 chage anna
- 401 chage --help
- 402 passwd --help
- 403 usermod -aG students lisa
- 404 usermod -aG students linda
- 405 usermod -aG profs anna
- 406 usermod -aG profs anouk
- 407 id anna
- 408 cd /data
- 409 mkdir students profs
- 410 ls -l
- 411 chown anna:students students
- 412 chown anna:profs profs
- 413 ls -l
- 414 chmod 3770 students/
- 415 chmod 3770 profs/
- 416 setfacl -R -m g:profs:rX students/
- 417 setfacl -m d:g:profs:rx students/
- 418 getfacl students/
- 419 history
- 420 cd
- 421 lsblk
- 422 fdisk /dev/sda
- 423 lsblk
- 424 cat /proc/partitions
- 425 mkfs.xfs /dev/sda3
- 426 mkdir /files
- 427 mount /dev/sda3 /files
- 428 mount
- 429 mount | grep '^/'
- 430 umount /files
- 431 vim /etc/fstab
- 432 reboot
- 433 mount | grep sd3
- 434 mount | grep sda3
- 435 fdisk /dev/sda
- 436 xxd -l 512 /dev/sda
- 437 fdisk /dev/sda
- 438 mkfs.xfs /dev/sda4
- 439 fdisk /dev/sda
- 440 partprobe
- 441 reboot
- 442 fdisk -l
- 443 lsblk
- 444 vim /etc/default/grub
- 445 grub2-mkconfig -o /boot/grub2/grub.cfg
- 446 mkfs.ext4 /dev/sda5
- 447 mkfs.xfs /dev/sda6
- 448 mkdir /ext4
- 449 mkdir /xfs
- 450 vim /etc/fstab
- 451 reboot
- 452 mount | grep sda
- 453 vim /etc/fstab
- 454 fdisk /dev/sda
- 455 reboot
- 456 mount | grep sda
- 457 lsblk
- 458 xfs_admin --help
- 459 xfs_admin -L goat /dev/sda5
- 460 vim /etc/fstab
- 461 reboot
- 462 mount | grep sda
- 463 blkid
- 464 vim /etc/fstab
- 465 fdisk -l /dev/sda
- 466 blkid
- 467 ls
- 468 ./countdown 12
- 469 blkid
- 470 blkid | cut -f 2
- 471 blkid | awk '{ print $2 }'
- 472 blkid | awk '{ print $2 }' | head -2 | tail -1
- 473 blkid | awk '{ print $2 }' | head -2 | tail -1 >> somefile
- 474 fdisk /dev/sda
- 475 mount /dev/sda6 /mnt
- 476 umount /mnt
- 477 mkfs.ext4 --help
- 478 mkfs.ext4 -L cow /dev/sda6
- 479 e2label --help
- 480 vim /etc/fstab
- 481 fdisk /dev/sda
- 482 reboot
- 483 fdisk /dev/sda
- 484 systemctl status tuned
- 485 tuned-adm --help
- 486 tuned-adm list
- 487 tuned-adm profile throughput-performance
- 488 tuned-adm list
- 489 cd /usr/lib/tuned/
- 490 ls
- 491 cd throughput-performance/
- 492 ls
- 493 cat tuned.conf
- 494 cd
- 495 ls -ld /usr/lib/tuned/ /etc/tuned/
- 496 mkdir /etc/tuned/sander
- 497 cp /usr/lib/tuned/throughput-performance/tuned.conf /etc/tuned/sander
- 498 tuned-adm list
- 499 history
- 500 vim /etc/tuned/sander/tuned.conf
- 501 lsblk
- 502 fdisk /dev/sda
- 503 cat /proc/partitions
- 504 lsblk
- 505 pvcreate /dev/sda7
- 506 pvs
- 507 vgcreate --help
- 508 vgcreate -s 8M vgdata /dev/sda7
- 509 vgs
- 510 pvs
- 511 lvcreate -n lvdata -L 1G vgdata
- 512 lvcreate -n lvdata -l 127 vgdata
- 513 lvs
- 514 mkfs.xfs /dev/vgdata/lvdata
- 515 vim /etc/fstab
- 516 mount -a
- 517 mkdir /lvdata
- 518 mount -a
- 519 history
- 520 mount | grep lvdata
- 521 ls -l /dev/vgdata/lvdata /dev/mapper/vgdata-lvdata
- 522 history
- 523 man lvcreate
- 524 vgs
- 525 mount | grep '^/'
- 526 pvs
- 527 xxd /dev/sda7 | less
- 528 ./countdown 12
- 529 df -h
- 530 dd if=/dev/zero of=/lvdata/bigfile
- 531 df -h
- 532 lvs
- 533 vgs
- 534 vgextend --help
- 535 vgextend vgdata /dev/sda8
- 536 vgs
- 537 lvextend -r -L +100M /dev/vgdata/lvdata
- 538 df -h
- 539 lvextend -l +50%FREE /dev/vgdata/lvdata
- 540 lvs
- 541 df -h
- 542 xfs_growfs /dev/vgdata/lvdata
- 543 df -h
- 544 history
- 545 free -m
- 546 fdisk /dev/sda
- 547 free -m
- 548 mkswap --help
- 549 mkswap /dev/sda9
- 550 free -m
- 551 vim /etc/fstab
- 552 swapon -a
- 553 free -m
- 554 grep ctive /proc/meminfo
- 555 top
- 556 yum install httpd -y
- 557 systemctl enable --now httpd
- 558 ps Zaux | grep http
- 559 ss -Ztupen
- 560 ss -Ztupenl
- 561 cd /var/www/
- 562 ls -lZ
- 563 ls -ldZ /tmp
- 564 ps Zaux | grep httpd | grep root
- 565 cd
- 566 ./countdown 12
- 567 getenforce
- 568 setenforce
- 569 cat /etc/sysconfig/selinux
- 570 vim /etc/httpd/conf/httpd.conf
- 571 mkdir /web
- 572 vim /web/index.html
- 573 systemctl restart httpd
- 574 curl http://localhost
- 575 setenforce permissive
- 576 curl http://localhost
- 577 vim /etc/httpd/conf/httpd.conf
- 578 systemctl restart httpd
- 579 curl http://localhost
- 580 setenforce 1
- 581 curl http://localhost
- 582 grep AVC /var/log/audit/audit.log
- 583 ls -Zd /var/www/html/
- 584 man semanage
- 585 man semanage-fcontext
- 586 semanage fcontext -a -t httpd_sys_content_t "/web(/.*)?"
- 587 ls -lZd /web
- 588 restorecon -Rv /web
- 589 curl http://localhost
- 590 restorecon --help
- 591 man restorecon
- 592 journalctl | grep sealert
- 593 sealert -l 9c70cfd0-5ed6-4b45-be83-666c83f7406e | less
- 594 getsebool -a
- 595 getsebool -a | wc
- 596 getsebool -a | grep ftp
- 597 setsebool -P ftpd_anon_write on
- 598 getsebool -a | grep ftp
- 599 yum provides systemd-journald
- 600 yum provides */systemd-journald
- 601 systemctl status firewalld
- 602 firewall-cmd --list-all
- 603 firewall-cmd --get-services
- 604 firewall-cmd --add-service http
- 605 firewall-cmd --list-all
- 606 firewall-cmd --reload
- 607 firewall-cmd --list-all
- 608 firewall-cmd --add-service http --permanent
- 609 firewall-cmd --list-all
- 610 firewall-cmd --reload
- 611 firewall-cmd --list-all
- 612 history
Add Comment
Please, Sign In to add comment