Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@rhcsa ~]# history
- 1 chmod -x countdown
- 2 ls -l countdown
- 3 ./countdown
- 4 chmod +x countdown
- 5 ./countdown 0
- 6 mkdir /data/sales
- 7 mkdir -p /data/sales
- 8 mkdir -p /data/account
- 9 cd /data
- 10 ls -l
- 11 groupadd sales
- 12 groupadd account
- 13 usermod -aG sales linda
- 14 usermod -aG sales lisa
- 15 id linda
- 16 id lisa
- 17 useradd --help
- 18 useradd -G account anna
- 19 useradd -G account anouk
- 20 id anna
- 21 passwd lisa
- 22 history
- 23 history -d 97
- 24 history -d 96
- 25 history -d 95
- 26 echo password | passwd --stdin anna
- 27 ls -l
- 28 chgrp account account
- 29 ls -l
- 30 chgrp sales sales
- 31 ls
- 32 for i in *; do echo $i; done
- 33 for i in *; do chgrp $i $i; done
- 34 ls -l
- 35 chmod 770 *
- 36 ls -l
- 37 su - linda
- 38 su - lisa
- 39 cd /home/linda
- 40 vim playme
- 41 chmod +x playme
- 42 su - linda
- 43 chmod u+s playme
- 44 ls -l
- 45 su - linda
- 46 find / -perm /4000 2>/dev/null
- 47 ls -l /usr/bin/passwd
- 48 ls -l /etc/shadow
- 49 cat /etc/shadow
- 50 ls -l /etc/shadow
- 51 cd /data/sales
- 52 ls -l
- 53 chmod g+s .
- 54 ls -ld .
- 55 su - linda
- 56 su - lisa
- 57 chmod +t .
- 58 ls -ld .
- 59 su - lisa
- 60 /root/countdown 12
- 61 ls -ld .
- 62 cd ..
- 63 chmod 3770 *
- 64 ls -k
- 65 ls -l
- 66 chmod o+x *
- 67 ls -l
- 68 chmod o-x *
- 69 ls -l
- 70 ls -lr *
- 71 setfacl -R -m g:account:rx sales
- 72 cd sales
- 73 ls -l
- 74 man setfacl
- 75 setfacl -R -x g:account sales
- 76 cd ..
- 77 setfacl -R -x g:account sales
- 78 ls -l sales
- 79 setfacl -R -m g:account:rX sales
- 80 ls -l sales/
- 81 ls -l sales
- 82 ls -ld sales
- 83 getfacl sales
- 84 setfacl -m d:g:account:rx sales
- 85 getfacl sales
- 86 su - linda
- 87 lsblk
- 88 fdisk /dev/sda
- 89 lsblk
- 90 mkfs.xfs /dev/sda3
- 91 mount /dev/sda3 /mnt
- 92 history
- 93 vim /etc/login.defs
- 94 groupadd --help | less
- 95 groupadd students
- 96 groupadd profs
- 97 usermod -aG students anna
- 98 usermod -aG students anouk
- 99 id anna
- 100 usermod -aG profs,account anna
- 101 usermod -aG profs,account anouk
- 102 usermod -G profs,account anouk
- 103 usermod -G profs,account anna
- 104 id anna
- 105 usermod -aG students linda
- 106 usermod -aG students lisa
- 107 mkdir -p /data/profs /data/students
- 108 cd /data
- 109 ls -l
- 110 chown anna:profs profs
- 111 chown anna:students students
- 112 ls -l
- 113 chmod 3770 *
- 114 ls -l
- 115 setfacl -m d:g:profs:rx /data/students
- 116 su - linda
- 117 su - anouk
- 118 getfacl /data/students
- 119 setfacl -m d:g:profs:rX /data/students/
- 120 su - anouke
- 121 su - anouk
- 122 ls -l
- 123 rm -rf students
- 124 mkdir students
- 125 chmod 3770 students
- 126 chown anna:students
- 127 chown anna:students students
- 128 ls -l
- 129 setfacl -R -m g:profs:rX students
- 130 setfacl -m d:g:profs:rx students
- 131 getfacl students
- 132 id anouk
- 133 su - anouk
- 134 ls l
- 135 ls -l
- 136 cd
- 137 lsblk
- 138 fdisk /dev/sda
- 139 lsblk
- 140 reboot
- 141 lsblk
- 142 mkfs.xfs /dev/sda5
- 143 mkdir /files
- 144 mount /dev/sda5 /files
- 145 mount
- 146 umount /files
- 147 vim /etc/fstab
- 148 mount -a
- 149 mount
- 150 df -h
- 151 mkfs.ext4 /dev/sda6
- 152 mkdir /ext4
- 153 vim /etc/fstab
- 154 mount -a
- 155 df -h
- 156 vim /etc/fstab
- 157 umount /files
- 158 fdisk /dev/sda
- 159 reboot
- 160 blkid
- 161 blkid | grep sda5
- 162 blkid | grep sda5 | awk '{ print $2 }'
- 163 blkid | grep sda5 | awk '{ print $2 }' >> /etc/fstab
- 164 vim /etc/fstab
- 165 reboot
- 166 ./countdown 12
- 167 fdisk -l /dev/sda
- 168 vim /etc/fstab
- 169 fstab /dev/sda
- 170 fdisk /dev/sda
- 171 lsblk
- 172 mount /dev/sda6 /mnt
- 173 df -h
- 174 xfs_admin --help
- 175 xfs_admin -L goat /dev/sda6
- 176 umount /dev/sda6
- 177 xfs_admin -L goat /dev/sda6
- 178 vim /etc/fstab
- 179 tune2fs /dev/sda5 -L cow
- 180 vim /etc/fstab
- 181 fdisk /dev/sda
- 182 reboot
- 183 blkid
- 184 cat /proc/partitions
- 185 lsblk
- 186 vim /etc/fstab
- 187 cd /etc/yum.repos.d/
- 188 ls
- 189 rm -f *
- 190 ls
- 191 yum repolist
- 192 yum install nmap
- 193 cd
- 194 dd if=/dev/sr0 of=/rhel8.iso bs=1M
- 195 ls -l /rhel8.iso
- 196 df -h
- 197 mkdir /repo
- 198 vim /etc/fstab
- 199 mount -a
- 200 ls /repo
- 201 yum repolist
- 202 ./countdown 12
- 203 cd /etc/yum.repos.d/
- 204 ls
- 205 cd /repo/
- 206 ls
- 207 cd BaseOS/
- 208 ls
- 209 ls Packages/
- 210 ls repodata/
- 211 cd /etc/yum.repos.d/
- 212 vim base.repo
- 213 yum repolist
- 214 vim appstream.repo
- 215 yum repolist
- 216 yum search nmap
- 217 yum search nano
- 218 vim base.repo
- 219 which yum
- 220 ls -l /bin/yum
- 221 yum provides */passwd
- 222 seinfo
- 223 grep iso /etc/fstab
- 224 cd /repo
- 225 ls
- 226 vim /etc/yum.repos.d/base.repo
- 227 cd
- 228 yum modules list
- 229 yum module list
- 230 yum module provides httpd
- 231 yum module info postgresql
- 232 yum module info --profile postgresql
- 233 yum module list postgresql
- 234 yum module list httpd
- 235 yum module install postgresql:9.6/devel
- 236 yum module install postgresql:9.6/server
- 237 yum install httpd
- 238 yum module info --profile php
- 239 yum modules install php:7.2/devel
- 240 yum module install php:7.2/devel
- 241 yum module reset php
- 242 yum module install --allowerasing php:7.3
- 243 systemctl status NetworkManager
- 244 cd /etc/sysconfig/network-scripts/
- 245 ls
- 246 vim ifcfg-ens160
- 247 nmtui
- 248 ip a
- 249 ip a a dev ens160 10.0.0.10/24
- 250 ip a
- 251 ifconfig
- 252 man ifconfig
- 253 rpm -qf $(which ifconfig)
- 254 yum delete net-tool
- 255 rpm -ql net-tools
- 256 yum remove net-tools
- 257 cd
- 258 ./countdown 12
- 259 systemctl status tuned
- 260 tuned-adm --help
- 261 tuned-adm list
- 262 tuned-adm profile desktop
- 263 tuned-adm list
- 264 fdisk /dev/sda
- 265 cat /proc/partitions
- 266 pvcreate /dev/sda7
- 267 pvs
- 268 xxd /dev/sda7 | less
- 269 vgcreate --help | less
- 270 vcreate -s 8M vgdata /dev/sda7
- 271 vgcreate -s 8M vgdata /dev/sda7
- 272 vgs
- 273 pvs
- 274 vgdisplay
- 275 man lvcreate
- 276 lvcreate -L 1G -n lvdata vgdata
- 277 echo $(( 128 * 8 ))
- 278 echo $(( 1016 / 8 ))
- 279 lvcreate -l 127 -n lvdata vgdata
- 280 lvs
- 281 mkfs.xfs /dev/vgdata/lvdata
- 282 mount /dev/vgdata/lvdata /mnt
- 283 mount
- 284 ls -l /dev/vgdata/lvdata /dev/mapper/vgdata-lvdata
- 285 xxd /dev/sda7 | less
- 286 vim /etc/fstab
- 287 mount -a
- 288 mkdir /lvdata
- 289 mount -a
- 290 history
- 291 vgs
- 292 poweroff
- 293 lsblk
- 294 vgs
- 295 fdisk /dev/sda
- 296 lsblk
- 297 vgs
- 298 lvs
- 299 pvs
- 300 vgextend vgdata /dev/sda8
- 301 vgs
- 302 df -h
- 303 mount | grep lvda
- 304 lvextend -l +50%FREE /dev/vgdata/lvdata
- 305 df -h
- 306 xfs_growfs --help
- 307 xfs_growfs /lvdata
- 308 df -h
- 309 vgs
- 310 lvcreate -n lvnew -l 100%FREE vgdata
- 311 lvs
- 312 mkfs.ext4 /dev/vgdata/lvnew
- 313 mount /dev/vgdata/lvnew /mnt
- 314 mount
- 315 df -h
- 316 lvreduce --help
- 317 lvreduce -r -L -100M /dev/vgdata/lvnew
- 318 df -h
- 319 free -m
- 320 fdisk /dev/sda
- 321 mkswap /dev/sda10
- 322 free -m
- 323 vim /etc/fstab
- 324 mount -a
- 325 free -m
- 326 swapon -a
- 327 free -m
- 328 vim /etc/fstab
- 329 history
- 330 ls -l /dev/mapper/vgdata-lvdata /dev/vgdata/lvdata
- 331 yum install stratis-cli startisd
- 332 yum install stratis-cli stratisd
- 333 systemctl enable --now stratisd
- 334 systemctl status stratisd
- 335 man stratis
- 336 stratis pool create mypool /dev/sdb
- 337 stratis pool list
- 338 stratis filesystem create mypool myfs1
- 339 stratis filesystem create mypool myfs2
- 340 stratis fs list
- 341 blkid
- 342 mkdir /myfs1 /myfs2
- 343 vim /etc/fstab
- 344 mount -a
- 345 reboot
- 346 stratis pool list
- 347 stratis filesystem list
- 348 df -h
- 349 stratis blockdev list
- 350 vdo
- 351 man vdo
- 352 #vdo create --name=vdo0 --device=/dev/sdb1 --vdoLogicalSize=10T
- 353 vdo create --name=vdo0 --device=/dev/sdc --vdoLogicalSize=10T
- 354 mkfs.xfs -K /dev/mapper/vdo0
- 355 cd /usr/share/doc/vdo/examples/
- 356 ls
- 357 cd systemd/
- 358 ls
- 359 vim VDO.mount.example
- 360 mv VDO.mount.example /etc/systemd/system/myvdo.mount
- 361 systemctl enable --now myvdo.mount
- 362 mount
- 363 reboot
- 364 systemctl status sshd.service
- 365 exit
- 366 history
- 367 mount | grep vdo
- 368 vim /etc/systemd/system/myvdo.mount
- 369 ./countdown 12
- 370 history | grep mkfs
- 371 systemctl status vdo
- 372 journalctl -u vdo
- 373 systemctl -t help
- 374 systemctl list-units
- 375 cd /usr/lib/systemd/system
- 376 ls
- 377 vim sshd.service
- 378 systemctl status sshd.service
- 379 kill -9 1523
- 380 systemctl status sshd.service
- 381 yum install -y vsftpd
- 382 rpm -ql vsftpd
- 383 rpm -ql vsftpd | grep systemd
- 384 systemctl status vsftpd
- 385 systemctl enable --now vsftpd
- 386 systemctl status vsftpd
- 387 systemctl list-unit-files -t target
- 388 systemctl get-default
- 389 systemctl set-default multi-user.target
- 390 systemctl set-default graphical.target
- 391 systemctl set-default multi-user.target
- 392 vim /etc/fstab
- 393 cd /run/systemd/
- 394 ls
- 395 cd generator/
- 396 ls
- 397 vim files.mount
- 398 vim /etc/fstab
- 399 systemctl daemon-reload
- 400 ls
- 401 cd ..
- 402 cd generator/
- 403 ls
- 404 cp ext4.mount /etc/systemd/system/lvdata.mount
- 405 cd /etc/systemd/system/
- 406 vim lvdata.mount
- 407 mount | grep lvdata
- 408 umount /lvdata
- 409 mount | grep lvdata
- 410 systemctl enable --now lvdata.mount
- 411 cd /etc/systemd/system/
- 412 cat myvdo.mount
- 413 vim lvdata.mount
- 414 systemctl enable --now lvdata.mount
- 415 systemctl status lvdata.mount
- 416 mount | grep lvdata
- 417 systemctl list-unit-files -t socket
- 418 systemctl cat cups.socket
- 419 systemctl cat sshd.socket
- 420 systemctl disable --now sshd.service
- 421 systemctl enable --now sshd.socket
- 422 systemctl status sshd.service
- 423 systemctl status sshd.socket
- 424 ssh localhost
- 425 systemctl status sshd.service
- 426 ssh localhost
- 427 systemctl enable cockpit.socket
- 428 systemctl start cockpit.socket
- 429 systemctl status cockpit.socket
- 430 cd
- 431 ./countdown 12
- 432 ps aux | grep nginx
- 433 ps aux | grep http
- 434 systemctl cat cockpit.service
- 435 yum install -y httpd
- 436 systemctl enable --now httpd
- 437 ps Zaux | grep http
- 438 ps Zaux | grep httpd
- 439 ls -Zl /var/www
- 440 mkdir /web
- 441 vim /web/index.html
- 442 vim /etc/httpd/conf/httpd.conf
- 443 systemctl restart httpd
- 444 curl localhost
- 445 ls -lZd /web
- 446 getenforce
- 447 vim /etc/sysconfig/selinux
- 448 curl localhost
- 449 setenforce Permissive
- 450 curl localhost
- 451 setenforce enforcing
- 452 grep AVC /var/log/audit/audit.log
- 453 grep AVC /var/log/audit/audit.log | grep http
- 454 ls -Z /var/www
- 455 man semanage-fcontext
- 456 semanage fcontext -a -t httpd_sys_content_t "/web(/.*)?"
- 457 curl localhost
- 458 cd /etc/selinux/targeted/
- 459 ls
- 460 cd contexts/
- 461 ls
- 462 cd files
- 463 ls
- 464 cat file_contexts.local
- 465 ls -Zd /web
- 466 restorecon -Rv /web
- 467 curl localhost
- 468 getenforce
- 469 man semanage-fcontext
- 470 yum search selinux
- 471 yum install selinux-policy-doc
- 472 man -k _selinux
- 473 man -k _selinux | wc
- 474 man -k _selinux | grep http
- 475 man httpd_selinux
- 476 getsebool -a | wc
- 477 getsebool -a
- 478 getsebool -a | grep ftp
- 479 setsebool -P ftpd_anon_write on
- 480 grep sealert /var/log/messages
- 481 sealert -l 286937b8-b633-4e8b-85e6-d8949797a189 | less
- 482 vim /etc/httpd/conf/httpd.conf
- 483 systemctl restart httpd
- 484 systemctl status httpd.service
- 485 journalctl | grep sealert
- 486 sealert -l f7d6f3ed-19f5-41f8-999c-67436fd83887 | less
- 487 semanage port -a -t http_port_t -p tcp 82
- 488 systemctl restart httpd
- 489 cd
- 490 vim /etc/sysconfig/selinux
- 491 semanage fcontext -l
- 492 semanage fcontext -l | wc
- 493 semanage port -l
- 494 ls -ld /web
- 495 history
- 496 ./countdown 12
- 497 vim /etc/default/grub
- 498 grub2-mkconfig -o /boot/grub2/grub.cfg
- 499 reboot
- 500 reboot
- 501 systemctl isolate graphical.target
- 502 firewall-cmd --help
- 503 firewall-cmd --get-services
- 504 firewall-cmd --list-all
- 505 firewall-cmd --add-service http
- 506 firewall-cmd --list-all
- 507 firewall-cmd --add-service http --permanent
- 508 firewall-cmd --help | grep port
- 509 firewall-cmd --add-port=82/tcp
- 510 firewall-cmd --list-all
- 511 firewall-cmd --add-port=82/tcp --permanent
- 512 firewall-cmd --list-all
- 513 firewall-cmd --reload
- 514 firewall-cmd --list-all
- 515 ssh root@192.168.29.78
- 516 showmount -e 192.168.29.78
- 517 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement