Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ot@rhcsa log]# history
- 1 id student
- 2 less /etc/passwd
- 3 id linda
- 4 su - linda
- 5 id student
- 6 ls
- 7 bash countdown 12
- 8 less /etc/passwd
- 9 awk -F : '$3 < 1000 { print $1 }' /etc/passwd
- 10 less /etc/passwd
- 11 less /etc/login.defs
- 12 history | grep user
- 13 history
- 14 useradd lisa
- 15 vim /etc/login.defs
- 16 vim /etc/default/useradd
- 17 ls -a /etc/skel/
- 18 touch /etc/skel/newfile
- 19 useradd bob
- 20 ls -la /home/bash
- 21 ls -la /home/bob
- 22 groupadd sales
- 23 useradd --help | less
- 24 useradd -G sales linda
- 25 usermod -aG sales linda
- 26 id linda
- 27 usermod -G wheel linda
- 28 id linda
- 29 usermod -aG sales linda
- 30 passwd --help
- 31 passwd linda
- 32 chage linda
- 33 grep linda /etc/shadow
- 34 vim /etc/default/useradd
- 35 useradd --help
- 36 useradd --help | less
- 37 id linda
- 38 grep linda /etc/passwd
- 39 grep linda /etc/groups
- 40 grep linda /etc/group
- 41 id linda
- 42 ls
- 43 countdown 12
- 44 echo $PATH
- 45 ./countdown 12
- 46 ls -l
- 47 bash countdown 12
- 48 chmod +x countdown
- 49 ./countdown 1
- 50 ls -l
- 51 ls -ld .
- 52 id linda
- 53 id lisa
- 54 usermod -aG sales lisa
- 55 id lisa
- 56 groupadd account
- 57 useradd -G account anna
- 58 useradd -G account anouk
- 59 id anna
- 60 id anouk
- 61 mkdir /data/account
- 62 mkdir -p /data/account
- 63 mkdir -p /data/sales
- 64 cd /data
- 65 ls -l
- 66 chgrp sales sales
- 67 ls -l
- 68 chmod 770 sales
- 69 ls -l
- 70 chgrp account account/
- 71 chmod 770 account/
- 72 ls -l
- 73 su - anna
- 74 history
- 75 mkdir blah
- 76 chgrp sales blah
- 77 ls -l
- 78 chown linda:sales blah
- 79 ls -l
- 80 chown :account blah
- 81 ls -l
- 82 chmod 660 blah
- 83 id anna
- 84 su - anna
- 85 cd /home/linda
- 86 vim playme
- 87 rm --help
- 88 vim playme\
- 89 vim playme
- 90 chmod +x playme
- 91 ls -l
- 92 su - linda
- 93 chmod u+s playme
- 94 ls -l
- 95 find / -perm /4000
- 96 ls -l /usr/bin/passwd /etc/shadow
- 97 cd
- 98 echo $PATH
- 99 mv countdown /usr/bin
- 100 countdown 12
- 101 cd /data
- 102 ls -l
- 103 grep sales /etc/group
- 104 su - linda
- 105 chmod g+s sales
- 106 ls -l
- 107 su - linda
- 108 su - lisa
- 109 chmod +t sales
- 110 su - lisa
- 111 ls -l sales
- 112 ls -ld sales
- 113 chown lisa sales
- 114 ls -ld sales
- 115 su - lisa
- 116 ls -l
- 117 setfacl -m -R g:account:rx sales
- 118 setfacl -R -m g:account:rx sales
- 119 ls -l
- 120 getfacl sales
- 121 ls -l sales/
- 122 rm -rf sales
- 123 mkdir sales
- 124 su - linda
- 125 chown :sales sales
- 126 chmod 3770 sales
- 127 su - linda
- 128 setfacl -R -m g:account:rx sales
- 129 ls -l sales/
- 130 man setfacl
- 131 setfacl -R -x account sales
- 132 man setfacl
- 133 setfacl -R -x g:account sales
- 134 getfacl sales
- 135 setfacl -R -m g:account:rX sales
- 136 ls -l sales/
- 137 su - linda
- 138 ls -l sales/
- 139 setfacl -m d:g:account:rx sales
- 140 getfacl sales
- 141 su - linda
- 142 cd /home/linda
- 143 touch rootsfile
- 144 su - linda
- 145 ls
- 146 chattr +i myfile
- 147 rm -f myfile
- 148 ls -l
- 149 chattr -i myfile
- 150 rm -f myfile
- 151 countdown 12
- 152 poweroff
- 153 history
- 154 lsblk
- 155 gdisk /dev/sda
- 156 fdisk /dev/sda
- 157 lsblk
- 158 cat /proc/partitions
- 159 lsblk
- 160 mkfs.xfs /dev/sda3
- 161 mount /dev/sda3 /mnt
- 162 mount
- 163 cd /mnt
- 164 cp /etc/hosts .
- 165 cd
- 166 ls /mnt
- 167 umount /dev/sda3
- 168 ls /mnt
- 169 vim /etc/fstab
- 170 mount -a
- 171 mkdir /mydata
- 172 mount -a
- 173 mount
- 174 vim /etc/fstab
- 175 reboot
- 176 vim /etc/fstab
- 177 mount
- 178 mount | grep '^/'
- 179 fdisk -l
- 180 fdisk -l /dev/sda
- 181 history
- 182 groupadd profs
- 183 groupadd student
- 184 groupadd students
- 185 vim /etc/login.defs
- 186 chage linda
- 187 useradd -G student linda
- 188 usermod -aG student linda
- 189 usermod -aG student lisa
- 190 usermod -aG students lisa
- 191 usermod -aG students linda
- 192 vim /etc/group
- 193 usermod -aG profs anna
- 194 usermod -aG profs anouk
- 195 id anna
- 196 id linda
- 197 mkdir /data/profs /data/students
- 198 cd /data
- 199 ls -l
- 200 chown anna:profs profs
- 201 chown anna:students students
- 202 ls -l
- 203 chmod 3770 profs
- 204 chmod 3770 students
- 205 ls -l
- 206 su - linda
- 207 setfacl -R -m g:profs:rX /data/students
- 208 setfacl -m d:g:profs:rx /data/students
- 209 su - linda
- 210 chown -R anna .
- 211 ls -ld .
- 212 ls -l
- 213 lsblk
- 214 fdisk /dev/sda
- 215 partprobe
- 216 cat /proc/partitions
- 217 lsblk
- 218 reboot
- 219 lsblk
- 220 vim /etc/default/grub
- 221 grub2-mkconfig -o /boot/grub2/grub.cfg
- 222 mkfs.ext4 /dev/sda4
- 223 mkfs.ext4 /dev/sda5
- 224 mkfs.xfs /dev/sda6
- 225 mkdir /ext4 /xfs
- 226 vim /etc/fstab
- 227 fdisk /dev/sda
- 228 vim /etc/fstab
- 229 reboot
- 230 lsblk
- 231 xfs_admin -L goat /dev/sda5
- 232 vim /etc/fstab
- 233 reboot
- 234 mount
- 235 blkid
- 236 xfs_admin --help
- 237 history
- 238 cat /etc/default/grub
- 239 fdisk /dev/sda
- 240 tune2fs -L /dev/sda6
- 241 tune2fs -L cow /dev/sda6
- 242 reboot
- 243 lsblk
- 244 vim /etc/fstab
- 245 tune2fs -L horse /dev/sda6
- 246 tune2fs -L horse /dev/sda5
- 247 vim /etc/fstab
- 248 countdown 16
- 249 poweroff
- 250 yum repolist
- 251 yum search nmap
- 252 dnf install nmap
- 253 cd /etc/yum.repos.d/
- 254 ls
- 255 rm -f *
- 256 yum search zsh
- 257 yum search nmap
- 258 yum clean all
- 259 yum search nmap
- 260 cd /
- 261 yum repolist
- 262 df -h
- 263 dd if=/dev/sr0 of=/centos83.iso bs=1M
- 264 mkdir /repo
- 265 vim /etc/fstab
- 266 ls /repo
- 267 mount -a
- 268 ls /repo
- 269 cd repo
- 270 ls
- 271 cd BaseOS/
- 272 ls
- 273 ls Packages/
- 274 yum repolist
- 275 cd /etc/yum.repos.d/
- 276 vim base.repo
- 277 vim appstream.repo
- 278 yum repolist
- 279 cd /repo
- 280 ls
- 281 seinfo
- 282 yum provides */seinfo
- 283 yum install setools-console
- 284 yum module list
- 285 yum module provides httpd
- 286 yum module info httpd
- 287 yum module info postgresql
- 288 yum module info --profile postgresql
- 289 yum module lsit postgresql
- 290 yum module list postgresql
- 291 yum module install postgresql:9.6/devel
- 292 yum module install postgresql:9.6/server
- 293 yum install httpd
- 294 yum module enable postgresql:9.6
- 295 yum module info --profile php
- 296 yum module install php:7.2/devel
- 297 yum module reset php
- 298 yum module install --allowerasing php:7.3
- 299 which yum
- 300 which dnf
- 301 ls -l /bin/yum /bin/dnf
- 302 yum install -y bash-completion
- 303 ip a
- 304 ip route show
- 305 ip route del default via 192.168.4.2
- 306 ip route show
- 307 ping nu.nl
- 308 ip route add default via 192.168.4.2
- 309 ping nu.nl
- 310 cat /etc/resolv.conf
- 311 rm /etc/resolv.conf
- 312 ping nu.nl
- 313 echo nameserver 192.168.4.2 >> /etc/resolv.conf
- 314 ping nu.nl
- 315 man ifconfig
- 316 ip a a dev ens33 10.0.0.10/24
- 317 ip a
- 318 ping 10.0.0.10
- 319 ifconfig
- 320 which ifconfig
- 321 rpm -qf /sbin/ifconfig
- 322 yum remove $(rpm -qf /sbin/ifconfig)
- 323 countdown 12
- 324 cd
- 325 systemctl status NetworkManager
- 326 cd /etc/sysconfig/network-scripts/
- 327 ls
- 328 vim ifcfg-ens33
- 329 nmtui
- 330 ip a
- 331 nmcli connection delete ens33
- 332 nmcli connection add con-name newcon ifname ens33 ipv4.addresses 192.168.4.44/24 ipv4.gateway 192.168.4.2 ipv4.dns 192.168.4.2 ipv4.method manual
- 333 nmcli connection add con-name newcon ifname ens33 ipv4.addresses 192.168.4.44/24 ipv4.gateway 192.168.4.2 ipv4.dns 192.168.4.2 ipv4.method manual type ethernet
- 334 nmcli connection show
- 335 nmcli connection up newcon
- 336 ip a
- 337 ping nu.nl
- 338 history
- 339 countdown 4
- 340 nmcli con modify newcon +ipv4.addresses 10.11.12.90/24
- 341 nmcli con up newcon
- 342 ip a
- 343 systemctl status tuned
- 344 tuned-adm --help
- 345 tuned-adm list
- 346 tuned-adm profile latency-performance
- 347 tuned-adm active
- 348 sysctl -a
- 349 sysctl -a | wc
- 350 cd /usr/lib/tuned/latency-performance/
- 351 ls
- 352 vim tuned.conf
- 353 mkdir /etc/tuned/sander
- 354 cd ..
- 355 cd virtual-guest/
- 356 ls
- 357 cp tuned.conf /etc/tuned/sander/
- 358 cd ..
- 359 cd latency-performance/
- 360 cat tuned.conf >>/etc/tuned/sander/tuned.conf
- 361 tuned-adm list
- 362 tuned-adm profile sander
- 363 cd
- 364 fdisk /dev/sda
- 365 lsblk
- 366 pvcreate /dev/sda7
- 367 xxd /dev/sda7 | less
- 368 pvs
- 369 vgcreate --help | less
- 370 vgcreate -s 2M vgdata /dev/sda7
- 371 vgs
- 372 pvs
- 373 lvcreate -L 1G -n lvdata vgdata
- 374 lvcreate -L 1022M -n lvdata vgdata
- 375 mkfs.ext4 /dev/vgdata/lvdata
- 376 mount /dev/vgdata/lvdata /mnt
- 377 df- h
- 378 df -h
- 379 countdown 12
- 380 history
- 381 df -h
- 382 ls -l /dev/mapper/vgdata-lvdata /dev/vgdata/lvdata
- 383 lvextend -r -l +50%FREE /dev/vgdata/lvdata
- 384 vgs
- 385 vgextend vgdata /dev/sda8
- 386 vgs
- 387 lvextend -r -l +50%FREE /dev/vgdata/lvdata
- 388 df -h
- 389 lvextend -L +100M /dev/vgdata/lvdata
- 390 xfs_growfs /dev/vgdata/lvdata
- 391 mount | grep lvdata
- 392 resize2fs /dev/vgdata/lvdata
- 393 df -h
- 394 vim bonus-homework.txt
- 395 top
- 396 lvs
- 397 top
- 398 vmstat 2 10
- 399 top
- 400 fdisk /dev/sda
- 401 mkswap /dev/sda9
- 402 free -m
- 403 swapon /dev/sda9
- 404 free -m
- 405 vim /etc/fstab
- 406 swapoff /dev/sda9
- 407 free -m
- 408 swapon -a
- 409 free -m
- 410 history
- 411 poweroff
- 412 yum install stratis-cli stratisd
- 413 systemctl status stratids
- 414 systemctl status stratisd
- 415 systemctl start stratisd
- 416 systemctl status stratisd
- 417 stratis pool create mypool /dev/sdb
- 418 stratis pool lis
- 419 stratis pool list
- 420 stratis filesystem create mypool myfs1
- 421 stratis fs list mypool
- 422 mkdir /myfs
- 423 lsblk
- 424 blkid
- 425 mount UUID="f2c3a2b9-e552-4a99-b111-2205b0dfb235" /myfs1
- 426 mkdir /myfs1
- 427 mount UUID="f2c3a2b9-e552-4a99-b111-2205b0dfb235" /myfs1
- 428 mount
- 429 stratis pool list
- 430 stratis filesystem list
- 431 stratis blockdev list
- 432 df -h
- 433 stratis blockdev
- 434 stratis pool
- 435 stratis fs
- 436 stratis filesystem create mypool myfs2
- 437 stratis blockdev
- 438 stratis pool
- 439 stratis fs
- 440 blkid
- 441 stratis fs | grep myfs1
- 442 stratis fs | grep myfs1 | cut -f 10
- 443 stratis fs | grep myfs1 | awk '{ print $10 }'
- 444 stratis fs | grep myfs1 | awk '{ print $NR }'
- 445 stratis fs | grep myfs1 | awk '{ print $10 }'
- 446 stratis fs | grep myfs1 | awk '{ print $NF }' >> /etc/fstab
- 447 cat /etc/fstab
- 448 blkid
- 449 vim /etc/fstab
- 450 vim stratislab.txt
- 451 blkid
- 452 blkid | grep f2c3
- 453 blkid | grep f2c3 | awk '{ print $2 }'
- 454 blkid | grep f2c3 | awk '{ print $2 }' >> /etc/fstab
- 455 vim /etc/fstab
- 456 umount /myfs1
- 457 mount -a
- 458 history
- 459 vim stratislab.txt
- 460 systemctl status stratisd
- 461 reboot
- 462 journalctl | grep sealert
- 463 sealert -l 7aa0d0da-d02c-4c0d-be9d-e15669117a8e
- 464 sealert -l 7aa0d0da-d02c-4c0d-be9d-e15669117a8e | less
- 465 mount | grep myfs
- 466 vim stratislab.txt
- 467 vim /etc/fstab
- 468 cd /run/systemd/
- 469 ls
- 470 cd generator/
- 471 ls
- 472 vim myfs1.mount
- 473 ls
- 474 cd local-fs.target.requires/
- 475 ls
- 476 cd ..
- 477 cd
- 478 cd /usr/lib/systemd/system
- 479 ls local-fs.target.wants/
- 480 ls -l local-fs.target.wants/
- 481 yum install -y httpd
- 482 systemctl enable --now httpd
- 483 ps aux | grep http
- 484 ps Zaux | grep http
- 485 ls -Zl /var/www
- 486 ls -Zld /var/tmp
- 487 vim /etc/httpd/conf/httpd.conf
- 488 mkdir /web
- 489 echo hello > /web/index.html
- 490 systemctl restart httpd
- 491 systemctl status httpd
- 492 curl http://localhost
- 493 getenforce
- 494 setenforce Permissive
- 495 curl http://localhost
- 496 grep AVC /var/log/audit/audit.log
- 497 countdown 12
- 498 vim /etc/sysconfig/selinux
- 499 ls -ldZ /web /var/www/html/
- 500 man -k semanage
- 501 man semanage-fcontext
- 502 semanage fcontext -a -t httpd_sys_content_t "/web(/.*)?"
- 503 ls -ldZ /web
- 504 cd /etc/selinux/targeted/contexts/files/
- 505 ls
- 506 cat file_contexts.local
- 507 restorecon -Rv /web
- 508 setenforce 1
- 509 getenforce
- 510 curl http://localhost
- 511 man -k _selinux
- 512 yum search | grep selinux | grep doc
- 513 yum search selinux | grep doc
- 514 yum install selinux-policy-doc
- 515 mandb
- 516 man -k _selinux
- 517 man -k _selinux | grep http
- 518 man httpd_selinux
- 519 grep AVC /var/log/audit/audit.log | grep http
- 520 cd
- 521 getsebool -a | wc
- 522 getsebool -a | grep ftp
- 523 setsebool -P ftpd_anon_write on
- 524 yum provides */sealert
- 525 grep sealert /var/log/messages
- 526 sealert -l f404715f-a627-45ea-8424-fc4f5ca338ac | less
- 527 vim /etc/httpd/conf/httpd.conf
- 528 systemctl stop httpd
- 529 systemctl start httpd
- 530 systemctl status httpd
- 531 grep AVC /var/log/audit/audit.log | grep http
- 532 semanage port -l | grep http
- 533 man semanage-port
- 534 semanage port -a -t http_port_t -p tcp 82
- 535 systemctl start httpd
- 536 systemctl status httpd
- 537 systemctl status firewalld
- 538 firewall-cmd --help | less
- 539 man firewall-cmd
- 540 firewall-cmd --add-port=82/tcp
- 541 firewall-cmd --list-all
- 542 firewall-cmd --list-all --permanent
- 543 firewall-cmd --add-port=82/tcp --permanent
- 544 firewall-cmd --get-services
- 545 vim /usr/lib/firewalld/services/http
- 546 vim /usr/lib/firewalld/services/http.xml
- 547 cp /usr/lib/firewalld/services/http.xml /etc/firewalld/services/sander.xml
- 548 vim /etc/firewalld/services/sander.xml
- 549 firewall-cmd --get-services | grep sander
- 550 systemctl restart firewalld
- 551 firewall-cmd --get-services | grep sander
- 552 firewall-cmd --help | grep service
- 553 firewall-cmd --add-service=sander
- 554 firewall-cmd --list-all --permanent
- 555 firewall-cmd --list-all
- 556 firewall-cmd --add-service=sander --permanent
- 557 history
- 558 history 12
- 559 countdown 12
- 560 ssh student@192.168.4.135
- 561 showmount -e 192.168.4.135
- 562 mount 192.168.4.135:/myshare /mnt
- 563 mount
- 564 umount /mnt
- 565 yum install autofs -y
- 566 vim /etc/auto.master
- 567 vim /etc/auto.misc
- 568 showmount -e 192.168.4.135
- 569 ls /
- 570 vim /etc/auto.master
- 571 vim /etc/auto.files
- 572 vim /etc/auto.misc
- 573 vim /etc/auto.files
- 574 systemctl restart autofs
- 575 cd /files
- 576 ls -a
- 577 cd myshare
- 578 pwd
- 579 mount
- 580 vim /etc/auto.master
- 581 vim /etc/auto.ldap
- 582 cat /etc/auto.misc
- 583 vim /etc/auto.ldap
- 584 systemctl restart autofs
- 585 cd /home
- 586 ls
- 587 cd ldap
- 588 ls -a
- 589 cd ldapuser1
- 590 pwd
- 591 cd ..
- 592 cd ldapuser2
- 593 cd ..
- 594 pwd
- 595 ls
- 596 cd
- 597 reboot
- 598 touch /.autorelabel
- 599 reboot
- 600 countdown 5
- 601 yum install vdo kmod-kvdo
- 602 man vdo
- 603 lsblk
- 604 vdo create --name=vdo1 --device=/dev/sdc --vdoLogicalSize=1P
- 605 yum install kmod-kvdo
- 606 modprobe kvdo
- 607 uname -r
- 608 yum search vdo
- 609 rpm -ql kmod-kvdo
- 610 uname -r
- 611 reboot
- 612 cd /etc/yum.repos.d/
- 613 vim /etc/ssh/sshd_config
- 614 scp 192.168.4.138:/etc/yum.repos.d/* .
- 615 uname -r
- 616 ls
- 617 rm [ab]*
- 618 yum clean all
- 619 yum update kmod-kvdo
- 620 cd
- 621 systemctl list-dependencies
- 622 systemctl get-default
- 623 systemctl list-units -t target
- 624 systemctl list-units -t mount
- 625 systemctl list-units -t services
- 626 systemctl list-units -t service
- 627 systemctl list-units -t timer
- 628 systemctl list-units -t path
- 629 systemctl status rsyslog
- 630 journalctl
- 631 vim /etc/systemd/journald.conf
- 632 cd /var/log
- 633 ls
- 634 mkdir journal
- 635 systemctl daemon-reload
- 636 ls journal/
- 637 journalctl
- 638 journalctl -u httpd
- 639 systemctl status httpd
- 640 journalctl USER_ID=student
- 641 man journalctl
- 642 yum install *vdo*
- 643 vim /etc/rsyslog.conf
- 644 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement