Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@rhcsa ~]# history
- 1 vim countdown
- 2 chmod +x countdown
- 3 ./countdown 9
- 4 tar cvzf /root/archive.tgz /etc
- 5 file archive.tgz
- 6 tar tvf archive.tgz
- 7 tar xvf archive.tgz -C /tmp
- 8 grep -v "^$" /etc/dnsmasq.conf | sort > /var/tmp/dnslines.txt
- 9 history
- 10 useradd linda
- 11 find / -user linda -type f -exec cp -pr {} /root/userfiles \;
- 12 ls -l /root/userfiles
- 13 less /root/userfiles
- 14 rm /root/userfiles ; mkdir /root/userfiles ; find / -user linda -type f -exec cp -pr {} /root/userfiles/ \;
- 15 ls /root/userfiles/
- 16 ls /root/userfiles/ -l
- 17 rm /root/userfiles/linda
- 18 find / -user linda -exec cp -pr {} /root/userfiles/ \;
- 19 ls -l /root/userfiles/
- 20 ls -l /root/userfiles/ -a
- 21 ls -la /home/linda
- 22 ls -l /var/spool/
- 23 find / -user linda
- 24 exit
- 25 usermod -aG wheel student
- 26 id student
- 27 visudo
- 28 vim countdown
- 29 chmod +x countdown
- 30 ./countdown 12
- 31 less /etc/passwd
- 32 su - linda
- 33 vim /etc/login.defs
- 34 vim /etc/skel/
- 35 cd /etc/skel/
- 36 ls
- 37 ls -a
- 38 touch myfile
- 39 cd
- 40 groupadd sales
- 41 useradd --help | less
- 42 useradd -G sales bob
- 43 id bob
- 44 passwd --help
- 45 useradd kees -x 9090
- 46 useradd kees
- 47 passwd -x 9090 kees
- 48 passwd --help
- 49 passwd -S kees
- 50 vim /etc/shadow
- 51 useradd -u 1234 whoever
- 52 grep whoever /etc/passwd
- 53 cat /etc/shadow
- 54 passwd whoever
- 55 cat /etc/shadow
- 56 passwd -l whoever
- 57 cat /etc/shadow
- 58 echo password | passwd --stdin whoever
- 59 for i in bob linda whoever student; do echo password | passwd --stdin $i; done
- 60 chage linda
- 61 ls -l
- 62 mkdir /data/sales
- 63 mkdir -p /data/sales
- 64 mkdir -p /data/account
- 65 cd /data
- 66 ls -l
- 67 chgrp account account
- 68 groupadd account
- 69 chgrp account account
- 70 chgrp sales sales
- 71 ls -l
- 72 chmod 770 *
- 73 ls -l
- 74 id linda
- 75 usermod -aG sales linda
- 76 grep sales /etc/group
- 77 id linda
- 78 grep linda /etc/passwd
- 79 grep sales /etc/passwd
- 80 grep sales /etc/group
- 81 grep wheel /etc/group
- 82 su - linda
- 83 su - bob
- 84 cd /home/linda
- 85 touch root1
- 86 touch root2
- 87 su - linda
- 88 pwd
- 89 touch root3
- 90 su - linda
- 91 cd
- 92 ./countdown 12
- 93 cd /home/linda
- 94 vim playme
- 95 chmod +x playme
- 96 su - linda
- 97 chmod u+s playme
- 98 ls -l
- 99 find / -perm /4000 2>/dev/null
- 100 ls -l /usr/bin/passwd
- 101 ls -l /etc/shadow
- 102 su - linda
- 103 chmod g+s /data/sales
- 104 ls -ld /data/sales/
- 105 cd /data/sales
- 106 touch wortel
- 107 ls -l
- 108 su - linda
- 109 chmod +t /data/sales
- 110 su - bob
- 111 ls -ld /tmp
- 112 cd
- 113 ./countdown 1
- 114 lsblk
- 115 ./countdown 12
- 116 lsblk
- 117 poweroff
- 118 lsblk
- 119 fdisk /dev/nvme0n1
- 120 gdisk /dev/nvme0n1
- 121 fdisk /dev/nvme0n1
- 122 lsblk
- 123 mkfs.xfs /dev/nvme0n1p3
- 124 mkdir /newfs
- 125 vim /etc/fstab
- 126 mount -a
- 127 mount
- 128 reboot
- 129 fdisk /dev/nvme0n1p1
- 130 fdisk /dev/nvme0n1
- 131 reboot
- 132 fdisk -l
- 133 lsblk
- 134 mkdir /xfs
- 135 mkdir /ext4
- 136 mkfs.xfs /dev/nvme0n1p5
- 137 mkfs.ext4 /dev/nvme0n1p6
- 138 vim /etc/fstab
- 139 mount -a
- 140 vim /etc/fstab
- 141 mount -a
- 142 cd /xfs
- 143 touch sda5file
- 144 cd /ext4
- 145 touch ext4file
- 146 cd /
- 147 vim /etc/fstab
- 148 umount /xfs
- 149 fdisk /dev/nvme0n1
- 150 reboot
- 151 vim /etc/fstab
- 152 reboot
- 153 history
- 154 vim /etc/fstab
- 155 reboot
- 156 journalctl -xb
- 157 lsblk
- 158 blkid
- 159 tune2fs --help
- 160 tune2fs -L cow /dev/nvme0n1p5
- 161 tune2fs -l /dev/nvwm0n1p5
- 162 tune2fs -l /dev/nvme0n1p5
- 163 tune2fs -l /dev/nvme0n1p5 | lss
- 164 tune2fs -l /dev/nvme0n1p5 | less
- 165 vim /etc/fstab
- 166 reboot
- 167 mount
- 168 mount | grep '^/'
- 169 df -h
- 170 man tune2fs
- 171 fdisk /dev/nvme0n1
- 172 lsblk
- 173 mount /dev/nvme0n1p6 /xfs
- 174 cd /xfs
- 175 ls
- 176 xfs_admin --help
- 177 xfs_admin -L goat /dev/nvme0n1p6
- 178 umount /xfs
- 179 cd /
- 180 umount /xfs
- 181 xfs_admin -L goat /dev/nvme0n1p6
- 182 blkid
- 183 blkid | grep n1p6
- 184 blkid | grep n1p6 | awk '{ print $3 }'
- 185 blkid | grep n1p6 | awk '{ print $3 }' >> /etc/fstab
- 186 vim /etc/fstab
- 187 mount -a
- 188 reboot
- 189 df
- 190 fdisk /dev/nvme0n1
- 191 vim /etc/default/grub
- 192 grub2-mkconfig -o /boot/grub2/grub.cfg
- 193 reboot
- 194 ./countdown 15
- 195 lsblk
- 196 history
- 197 groupadd students
- 198 groupadd profs
- 199 vim /etc/login.defs
- 200 usermod -aG students linda
- 201 id linda
- 202 useradd -G students lisa
- 203 useradd -G profs anna
- 204 useradd -G profs anouk
- 205 mkdir -p /data/profs /data/students
- 206 cd /data
- 207 ls -k
- 208 ls -l
- 209 chown anna:profs profs
- 210 chown anna:students students
- 211 chmod 3770 profs
- 212 chmod 3770 students
- 213 ls -l
- 214 vim /etc/fstab
- 215 cd
- 216 ./countdown 5
- 217 cd /data
- 218 ls -l
- 219 getfacl sales
- 220 ls -l sales/
- 221 setfacl -R -m g:account:rx sales/
- 222 ls -l sales/
- 223 man setfacl
- 224 setfacl -R -x g:account sales/
- 225 ls -l sales/
- 226 setfacl -R -m g:account:rX sales/
- 227 ls -l sales/
- 228 su - linda
- 229 setfacl -m d:g:account:rx sales
- 230 getfacl sales
- 231 su - linda
- 232 getfacl sales/default
- 233 history
- 234 getfacl students/
- 235 ls -l *
- 236 ls -ld *
- 237 setfacl -R -m:profs:rX students
- 238 setfacl -R -m g:profs:rX students
- 239 setfacl -R -m d:g:profs:rx students
- 240 getfacls students/
- 241 getfacl students/
- 242 df -h
- 243 cd
- 244 dd if=/dev/sr0 of=/rhel83.iso bs=1M
- 245 yum repolist
- 246 yum install -y nmap
- 247 mkdir /repo
- 248 vim /etc/fstab
- 249 ls /repo
- 250 mount -a
- 251 ls /repo
- 252 vim /etc/fstab
- 253 yum repolist
- 254 cd /etc/yum.repos.d/
- 255 ls
- 256 cat redhat.repo
- 257 cd /repo
- 258 ls
- 259 grep repo /etc/fstab
- 260 ls AppStream/
- 261 ls BaseOS/
- 262 ls BaseOS/Packages/
- 263 ls BaseOS/repodata/
- 264 cd -
- 265 vim appstream.repo
- 266 vim base.repo
- 267 yum repolist
- 268 yum install nmap
- 269 yum provides */seinfo
- 270 seinfo
- 271 cd
- 272 yum module list
- 273 yum module list | less
- 274 yum module provides httpd
- 275 yum module info postgresql
- 276 yum module info --profile postgresql
- 277 yum module list postgresql
- 278 yum module install postgresql:9.6
- 279 yum module install postgresql:9.6/devel
- 280 yum module enable postgresql:9.6
- 281 ./countdown 12
- 282 ip
- 283 ip addr
- 284 ip a
- 285 ip a a dev ens160 10.10.0.10/24
- 286 ip a
- 287 ping 10.10.0.10
- 288 ifconfig
- 289 ifconfig -a
- 290 ifconfig /all
- 291 man ifconfig
- 292 ip
- 293 ip route show
- 294 ip route add 1.0.0.0/8 via 192.168.29.100
- 295 systemctl status NetworkManager
- 296 nmtui
- 297 ip a
- 298 cd /etc/sysconfig/network-scripts/
- 299 ls
- 300 vim ifcfg-ens160
- 301 ip link show
- 302 man ifconfig
- 303 ip -s link show
- 304 systemctl status tuned
- 305 tuned-adm list
- 306 tuned-adm profile latency-performance
- 307 tuned-adm active
- 308 ls /usr/lib/tuned/
- 309 ls /etc/tuned/
- 310 mkdir /etc/tuned/sander
- 311 cp /usr/lib/tuned/latency-performance/* /etc/tuned/sander/
- 312 cd /etc/tuned/sander
- 313 ls
- 314 vim tuned.conf
- 315 sysctl -a
- 316 sysctl -a | wc
- 317 tuned-adm list
- 318 su - linda
- 319 cd
- 320 cp countdown /usr/bin
- 321 countdown 12
- 322 fdisk /dev/nvme0n1
- 323 cat /proc/partitions
- 324 lsblk
- 325 pvcreate --help
- 326 pvcreate /dev/nvme0n1p7
- 327 pvs
- 328 vgcreate --help | less
- 329 vgcreate vgdata -s 4m /dev/nvme0n1p7
- 330 vgs
- 331 vgdisplay rhel | less
- 332 echo $(( 4863 * 4 ))
- 333 echo $(( 19452 / 1024 ))
- 334 lvcreate --help | less
- 335 lvcreate -L 1G -n lvdata vgdata
- 336 lvcreate -l 255 -n lvdata vgdata
- 337 mkfs.ext4 /dev/vgdata/lvdata
- 338 mkdir /lvdata
- 339 vim /etc/fstab
- 340 mount -a
- 341 mount
- 342 ls -l /dev/vgdata/lvdata /dev/mapper/vgdata-lvdata
- 343 pvs
- 344 xxd /dev/nvme0n1p7 | less
- 345 xxd /dev/nvme0n1 | less
- 346 df -h
- 347 lvextend -r -l +50%FREE /dev/vgdata/lvdata
- 348 vgs
- 349 vgextend --help
- 350 vgextend vgdata /dev/nvme0n1p8
- 351 vgs
- 352 lvextend -r -l +50%FREE /dev/vgdata/lvdata
- 353 df -h
- 354 lvextend -l +100%FREE /dev/vgdata/lvdata
- 355 df -h
- 356 resize2fs --help
- 357 resize2fs /dev/vgdata/lvdata
- 358 lvreduce -r -l -1G /dev/vgdata/lvdata
- 359 lvreduce -r -L -1G /dev/vgdata/lvdata
- 360 history
- 361 poweroff
- 362 fdisk /dev/nvme0n1
- 363 mkswap --help
- 364 mkswap /dev/nvme0n1p9
- 365 free -m
- 366 swapon /dev/nvme0n1p9
- 367 free -m
- 368 vim /etc/fstab
- 369 free -m
- 370 reboot
- 371 top
- 372 vmstat 2 25
- 373 top
- 374 reboot
- 375 yum install stratis-cli stratisd
- 376 systemctl enable --now stratisd
- 377 stratis pool create mypool /dev/nvme0n2
- 378 stratis pool list
- 379 stratis fs create myfs1
- 380 stratis fs create mypool myfs1
- 381 stratis fs create mypool myfs2
- 382 stratis fs list
- 383 stratis pool list
- 384 blkid
- 385 blkid | grep 52fb
- 386 blkid | grep 52fb | awk '{ print $2 }'
- 387 blkid | grep 52fb | awk '{ print $2 }' >> /etc/fstab
- 388 blkid | grep 60d3 | awk '{ print $2 }' >> /etc/fstab
- 389 vim /etc/fstab
- 390 mkdir /stratis1 /stratis2
- 391 mount -a
- 392 reboot
- 393 df -h
- 394 cd /stratis1
- 395 dd if=/dev/zero of=bigfile bs=1M count=50000
- 396 df -h
- 397 stratis pool list
- 398 cat /etc/fstab
- 399 cd /run/systemd/generator/
- 400 ls
- 401 vim stratis1.mount
- 402 vim boot.mount
- 403 cat /etc/fstab
- 404 cp newfs.mount /etc/systemd/system/
- 405 vim /etc/fstab
- 406 cd /etc/systemd/system/
- 407 vim newfs.mount
- 408 systemctl cat sshd.service
- 409 vim newfs.mount
- 410 umount /newfs
- 411 mount | grep newfs
- 412 systemctl enable --now newfs.mount
- 413 mount | grep newfs
- 414 reboot
- 415 mount | grep new
- 416 cat /etc/fstab
- 417 systemctl status newfs
- 418 systemctl status newfs.mount
- 419 vim /etc/default/grub
- 420 ./countdown 15
- 421 yum install -y httpd
- 422 systemctl enable --now httpd
- 423 ps aux | grep httpd
- 424 ps Zaux | grep httpd
- 425 ps Zaux
- 426 ls -ldZ /var/tmp
- 427 ls -lZ /var/www
- 428 mkdir /web
- 429 cd /web
- 430 vim index.html
- 431 vim /etc/httpd/conf/httpd.conf
- 432 systemctl restart httpd
- 433 curl localhost
- 434 getenforce
- 435 setenforce permissive
- 436 getenforce
- 437 curl localhost
- 438 vim /etc/httpd/conf/httpd.conf
- 439 systemctl restart httpd
- 440 curl localhost
- 441 getenforce
- 442 setenforce enforcing
- 443 curl localhost
- 444 ps Zaux | grep httpd
- 445 ls -ldZ /web
- 446 grep AVC /var/log/audit/audit.log
- 447 ls -ld /web
- 448 ls -ldZ /web
- 449 ls -ldZ /var/www/html
- 450 man semanage
- 451 man semanage-fcontext
- 452 semanage fcontext -a -t httpd_sys_content_t "/web(/.*)?"
- 453 ls -ldZ /web
- 454 restorecon -Rv /web
- 455 getenforce
- 456 curl localhost
- 457 cd
- 458 ./countdown 1
- 459 history
- 460 man regex
- 461 man 7 regex
- 462 grep AVC /var/log/audit/audit.log
- 463 history | grep force
- 464 vim /etc/sysconfig/selinux
- 465 ./countdown 13
- 466 getsebool -a
- 467 getsebool -a | wc
- 468 getsebool -a |less
- 469 getsebool -a | grep http
- 470 getsebool -a | grep on
- 471 getsebool -a | grep http
- 472 setsebool -P httpd_use_cifs on
- 473 vim /etc/httpd/conf/httpd.conf
- 474 systemctl restart httpd
- 475 systemctl status httpd
- 476 grep AVC /var/log/audit/audit.log
- 477 man semanage-port
- 478 grep sealert /var/log/messages
- 479 sealert -l 881abaed-4218-4aba-8ddc-f4e0773e74e7 | less
- 480 #semanage port -a -t http_port_t
- 481 sealert -l 881abaed-4218-4aba-8ddc-f4e0773e74e7 | les
- 482 semanage port -a -t http_port_t -p tcp 82
- 483 systemctl restart httpd
- 484 sealert -l 1977d4aa-ae14-4130-b3c4-58c2d81b2466 | less
- 485 restorecon -Rv /var
- 486 yum install vdo kmod-kvdo
- 487 man vdo
- 488 vdo create --name=vdo1 --device=/dev/nvme0n3 --vdoLogicalSize=1E
- 489 vdo create --name=vdo1 --device=/dev/nvme0n3 --vdoLogicalSize=1P
- 490 mkfs.xfs -K /dev/mapper/vdo1
- 491 udevadm settle
- 492 cd /usr/share/doc/vdo/
- 493 ls
- 494 cd examples/
- 495 ls
- 496 cd systemd/
- 497 ls
- 498 cp VDO.mount.example /etc/systemd/systemd/myvdo.mount
- 499 cp VDO.mount.example /etc/systemd/system/myvdo.mount
- 500 mkdir /myvdo
- 501 pwd
- 502 cd /etc/systemd/system/
- 503 vim myvdo.mount
- 504 systemctl enable --now myvdo.mount
- 505 systemctl status myvdo.mount
- 506 reboot
- 507 showmount -e 192.168.29.2
- 508 mount 192.168.29.2:/ldap /mnt
- 509 ls /mnt
- 510 umount /mnt
- 511 countdown 13
- 512 systemctl status autofs
- 513 yum install -y autofs
- 514 systemctl status autofs
- 515 vim /etc/auto.master
- 516 vim /etc/auto.misc
- 517 ls /
- 518 vim /etc/auto.files
- 519 vim /etc/auto.master
- 520 vim /etc/auto.files
- 521 showmount -e 192.168.29.2
- 522 ls /
- 523 systemctl enable --now autofs
- 524 ls /
- 525 cd /files
- 526 ls -a
- 527 cd data
- 528 mount
- 529 vim /etc/auto.master
- 530 vim /etc/auto.ldap
- 531 systemctl restart autofs
- 532 cd /home/ldap
- 533 ls -a
- 534 cd user1
- 535 cd ../user2
- 536 cd ..
- 537 ls
- 538 countdown 1
- 539 reboot
- 540 mount | grep vdo
- 541 df -h
- 542 vdostats --human-readable
- 543 ssh 192.168.29.2
- 544 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement