Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### root commands
- 2 vim countdown.sh
- 3 chmod +x countdown.sh
- 4 ./countdown.sh 19
- 5 tar zcvf /root/archive.tgz /etc
- 6 ls -l
- 7 tar tvf archive.tgz
- 8 tar zcvf /root/archive.tgz -C /etc
- 9 tar zcvf /root/archive.tgz -C /etc .
- 10 tar tvf archive.tgz
- 11 cd /etc
- 12 tar -cvzf /root/archive.tgz .
- 13 history
- 14 cut -d : -f 1 /etc/passwd
- 15 cat /etc/passwd
- 16 cut -d : -f 1 /etc/passwd | sort
- 17 cut -d : -f 1 /etc/passwd | sort | grep -v '^$'
- 18 cut -d : -f 1 /etc/passwd | sort | grep -v '^$' >/var/tmp/users
- 19 cat /var/tmp/users
- 20 man cut
- 21 man sort
- 22 sort -b /etc/passwd
- 23 sort -b /etc/passwd | cut -d : -f 1
- 24 cd
- 25 useradd bob
- 26 mkdir userfiles
- 27 find / -user "bob" -type f
- 28 find / -user "bob" -type f -exec cp {} /root/userfiles \; 2>/dev/null
- 29 ls -al /root/userfiles/
- 30 history
- 31 ls -l $(which yum) $(which dnf)
- 32 DNF
- 33 dnf install nmap
- 34 df -h
- 35 dd if=/dev/sr0 of=/rhel9.iso bs=1M
- 36 mkdir /repo
- 37 vim /etc/fstab
- 38 mount -a
- 39 ls /repo
- 40 cd /repo
- 41 ls BaseOS/
- 42 ls BaseOS/Packages/
- 43 cd
- 44 history
- 45 lsblk
- 46 dnf config-manager --add-repo="file:///repo/AppStream"
- 47 dnf config-manager --add-repo="file:///repo/BaseOS"
- 48 dnf repolist
- 49 dnf search nmap
- 50 dnf install nmap
- 51 cd /etc/yum.repos.d/
- 52 ls
- 53 vim repo_BaseOS.repo
- 54 vim repo_AppStream.repo
- 55 history
- 56 dnf install nmap
- 57 history
- 58 tail -1 /etc/fstab
- 59 cd /repo/AppStream/Packages/
- 60 ls
- 61 cd
- 62 dnf install -y git
- 63 git clone https://github.com/sandervanvugt/rhcsa9
- 64 cd rhcsa9/
- 65 ls
- 66 cd labs/
- 67 ls
- 68 ./live-lab1-grade.sh
- 69 vim live-lab1-grade.sh
- 70 history
- 71 dnf groups list
- 72 dnf groups install "Development Tools"
- 73 history
- 74 cd
- 75 ./countdown.sh 13
- 76 history
- 77 lsblk
- 78 exit
- 79 ./countdown.sh 12
- 80 ./countdown.sh 1
- 81 ./countdown.sh 13
- 82 ./countdown.sh 15
- 83 visudo
- 84 tail -1 /etc/passwd
- 85 id bob
- 86 su - bob
- 87 passwd bob
- 88 su - bob
- 89 journalctl
- 90 usermod -aG wheel bob
- 91 su - bob
- 92 visudo
- 93 useradd linda
- 94 echo password | passwd --stdin linda
- 95 su - linda
- 96 visudo
- 97 su - linda
- 98 history
- 99 #find / -name ".bash_history" -type f -exec rm -f {} \;
- 100 dnf repolist
- 101 ps aux | less
- 102 less /etc/passwd
- 103 usermod --help
- 104 vim /etc/login.defs
- 105 cd /etc/skel
- 106 ls
- 107 ls -a
- 108 touch hello
- 109 ls -a
- 110 useradd sander
- 111 ls -al /home/sander
- 112 cd
- 113 less /etc/passwd
- 114 id bob
- 115 grep bob /etc/passwd
- 116 grep bob /etc/group
- 117 lid wheel
- 118 lid -g wheel
- 119 useradd -g wheel baduser
- 120 id baduser
- 121 grep wheel /etc/group
- 122 grep baduser /etc/passwd
- 123 lid -g wheel
- 124 chage bob
- 125 history
- 126 cd rhcsa9/labs/
- 127 ls
- 128 vim live-lab2-grade.sh
- 129 ./live-lab2-grade.sh
- 130 vim /etc/login.defs
- 131 touch /etc/skel/newfile
- 132 groupadd profs
- 133 groupadd students
- 134 useradd -G students linda
- 135 useradd -G students lisa
- 136 usermod -aG students linda
- 137 useradd -G profs anna
- 138 useradd -G profs anouk
- 139 history | grep git
- 140 ./live-lab2-grade.sh
- 141 ls -l
- 142 cd /home/linda
- 143 echo linda > lindafile
- 144 ls -l lindafile
- 145 chmod u-rw
- 146 chmod u-rw linda
- 147 chmod u-rw lindafile
- 148 chown linda lindafile
- 149 ls -l lindafile
- 150 su - linda
- 151 cd
- 152 cd /etc/skel
- 153 mkdir tryme
- 154 chmod 2770 tryme
- 155 useradd pablo
- 156 ls -l pabl
- 157 ls -l /home/pablo
- 158 mkdir -p /data/profs /data/students
- 159 cd /data
- 160 ls -l
- 161 id
- 162 chown :profs profs
- 163 ls -l
- 164 chgrp students students
- 165 ls -l
- 166 chmod 770 students
- 167 ls -l
- 168 chmod g+w,o-rx profs
- 169 ls -l
- 170 su - anna
- 171 chmod g+s /data/profs
- 172 ls -ld /data/profs
- 173 su - anna
- 174 su - anouk
- 175 chmod +t /data/profs
- 176 su - anouk
- 177 chmod g-x,o+x /data/profs
- 178 ls -ld /data/profs
- 179 chmod g+x,o-x /data/profs
- 180 cd /profs
- 181 cd profs
- 182 mkdir one two three
- 183 for i in one two three; do touch $i/four; done
- 184 for i in one two three; do touch $i/five; done
- 185 tree
- 186 ls -lR
- 187 chmod -R g+s .
- 188 ls -lR
- 189 chmod -R g-s .
- 190 find . -type d
- 191 find . -type d -exec chmod g+s {} \;
- 192 ls -lR
- 193 history
- 194 who; find . -exec ls -l {} \;
- 195 umask
- 196 touch '-'
- 197 ls -l
- 198 echo hello > \-
- 199 ls
- 200 rm \-
- 201 rm -- \-
- 202 cd
- 203 history
- 204 poweroff
- 205 echo h > /proc/sysrq-trigger
- 206 dmesg
- 207 ls -l /data
- 208 rm -rf /data
- 209 mkdir -p /data/profs /data/students
- 210 cd /data
- 211 chgrp students students
- 212 chgrp profs profs
- 213 ls -l
- 214 chmod 770 *
- 215 ls -l
- 216 umask
- 217 cd /etc/
- 218 vim bashrc
- 219 cd /etc/profile.d/
- 220 ls
- 221 echo $UID
- 222 exit
- 223 vim umask.sh
- 224 grep 1005 /etc/passwd
- 225 grep 1004 /etc/passwd
- 226 cat /etc/passwd
- 227 su - lisa
- 228 lsblk
- 229 cat /proc/partitions
- 230 df -h
- 231 lsblk
- 232 poweroff
- 233 lsblk
- 234 blkid
- 235 cat /etc/fstab
- 236 touch ff
- 237 mount -o remount,rw /
- 238 touch ff
- 239 blkid | awk '/sda5/ { print $2 }'
- 240 blkid | awk '/sda5/ { print $2 }' >> /etc/fstab
- 241 vim /etc/fstab
- 242 mount -a
- 243 lsblk
- 244 reboot
- 245 #systemd.unit=emergency.target
- 246 history
- 247 ls /dev/disk/
- 248 ls /dev/disk/by-uuid/
- 249 ls /dev/disk/by-uuid/ -l
- 250 free -m
- 251 fdisk /dev/sda
- 252 mkswap -L myswap /dev/sda7
- 253 free -m
- 254 vim /etc/fstab
- 255 swapon -a
- 256 free -m
- 257 history
- 258 cd rhcsa9/
- 259 git pull
- 260 cd labs/
- 261 ls
- 262 ls -l
- 263 systemctl list-units
- 264 systemctl status vmtoolsd.service
- 265 systemctl status sshd.service
- 266 cd
- 267 dnf install -yn httpd
- 268 dnf install -y httpd
- 269 systemctl status httpd.service
- 270 systemctl enable --now httpd
- 271 systemctl status httpd.service
- 272 systemctl -t help
- 273 systemctl list-units -t mounts
- 274 systemctl list-units -t mount
- 275 systemctl cat ext4.mount
- 276 systemctl cat -.mount
- 277 systemctl cat -- -.mount
- 278 systemctl status sshd
- 279 kill -9 1080
- 280 systemctl status sshd
- 281 systemctl cat sshd.service
- 282 systemctl edit httpd.service
- 283 export EDITOR=/usr/bin/vim
- 284 systemctl cat httpd.service
- 285 systemctl cat sshd.service
- 286 systemctl cat httpd.service
- 287 systemctl show httpd.service
- 288 man systemd.directives
- 289 man systemd.resource-control
- 290 systemctl daemon-reload
- 291 systemctl disable --now httpd
- 292 systemctl mask httpd
- 293 systemctl start httpd.service
- 294 systemctl unmask httpd.service
- 295 systemctl start httpd.service
- 296 systemctl stop httpd.service
- 297 systemctl status httpd
- 298 journalctl
- 299 journalctl -x
- 300 journalctl -xb
- 301 journalctl -p err
- 302 grep 'Storage=' /etc/systemd/journald.conf
- 303 mkdir /var/log/journal
- 304 ls -l /var/log/journal/
- 305 systemctl daemon-reload
- 306 ls -l /var/log/journal/
- 307 systemctl restart systemd-journal-flush
- 308 ls -l /var/log/journal/
- 309 history
- 310 cd rhcsa9/
- 311 ls
- 312 cd
- 313 dd if=/dev/zero of=/dev/null &
- 314 top
- 315 echo 0 > /sys/bus/cpu/devices/cpu1/online
- 316 lscpu | less
- 317 top
- 318 renice --help | less
- 319 renice -n 5 -p 9944
- 320 top
- 321 nice --help
- 322 nice -n -5 dd if=/dev/zero of=/dev/null &
- 323 top
- 324 killall dd
- 325 history
- 326 echo 1 > /sys/bus/cpu/devices/cpu1/online
- 327 tuned-adm list
- 328 tuned-adm active
- 329 tuned-adm recommend
- 330 tuned-adm profile balanced
- 331 tuned-adm active
- 332 history
- 333 systemctl status tuned
- 334 echo vm.swappiness = 33 > /etc/sysctl.d/swappiness.conf
- 335 sysctl -a
- 336 sysctl -a | wc -l
- 337 sysctl -a | grep swappi
- 338 sysctl -p /etc/sysctl.d/swappiness.conf
- 339 sysctl -a | grep swappi
- 340 ls -l /usr/lib/tuned/
- 341 less /usr/lib/tuned/desktop/tuned.conf
- 342 mkdir /etc/tuned/myprofile
- 343 vim /etc/tuned/myprofile/tuned.conf
- 344 tuned-adm list
- 345 tuned-adm profile myprofile
- 346 tuned-adm active
- 347 sysctl -a | grep swappi
- 348 vim /etc/tuned/tuned-main.conf
- 349 ip a
- 350 systemctl status NetworkManager
- 351 nmtui
- 352 ip a
- 353 exit
- 354 ./countdown.sh 16
- 355 ./countdown.sh 14
- 356 cd /etc/NetworkManager/system-connections/
- 357 ls
- 358 cat ens160.nmconnection
- 359 cd
- 360 reboot
- 361 exit
- 362 history
- 363 cd rhcsa9/
- 364 git pull
- 365 cd labs/
- 366 lsblk
- 367 fdisk -l /dev/sda
- 368 cd
- 369 fdisk /dev/sda
- 370 pvcreate /dev/sda8
- 371 xxd /dev/sda8 | less
- 372 pvs
- 373 vgcreate vgdata /dev/sda8
- 374 pvs
- 375 vgs
- 376 lvcreate -n lvdata -L 2G vgdata
- 377 lvcreate -n lvdata -l 100%FREE vgdata
- 378 lvs
- 379 lvdisplay lvdata
- 380 lvdisplay /dev/vgdata/lvdata
- 381 echo $(( 511 * 4 ))
- 382 mkfs.ext4 /dev/vgdata/lvdata
- 383 vim /etc/fstab
- 384 mount -a
- 385 mkdir /lvdata
- 386 mount -a
- 387 mount
- 388 ls -l /dev/mapper/vgdata-lvdata /dev/vgdata/lvdata
- 389 tail -1 /etc/fstab
- 390 history
- 391 tail -1 /etc/fstab
- 392 vgdisplay vgdata
- 393 vgcreate --help | less
- 394 lvs
- 395 df -h
- 396 vgs
- 397 lsblk
- 398 fdisk /dev/sda
- 399 vgextend vgdata /dev/sda9
- 400 vgs
- 401 lvextend --help | less
- 402 lvresize -r -l +50%FREE /dev/vgdata/lvdata
- 403 df -h
- 404 history
- 405 lvcreate --help | less
- 406 man lvresize
- 407 cd rhcsa9/labs/
- 408 ls
- 409 cd ..
- 410 git pull
- 411 cd labs/
- 412 ./live-lab9-grade.sh
- 413 history
- 414 fdisk /dev/sda
- 415 vgs
- 416 vgextend rhel /dev/sda10
- 417 vgs
- 418 lvresize -r -l +100%FREE /dev/rhel/root
- 419 ./live-lab9-grade.sh
- 420 vim live-lab9-grade.sh
- 421 ./live-lab9-grade.sh
- 422 pvs
- 423 getenforce
- 424 vim /etc/httpd/conf/httpd.conf
- 425 echo hello world > /var/www/html/index.html
- 426 systemctl start httpd
- 427 curl localhost
- 428 vim /etc/httpd/conf/httpd.conf
- 429 echo hello from the web > /web/index.html
- 430 mkdir /web
- 431 echo hello from the web > /web/index.html
- 432 systemctl restart httpd
- 433 curl localhost
- 434 setenforce permissive
- 435 curl localhost
- 436 vim /etc/httpd/conf/httpd.conf
- 437 systemctl restart httpd
- 438 curl localhost
- 439 setenforce enforcing
- 440 curl localhost
- 441 systemctl edit httpd.service
- 442 systemctl restart httpd.service
- 443 vim /etc/default/grub
- 444 grub2-mkconfig -o /boot/grub2/grub.cfg
- 445 vim /etc/sysconfig/selinux
- 446 history
- 447 ps Zaux | grep http
- 448 ls -lZ /var/www
- 449 ls -ldZ /web
- 450 ls -ldZ /var/tmp
- 451 ls -lZ /var/www/html/index.html
- 452 grep AVC /var/log/audit/audit.log
- 453 man semanage-fcontext
- 454 semanage fcontext -a -t httpd_sys_content_t "/web(/.*)?"
- 455 ls -Zd /web
- 456 restorecon -Rv /web
- 457 ls -lZ /web
- 458 getenforce
- 459 curl localhost
- 460 history
- 461 man semanage-port
- 462 getsebool -a
- 463 getsebool -a | wc -l
- 464 getsebool -a | grep ftp
- 465 setsebool -P ftpd_anon_write on
- 466 getsebool -a | grep ftp
- 467 dnf provides */sealert
- 468 journalctl | grep sealert
- 469 sealert -l db32d88c-4721-4184-99d7-b02785fdae09 | less
- 470 vim /etc/httpd/conf/httpd.conf
- 471 systemctl restart httpd
- 472 systemctl status httpd
- 473 journalctl -xeu httpd.service
- 474 setenforce permissive
- 475 systemctl restart httpd
- 476 journalctl | grep sealert
- 477 sealert -l d3841914-af71-46b4-8714-f13ff7bf941d | less
- 478 semanage port -a -t http_port_t -p tcp 82
- 479 setenforce enforcing
- 480 systemctl restart httpd
- 481 man -k _selinux
- 482 dnf install selinux-policy-doc
- 483 man -k _selinux
- 484 man -k _selinux | grep httpd
- 485 man httpd_selinux
- 486 history
- 487 ls -lZ /etc/hosts
- 488 mv /etc/hosts /web/
- 489 ls -lZ /web/hosts
- 490 curl localhost/hosts
- 491 curl localhost:82/hosts
- 492 getenforce
- 493 restorecon -v /web/hosts
- 494 systemctl status firewalld
- 495 firewall-cmd --list-all
- 496 firewall-cmd --get-services
- 497 firewall-cmd --add-service http
- 498 firewall-cmd --list-all
- 499 firewall-cmd --add-service http --permanent
- 500 vim /usr/lib/firewalld/services/http.xml
- 501 cp /usr/lib/firewalld/services/http.xml /etc/firewalld/services/
- 502 vim /etc/firewalld/services/http.xml
- 503 firewall-cmd --help | grep add-port
- 504 firewall-cmd --add-port=84/tcp
- 505 firewall-cmd --list-all
- 506 firewall-cmd --add-port=84/tcp --permanent
- 507 firewall-cmd --add-port=85/tcp --permanent
- 508 firewall-cmd --list-all
- 509 firewall-cmd --reload
- 510 firewall-cmd --list-all
- 511 history
- 512 cp /web/hosts /etc/
- 513 ls -Z /etc/hosts
- 514 history -w
- 515 ./countdown.sh 16
- 516 ./countdown.sh 1
- 517 ./countdown.sh 12
- 518 ./countdown.sh 5
- 519 ./countdown.sh 13
- 520 history
- 521 cd rhcsa9/
- 522 git pull
- 523 cd labs/
- 524 lsblk
- 525 fdisk -l /dev/sda
- 526 cd
- 527 fdisk /dev/sda
- 528 pvcreate /dev/sda8
- 529 xxd /dev/sda8 | less
- 530 pvs
- 531 vgcreate vgdata /dev/sda8
- 532 pvs
- 533 vgs
- 534 lvcreate -n lvdata -L 2G vgdata
- 535 lvcreate -n lvdata -l 100%FREE vgdata
- 536 lvs
- 537 lvdisplay lvdata
- 538 lvdisplay /dev/vgdata/lvdata
- 539 echo $(( 511 * 4 ))
- 540 mkfs.ext4 /dev/vgdata/lvdata
- 541 vim /etc/fstab
- 542 mount -a
- 543 mkdir /lvdata
- 544 mount -a
- 545 mount
- 546 ls -l /dev/mapper/vgdata-lvdata /dev/vgdata/lvdata
- 547 tail -1 /etc/fstab
- 548 history
- 549 tail -1 /etc/fstab
- 550 vgdisplay vgdata
- 551 vgcreate --help | less
- 552 lvs
- 553 df -h
- 554 vgs
- 555 lsblk
- 556 fdisk /dev/sda
- 557 vgextend vgdata /dev/sda9
- 558 vgs
- 559 lvextend --help | less
- 560 lvresize -r -l +50%FREE /dev/vgdata/lvdata
- 561 df -h
- 562 history
- 563 lvcreate --help | less
- 564 man lvresize
- 565 cd rhcsa9/labs/
- 566 ls
- 567 cd ..
- 568 git pull
- 569 cd labs/
- 570 ./live-lab9-grade.sh
- 571 history
- 572 fdisk /dev/sda
- 573 vgs
- 574 vgextend rhel /dev/sda10
- 575 vgs
- 576 lvresize -r -l +100%FREE /dev/rhel/root
- 577 ./live-lab9-grade.sh
- 578 vim live-lab9-grade.sh
- 579 ./live-lab9-grade.sh
- 580 pvs
- 581 getenforce
- 582 vim /etc/httpd/conf/httpd.conf
- 583 echo hello world > /var/www/html/index.html
- 584 systemctl start httpd
- 585 curl localhost
- 586 vim /etc/httpd/conf/httpd.conf
- 587 echo hello from the web > /web/index.html
- 588 mkdir /web
- 589 echo hello from the web > /web/index.html
- 590 systemctl restart httpd
- 591 curl localhost
- 592 setenforce permissive
- 593 curl localhost
- 594 vim /etc/httpd/conf/httpd.conf
- 595 systemctl restart httpd
- 596 curl localhost
- 597 setenforce enforcing
- 598 curl localhost
- 599 systemctl edit httpd.service
- 600 systemctl restart httpd.service
- 601 vim /etc/default/grub
- 602 grub2-mkconfig -o /boot/grub2/grub.cfg
- 603 vim /etc/sysconfig/selinux
- 604 history
- 605 ps Zaux | grep http
- 606 ls -lZ /var/www
- 607 ls -ldZ /web
- 608 ls -ldZ /var/tmp
- 609 ls -lZ /var/www/html/index.html
- 610 grep AVC /var/log/audit/audit.log
- 611 man semanage-fcontext
- 612 semanage fcontext -a -t httpd_sys_content_t "/web(/.*)?"
- 613 ls -Zd /web
- 614 restorecon -Rv /web
- 615 ls -lZ /web
- 616 getenforce
- 617 curl localhost
- 618 history
- 619 man semanage-port
- 620 getsebool -a
- 621 getsebool -a | wc -l
- 622 getsebool -a | grep ftp
- 623 setsebool -P ftpd_anon_write on
- 624 getsebool -a | grep ftp
- 625 dnf provides */sealert
- 626 journalctl | grep sealert
- 627 sealert -l db32d88c-4721-4184-99d7-b02785fdae09 | less
- 628 vim /etc/httpd/conf/httpd.conf
- 629 systemctl restart httpd
- 630 systemctl status httpd
- 631 journalctl -xeu httpd.service
- 632 setenforce permissive
- 633 systemctl restart httpd
- 634 journalctl | grep sealert
- 635 sealert -l d3841914-af71-46b4-8714-f13ff7bf941d | less
- 636 semanage port -a -t http_port_t -p tcp 82
- 637 setenforce enforcing
- 638 systemctl restart httpd
- 639 man -k _selinux
- 640 dnf install selinux-policy-doc
- 641 man -k _selinux
- 642 man -k _selinux | grep httpd
- 643 man httpd_selinux
- 644 history
- 645 ls -lZ /etc/hosts
- 646 mv /etc/hosts /web/
- 647 ls -lZ /web/hosts
- 648 curl localhost/hosts
- 649 curl localhost:82/hosts
- 650 getenforce
- 651 restorecon -v /web/hosts
- 652 systemctl status firewalld
- 653 firewall-cmd --list-all
- 654 firewall-cmd --get-services
- 655 firewall-cmd --add-service http
- 656 firewall-cmd --list-all
- 657 firewall-cmd --add-service http --permanent
- 658 vim /usr/lib/firewalld/services/http.xml
- 659 cp /usr/lib/firewalld/services/http.xml /etc/firewalld/services/
- 660 vim /etc/firewalld/services/http.xml
- 661 firewall-cmd --help | grep add-port
- 662 firewall-cmd --add-port=84/tcp
- 663 firewall-cmd --list-all
- 664 firewall-cmd --add-port=84/tcp --permanent
- 665 firewall-cmd --add-port=85/tcp --permanent
- 666 firewall-cmd --list-all
- 667 firewall-cmd --reload
- 668 firewall-cmd --list-all
- 669 history
- 670 cp /web/hosts /etc/
- 671 ls -Z /etc/hosts
- 672 history -w
- 673 reboot
- 674 ip a
- 675 vim /etc/hosts
- 676 systemctl restart httpd
- 677 showmount -e nfsserver
- 678 dnf install -y nfs-utils
- 679 showmount -e nfsserver
- 680 mount nfsserver:/nfsdata /mnt
- 681 mount
- 682 umount /mnt
- 683 dnf install -y autofs
- 684 vim /etc/auto.master
- 685 vim /etc/auto.misc
- 686 vim /etc/auto.master
- 687 vim /etc/auto.data
- 688 systemctl restart autofs
- 689 mount
- 690 cd /data
- 691 ls -a
- 692 cd files
- 693 mount
- 694 vim /etc/auto.master
- 695 vim /etc/auto.ldap
- 696 systemctl restart autofs
- 697 cd /home/ldap/
- 698 ls
- 699 cd ldapuser1
- 700 pwd
- 701 cd ..
- 702 mount
- 703 cd ldapuser2
- 704 mount
- 705 cd ..
- 706 cd sander
- 707 cd
- 708 history
- 709 date
- 710 date -s 07:49
- 711 date -s 19:50
- 712 date
- 713 hwclock
- 714 hwclock --hctosys
- 715 date
- 716 timedatectl
- 717 timedatectl --help
- 718 timedatectl list-timezones
- 719 timedatectl set-timezone Africa/Harare
- 720 timedatectl status
- 721 vim /etc/chrony.conf
- 722 systemctl restart chronyd
- 723 chronyc sources
- 724 history
- 725 cat /etc/auto.ldap
- 726 tuned-adm list
- 727 vim /etc/containers/registries.conf
- 728 podman search nginx
- 729 podman pull registry.access.redhat.com/ubi9/nginx-122
- 730 podman login --get-login
- 731 podman login registry.redhat.io --get-login
- 732 exit
- 733 password
- 734 ./countdown.sh 45
- 735 vim /etc/httpd/conf/httpd.conf
- 736 man semanage-port
- 737 semanage port -a -t http_port_t -p tcp 82
- 738 useradd -u 1100 -s /sbin/nologin lori
- 739 grep lori /etc/passwd
- 740 cd /etc
- 741 grep -R 'strator' *
- 742 grep -Rl 'strator' *
- 743 grep -Rl 'strator' * > /tmp/stratorfiles.txt
- 744 ln -s /etc/hosts /tmp/hosts
- 745 find /etc -exec grep -l 'strator' {} \; > /tmp/findfiles.txt
- 746 diff /tmp/stratorfiles.txt /tmp/findfiles.txt
- 747 cd
- 748 mkdir -p /data/sales
- 749 chmod 2770 /data/sales
- 750 chgrp sales /data/sales
- 751 groupadd sales
- 752 chgrp sales /data/sales
- 753 vgs
- 754 mkdir /lvlab
- 755 lvcreate -n lvlab -l 50 vgdata
- 756 lvs
- 757 mkfs.xfs /dev/vgdata/lvlab
- 758 vim /etc/fstab
- 759 systemctl daemon-reload
- 760 mount -a
- 761 mount
- 762 cd /run/systemd/generator/
- 763 ls
- 764 cat lvlab.mount
- 765 cp lvlab.mount /etc/systemd/system/
- 766 vim /etc/systemd/system/lvlab.mount
- 767 vim /etc/fstab
- 768 systemctl daemon-reload
- 769 umount /lvlab
- 770 systemctl enable --now lvlab.mount
- 771 systemctl status lvlab.mount
- 772 cd
- 773 tuned-adm profiles
- 774 tuned-adm profile
- 775 tuned-adm recommend
- 776 tuned-adm profile virtual-guest
- 777 tuned-adm profile
- 778 cd rhcsa9/
- 779 git pull
- 780 cd labs/
- 781 ./live-mini-exam-grade.sh
- 782 cd ..
- 783 cat resources.txt
- 784 exit
- 785 ps faux | less
- 786 cd rhcsa9/
- 787 ls
- 788 git pull
- 789 cd labs/
- 790 vim live-lab15-grade.sh
- 791 ./live-lab15-grade.sh
- 792 history | grep git
- 793 cd ..
- 794 ls
- 795 vim mini-exam-30min.txt
- 796 cd labs/
- 797 ls
- 798 cd ..
- 799 vim mini-exam-30min.txt
- 800 cat mini-exam-30min.txt
- 801 exit
- 802 history
- ####student commands
- 1 sudo -i
- 2 sudo -i
- 3 id
- 4 ls /root
- 5 sudo ls /root
- 6 sudo -i
- 7 touch mynewfile
- 8 ls
- 9 sudo -i
- 10 echo $UID
- 11 sudo -i
- 12 su -
- 13 sudo -i
- 14 exit
- 15 podman ps
- 16 podman stop sleepy
- 17 podman run registry.redhat.io/ubi7/nginx-120
- 18 podman login registry.redhat.io
- 19 podman search nginx
- 20 podman pull registry.access.redhat.com/ubi9/nginx-122
- 21 podman search nginx
- 22 podman login --get-login registry.redhat.io
- 23 ls .config
- 24 mkdir .config/containers
- 25 sudo dnf install container-tools
- 26 git clone https://github.com/sandervanvugt/rhcsa9
- 27 cd rhcsa9/
- 28 ls
- 29 podman info
- 30 podman images
- 31 podman login registry.access.redhat.com
- 32 ls ~/.config/containers/
- 33 ls a ~/.config/containers/
- 34 ls -a ~/.config/containers/
- 35 cd /run/user/1000/
- 36 ls
- 37 cd containers/
- 38 ls
- 39 pwd
- 40 cd
- 41 cd rhcsa9/
- 42 vim Containerfile
- 43 which echo
- 44 podman build -t echoworld .
- 45 podman images
- 46 vim Containerfile
- 47 podman build -t echoworld .
- 48 podman images
- 49 vim Containerfile
- 50 podman build -t echopine .
- 51 podman images
- 52 podman run echopine
- 53 vim Containerfile
- 54 podman build -t echopine .
- 55 podman run echopine
- 56 ls
- 57 podman ps
- 58 podman ps -a
- 59 podman inspect bfa
- 60 podman inspect bfa | less
- 61 podman images
- 62 podman run echopine whoami
- 63 podman run ubi8
- 64 podman ps
- 65 podman ps -a
- 66 podman run -it ubi8
- 67 podman ps
- 68 podman attach quirky_sanderson
- 69 sudo -i cp /root/count* /usr/local/bin/
- 70 sudo -i
- 71 exit
- 72 exit
- 73 history
- ####linda commands 1 sudo useradd bill
- 2 sudo userdel bill
- 3 sudo passwd bill
- 4 sudo passwd root
- 5 exit
- 6 sudo passwd root
- 7 sudo passwd bill
- 8 exit
- 9 cat lindafile
- 10 chmod u+r lindafile
- 11 ls -l
- 12 cat lindafile
- 13 exit
- 14 mkdir -p .config/systemd/user
- 15 cd .config/systemd/user
- 16 podman run -d --name mynginx -p 8081:80 nginx
- 17 podman ps
- 18 podman generate systemd --name mynginx --files --new
- 19 vim container-mynginx.service
- 20 systemctl --user daemon-reload
- 21 systemctl --user enable container-mynginx.service
- 22 systemctl --user status container-mynginx.service
- 23 exit
- 24 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement