Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@localhost ~]# history
- 1 vim countdown
- 2 chmod +x countdown
- 3 ./countdown 14
- 4 vim countdown
- 5 ./countdown 14
- 6 tar -czf /root/archive.tgz /etc
- 7 ls -l archive.tgz
- 8 file archive.tgz
- 9 tar tvf archive.tgz
- 10 history
- 11 grep -v '^$' /etc/dnsmasq.conf | sort > /var/tmp/dnslines.txt
- 12 echo $USER
- 13 useradd bob
- 14 find / -user bob
- 15 mkdir /root/userfiles ; find / -user bob -exec cp {} /root/userfiles/ \;
- 16 find / -user bob
- 17 find / -user bob -t file
- 18 find / -user bob
- 19 find / -user bob -type f
- 20 visudo
- 21 useradd lisa
- 22 passwd lisa
- 23 visudo
- 24 su - lisa
- 25 visudo
- 26 su - lisa
- 27 ls -ld /etc/sudoers.d/
- 28 ls -l /etc/sudoers.d/
- 29 vim /etc/sudoers.d/bob
- 30 visudo
- 31 man visudo
- 32 visudo
- 33 ./countdown 12
- 34 tail /etc/shadow
- 35 usermod -L bob
- 36 tail /etc/shadow
- 37 passwd --help
- 38 passwd -u bob
- 39 tail /etc/shadow
- 40 vim /etc/passwd
- 41 vim /etc/login.defs
- 42 echo $(( 99999 / 365 ))
- 43 vim /etc/login.defs
- 44 useradd --help | less
- 45 groupadd sales
- 46 usermod -aG sales student
- 47 exit
- 48 lid -g wheel
- 49 lid sales
- 50 lid -g sales
- 51 chage bob
- 52 vim /etc/login.defs
- 53 cd /etc/skel/
- 54 ls -a
- 55 echo hidem > .hiddenfile
- 56 echo hello > hellofile
- 57 ls -a
- 58 for i in anna anouk linda lisa; do useradd $i; done
- 59 tail /etc/shadow
- 60 usermod --help
- 61 usermod -s /sbin/nologin linda
- 62 usermod -s /sbin/nologin lisa
- 63 groupadd students
- 64 groupadd profs
- 65 usermod -aG profs anna
- 66 usermod -aG profs anouk
- 67 id anna
- 68 usermod -aG wheel anna
- 69 id anna
- 70 usermod -G wheel anna
- 71 id anna
- 72 history
- 73 usermod -s /bin/bash linda
- 74 usermod -s /bin/bash lisa
- 75 usermod -aG students linda
- 76 usermod -aG students lisa
- 77 cd
- 78 ./countdown 12
- 79 tail /etc/group
- 80 usermod -aG profs anna
- 81 tail /etc/group
- 82 cd
- 83 mkdir /data/profs /data/students
- 84 mkdir -p /data/profs /data/students
- 85 cd /data
- 86 ls -l
- 87 chown anna:profs profs
- 88 chgrp student students/
- 89 ls -l
- 90 chmod 770 profs
- 91 ls -l
- 92 chmod g+w,o-rx students/
- 93 ls -l
- 94 cd
- 95 chmod -x countdown
- 96 cat countdown
- 97 ./countdown
- 98 ls -l countdown
- 99 chmod +x countdown
- 100 ls -l countdown
- 101 history
- 102 cd /data/profs/
- 103 su - anna
- 104 chmod g+s .
- 105 ls -ld .
- 106 su - anna
- 107 su - anouk
- 108 chmod +t .
- 109 ls -ld .
- 110 su - anouk
- 111 su - anna
- 112 history
- 113 cd
- 114 cd /home/linda
- 115 touch rootfile
- 116 ls -l
- 117 su - linda
- 118 umask
- 119 vim /etc/bashrc
- 120 pwd
- 121 vim .bashrc
- 122 ls -a
- 123 vim .bash_profile
- 124 cd
- 125 lsblk
- 126 poweroff
- 127 lsblk
- 128 cat /proc/partitions
- 129 ./countdown 12
- 130 lsblk
- 131 fdisk /dev/sda
- 132 lsblk
- 133 mkfs.xfs /dev/sda3
- 134 mount /dev/sda3 /mnt
- 135 lsblk
- 136 mount
- 137 df -h
- 138 cd /mnt
- 139 touch hellofile
- 140 umount /mnt
- 141 lsof /mnt
- 142 cd
- 143 umount /mnt
- 144 mount /dev/sda3 /mnt
- 145 mount
- 146 mount | grep '^/'
- 147 mkdir /mountpoint
- 148 vim /etc/fstab
- 149 mount -a
- 150 findmnt --verify
- 151 reboot
- 152 fdisk /dev/sda
- 153 lsblk
- 154 mkdir /ext4 /xfs
- 155 mkfs.ext4 /dev/sda5
- 156 mkfs.xfs /dev/sda6
- 157 vim /etc/fstab
- 158 fdisk /dev/sda
- 159 reboot
- 160 cat /etc/fstab
- 161 lsblk
- 162 blkid
- 163 blkid | grep sda5 | awk '{ print $2 }'
- 164 blkid | grep sda5 | awk '{ print $2 }' >> /etc/fstab
- 165 vim fstab
- 166 vim /etc/fstab
- 167 reboot
- 168 history
- 169 cat /etc/fstab
- 170 blkid
- 171 mount | grep '^/'
- 172 xfs_admin --help
- 173 xfs_admin -L koeien /dev/sda5
- 174 umount /dev/sda5
- 175 xfs_admin -L koeien /dev/sda5
- 176 vim /etc/fstab
- 177 lsblk
- 178 fdisk /dev/sda
- 179 mkswap /dev/sda6
- 180 vim /etc/fstab
- 181 free -m
- 182 swapon -a
- 183 free -m
- 184 history
- 185 swapon -s
- 186 fdisk /dev/sda
- 187 reboot
- 188 ./countdown 1
- 189 ./countdown 13
- 190 ./countdown 12
- 191 lsblk
- 192 fdisk -l /dev/sda
- 193 echo $(( 62914559 - 54530047 ))
- 194 echo $(( 8384512 / 2 ))
- 195 df -h
- 196 ls
- 197 vim /etc/systemd/system/stress1.service
- 198 cp /etc/systemd/system/stress1.service /etc/systemd/system/stress2.service
- 199 systemctl daemon-reload
- 200 systemctl start stress1.service
- 201 systemctl start stress2.service
- 202 top
- 203 echo 0 > /sys/bus/cpu/devices/cpu1/online
- 204 top
- 205 nice --help
- 206 nice -n 10 dd if=/dev/zero of=/dev/null
- 207 nice -n 10 dd if=/dev/zero of=/dev/null &
- 208 nice -n -5 dd if=/dev/zero of=/dev/null &
- 209 top
- 210 history
- 211 sysctl -a
- 212 sysctl -a | wc
- 213 systemctl status tuned
- 214 ip a
- 215 ip addr add dev ens160 10.0.0.24/16
- 216 ip a
- 217 ifconfig
- 218 man ifconfig
- 219 ip route show
- 220 nmtui
- 221 ip a
- 222 ping nu.nl
- 223 ./countdown 12
- 224 vim /etc/bashrc
- 225 rpm -qa
- 226 rpm -qf /etc/dnsmasq.conf
- 227 rpm -qc dnsmasq
- 228 df -h
- 229 dd if=/dev/sr0 of=/rhel9.iso bs=1M
- 230 mkdir /repo
- 231 echo "/rhel9.iso /repo iso9660 defaults 0 0" >> /etc/fstab
- 232 mount -a
- 233 ls /repo
- 234 cd /repo/BaseOS/
- 235 ls
- 236 ls Packages/
- 237 ls
- 238 ls repodata/
- 239 cd ../AppStream/
- 240 ls
- 241 cd
- 242 cd /etc/yum.repos.d/
- 243 ls
- 244 vim baseos.repo
- 245 dnf repolist
- 246 vim appstream.repo
- 247 dnf repolist
- 248 vim appstream.repo
- 249 pwd
- 250 cat baseos.repo
- 251 cat appstream.repo
- 252 history | tail -15
- 253 vim baseos.repo
- 254 vim appstream.repo
- 255 dnf install nmap
- 256 vim appstream.repo
- 257 vim baseos.repo
- 258 dnf install tuned
- 259 ls *
- 260 ls
- 261 pwd
- 262 dnf list selinux*
- 263 dnf search seinfo
- 264 dnf search all seinfo
- 265 dnf provides */Containerfile
- 266 cd
- 267 dnf groups list
- 268 dnf group install "Virtualization Host"
- 269 dnf history
- 270 history
- 271 history | tail -30
- 272 history | tail -30 | head -25
- 273 cat /etc/yum.repos.d/baseos.repo
- 274 cat /etc/yum.repos.d/appstream.repo
- 275 systemctl -t help
- 276 systemctl list-units -t service
- 277 systemctl cat stress1.service
- 278 cd /etc/systemd/system/
- 279 cp stress1.service sleep.service
- 280 vim sleep.service
- 281 systemctl start sleep.service
- 282 systemctl status sleep.service
- 283 systemctl status sshd
- 284 dnf install httpd
- 285 ls -l $(which dnf) $(which yum)
- 286 systemctl status httpd
- 287 systemctl start httpd
- 288 systemctl status httpd
- 289 systemctl enable httpd
- 290 systemctl status httpd
- 291 systemctl cat sshd.service
- 292 systemctl cat httpd.service
- 293 systemctl edit httpd.service
- 294 export SYSTEMD_EDITOR=/usr/bin/vim
- 295 systemctl edit httpd.service
- 296 systemctl status httpd.service
- 297 systemctl daemon-reload
- 298 kill -9 38511
- 299 systemctl status httpd.service
- 300 vimtutor
- 301 vim .bashrc
- 302 ls -ld /etc/systemd/system /usr/lib/systemd/system
- 303 ls -ld /etc/tuned /usr/lib/tuned
- 304 systemctl show httpd.service
- 305 man systemd.directives
- 306 man systemd.unit
- 307 systemctl list-dependencies
- 308 history
- 309 systemctl mask httpd
- 310 systemctl status httpd
- 311 systemctl stop httpd
- 312 systemctl daemon-reload
- 313 systemctl stop httpd
- 314 systemctl unmask httpd
- 315 systemctl stop httpd
- 316 systemctl mask httpd
- 317 systemctl start httpd
- 318 history
- 319 journalctl
- 320 journalctl -o verbose
- 321 journalctl -xb
- 322 grep 'Storage=' /etc/systemd/journald.conf
- 323 mkdir /var/log/journal
- 324 systemctl list-unit-files journal*
- 325 systemctl list-unit-files journal
- 326 cd /var/log
- 327 mkdir journal
- 328 ls journal/
- 329 systemctl restart systemd-journal-flush.service
- 330 ls journal/
- 331 cd /etc/logrotate.d/
- 332 cd ..
- 333 vim logrotate.conf
- 334 cd
- 335 dnf install tuned
- 336 systemctl status tuned
- 337 systemctl start tuned
- 338 systemctl status tuned
- 339 tuned-adm list
- 340 tuned-adm pprofile balanced
- 341 tuned-adm profile balanced
- 342 tuned-adm list
- 343 vim /usr/lib/tuned/balanced/tuned.conf
- 344 tuned-adm profile virtual-guest
- 345 top
- 346 echo 1 > /sys/bus/cpu/devices/cpu1/online
- 347 top
- 348 lsblk
- 349 fdisk /dev/sda
- 350 pvcreate /dev/sda8
- 351 pvs
- 352 vgcreate vgdata /dev/sda8
- 353 pvs
- 354 vgs
- 355 lvcreate -n lvdata -L 500M vgdata
- 356 lvs
- 357 vgs
- 358 pvs
- 359 mkfs.ext4 /dev/vgdata/lvdata
- 360 vim /etc/fstab
- 361 mount -a
- 362 mkdir /lvdata
- 363 mount -a
- 364 mount
- 365 ls -l /dev/mapper/vgdata-lvdata /dev/vgdata/lvdata
- 366 history
- 367 vgs
- 368 vgdisplay
- 369 xxd /dev/sda8 | less
- 370 history
- 371 l
- 372 lsblk
- 373 fdisk /dev/nvme0n1
- 374 vgcreate vgfiles /dev/nvme0n1p1
- 375 lvcreate -l 255 -n lvfiles /dev/vgfiles
- 376 mkfs.ext4 /dev/vgfiles/lvfiles
- 377 df -h
- 378 lsblk
- 379 mount /dev/vgfiles/lvfiles /mnt
- 380 df -h
- 381 vgs
- 382 vgextend vgfiles /dev/nvme0n1p2
- 383 vgs
- 384 lvextend -r -l +50%FREE /dev/vgfiles/lvfiles
- 385 df -h
- 386 history
- 387 pvs
- 388 pvdisplay
- 389 echo $(( 255 * 4 ))
- 390 lvextend -r -l +100%FREE /dev/vgfiles/lvfiles
- 391 df -h
- 392 vgs
- 393 pvmove --help | less
- 394 man pvmove
- 395 pvmove /dev/nvme0n1p2
- 396 poweroff
- 397 fdisk /dev/sdb
- 398 lsblk
- 399 vgcreate vgdemo /dev/sdb1
- 400 lvcreate -L 1G -n lvdemo /dev/vgdemo
- 401 vgextend vgdemo /dev/sdb2
- 402 pvs
- 403 lvextend -L +500M /dev/vgdemo/lvdemo /dev/sdb2
- 404 pvs
- 405 mkfs.ext4 /dev/vgdemo/lvdemo
- 406 umount /mnt; mount /dev/vgdemo/lvdemo /mnt
- 407 df -h
- 408 dd if=/dev/zero of=/mnt/bigfile bs=1M count=1100
- 409 pvmove -v /dev/sdb2 /dev/sdb1
- 410 pvs
- 411 vgreduce vgdemo /dev/sdb2
- 412 history
- 413 vgdisplay vgfiles
- 414 history
- 415 dnf install stratis-cli stratisd
- 416 systemctl enable --now stratisd
- 417 fdisk /dev/sdb
- 418 stratis pool create mypool /dev/sdb3
- 419 stratis pool list
- 420 stratis pool add-data /dev/sdb4
- 421 stratis pool add-data mypool /dev/sdb4
- 422 stratis blockdev list
- 423 stratis fs create mypool myfs1
- 424 stratis fs list
- 425 stratis pool list
- 426 mkdir /myfs
- 427 lsblk --output=UUID /dev/stratis/mypool/myfs1
- 428 lsblk /dev/stratis/mypool/myfs1
- 429 blkid
- 430 stratis fs list
- 431 stratis fs list | awk '{ $NF }'
- 432 stratis fs list | awk '{ print $NF }'
- 433 stratis fs list | awk '{ print $NF }' | tail -n 1
- 434 stratis fs list | awk '{ print $NF }' | tail -n 1 >> /etc/fstab
- 435 vim /etc/fstab
- 436 mkdir /myfs
- 437 mount -a
- 438 mount
- 439 stratis fs list
- 440 df -h
- 441 ./countdown 13
- 442 systemctl list-depedendencies
- 443 systemctl list-units
- 444 reboot
- 445 mount
- 446 df -h
- 447 touch aa
- 448 mount -o remount,rw /
- 449 systemctl list-units
- 450 reboot
- 451 systemctl list-units
- 452 passwd
- 453 systemctl start graphical.target
- 454 vim /etc/default/grub
- 455 grub2-mkconfig -o /boot/grub2/grub.cfg
- 456 systemctl list-units -t target
- 457 systemctl list-unit-files -t target
- 458 systemctl cat sound.target
- 459 systemctl cat graphical.target
- 460 systemctl get-default
- 461 systemctl isolate multi-user.target
- 462 systemctl start graphical.target
- 463 vim /etc/fstab
- 464 cd /run/systemd/generator/
- 465 ls
- 466 vim mountpoint.mount
- 467 cp mountpoint.mount /etc/systemd/system/
- 468 vim /etc/fstab
- 469 systemctl daemon-reload
- 470 systemctl enable mountpoint.mount
- 471 systemctl cat sshd.service
- 472 vim /etc/systemd/system/mountpoint.mount
- 473 systemctl daemon-reload
- 474 systemctl enable mountpoint.mount
- 475 systemctl status mountpoint.mount
- 476 ls
- 477 pwd
- 478 cd ..
- 479 cd generator/
- 480 ls
- 481 cat /etc/fstab
- 482 vim myfs.mount
- 483 cd /dev/disk/
- 484 tree
- 485 blkid
- 486 vim myfs.mount
- 487 cd /run/systemd/generator/
- 488 vim myfs.mount
- 489 cp myfs.mount /etc/systemd/system
- 490 vim /etc/fstab
- 491 vim /etc/systemd/system/myfs.mount
- 492 reboot
- 493 systemctl status myfs.mount
- 494 systemctl enable myfs.mount
- 495 reboot
- 496 systemctl cat tmp.mount
- 497 ls -l /tmp; systemctl enable --now tmp.mount
- 498 ls -l /tmp
- 499 systemctl disable --now tmp.mount
- 500 history
- 501 getenforce
- 502 setenforce
- 503 setenforce disabled
- 504 ls -Z /etc
- 505 dnf install -y httpd
- 506 ls -Z /var/www
- 507 ps Zaux | grep http
- 508 systemctl enable --now httpd
- 509 systemctl unmask httpd
- 510 systemctl enable --now httpd
- 511 ps Zaux | grep ttp
- 512 vim /etc/httpd/conf/httpd.conf
- 513 mkdir /web
- 514 vim /web/index.html
- 515 systemctl restart httpd
- 516 curl localhost
- 517 getenforce
- 518 setenforce permissive
- 519 curl localhost
- 520 setenforce enforcing
- 521 vim /etc/httpd/conf/httpd.conf
- 522 systemctl restart httpd
- 523 curl localhost
- 524 setenforce permissive
- 525 curl localhost
- 526 setenforce enforcing
- 527 ps Zaux | grep http
- 528 ls -ldZ /web
- 529 grep AVC /var/log/audit/audit.log
- 530 history
- 531 ./countdown 12
- 532 getenforce
- 533 curl localhost
- 534 ls -dZ /web /var/www/html
- 535 man semanage-fcontext
- 536 semanage fcontext -a -t httpd_sys_content_t "/web(/.*)?"
- 537 ls -dZ /web /var/www/html
- 538 restorecon -Rv /web
- 539 curl localhost
- 540 cp /etc/hosts .
- 541 ls -Z /etc/hosts ./hosts
- 542 mv hosts /web/
- 543 ls -Z /web/hosts
- 544 curl http://localhost/hosts
- 545 ls -Z /web
- 546 restore -Rv /web
- 547 restorecon -Rv /web
- 548 dnf install -y selinux-policy-doc
- 549 man -k _selinux
- 550 man -k _selinux | wc
- 551 man -k _selinux | grep http
- 552 man -k _selinux
- 553 man httpd_selinux
- 554 man semanage-port
- 555 vim /etc/httpd/conf/httpd.conf
- 556 systemctl restart httpd
- 557 systemctl status httpd
- 558 systemctl stop
- 559 systemctl stop httpd
- 560 systemctl start httpd
- 561 systemctl status httpd
- 562 journalctl -u httpd
- 563 man semanage-port
- 564 semanage port -a -t http_port_t -p tcp 82
- 565 systemctl restart httpd
- 566 systemctl status httpd
- 567 semanage boolean -l -C
- 568 getsebool -a | grep ftp
- 569 setsebool -P ftpd_anon_write on
- 570 getsebool -a | grep ftp
- 571 dnf provides */sealart
- 572 dnf provides */sealert
- 573 journalctl | grep sealert
- 574 sealert -l d88f91a8-dc46-4a21-bc8f-be814360abb3 | less
- 575 journalctl | grep sealert
- 576 sealert -l d320c3e4-aa80-43fb-a4f4-1f22a0c604a0 | less
- 577 journalctl | grep sealert
- 578 journalctl | grep sealert | tail -1
- 579 journalctl | grep sealert | tail -1 | awk '{ print $NF }'
- 580 sealert -l $(journalctl | grep sealert | tail -1 | awk '{ print $NF }')
- 581 sealert -l $(journalctl | grep sealert | tail -1 | awk '{ print $NF }') | less
- 582 history
- 583 timedatectl show
- 584 timedatectl status
- 585 timedatectl ntp-servers -h
- 586 man timedatectl
- 587 systemctl status chrony
- 588 systemctl status chronyd.service
- 589 vim /etc/chrony.conf
- 590 systemctl restart chronyd.service
- 591 chronyc sources
- 592 history
- 593 timedatectl --help
- 594 man timedatectl
- 595 ip a
- 596 vim /etc/hosts
- 597 ping nfsserver
- 598 showmount -e nfsserver
- 599 dnf install -y nfs-utils
- 600 showmount -e nfsserver
- 601 mount nfsserver:/nfsdata /mnt
- 602 mount
- 603 umount /mnt
- 604 history
- 605 dnf install -y autofs
- 606 vim /etc/auto.master
- 607 vim /etc/auto.misc
- 608 vim /etc/auto.master
- 609 vim /etc/auto.nfsdata
- 610 ls /
- 611 systemctl enable --now autofs
- 612 ls /
- 613 cd /nfsdata
- 614 ls -a
- 615 cd files
- 616 mount
- 617 vim /etc/auto.master
- 618 vim /etc/auto.ldap
- 619 systemctl restart autofs
- 620 cd /home/ldap/
- 621 ls -a
- 622 cd ldapuser1
- 623 cd ../ldapuser2
- 624 cd ..
- 625 ls
- 626 history
- 627 firewall-cmd --list-all
- 628 firewall-cmd --get-services
- 629 firewall-cmd --add-service kibana --permanent
- 630 firewall-cmd --list-all
- 631 firewall-cmd --reload
- 632 firewall-cmd --list-all
- 633 cd /usr/lib/firewalld/
- 634 ls
- 635 cd services/
- 636 ls
- 637 vim quassel.xml
- 638 cp quassel.xml /etc/firewalld/services/sander.xml
- 639 firewall-cmd --get-services | grep sander
- 640 systemctl restart firewalld
- 641 firewall-cmd --get-services | grep sander
- 642 man timedatectl
- 643 systemctl status crond
- 644 ls /etc/cron*/*
- 645 ls /etc/cron*
- 646 systemctl list-units -t timer
- 647 systemctl list-units logrotate*
- 648 cd /usr/lib/systemd/system
- 649 ls logro*
- 650 systemctl cat logrotate.timer
- 651 systemctl cat logrotate.service
- 652 systemctl status logrotate.service
- 653 man systemd.directives
- 654 systemctl list-units -t timer
- 655 systemctl list-unit-files logorotate*
- 656 systemctl list-unit-files logrotate*
- 657 dnf install -y sysstat
- 658 systemctl list-unit-files sysstat*
- 659 systemctl cat sysstat-collect.timer
- 660 cat /etc/crontab
- 661 su - linda
- 662 sync
- 663 reboot
- 664 podman ps
- 665 podman stop sleepy
- 666 podman ps
- 667 podman stop 752
- 668 exit
- 669 cd /
- 670 ls -a
- 671 cd
- 672 ./countdown 14
- 673 dnf install container-tools
- 674 cd /etc/containers/
- 675 ls
- 676 vim registries.conf
- 677 history
- 678 cd
- 679 git clone https://github.com/sandervanvugt/rhcsa
- 680 dnf install -y git
- 681 git clone https://github.com/sandervanvugt/rhcsa
- 682 cd rhcsa/
- 683 ls
- 684 vim Containerfile
- 685 podman images
- 686 podman info
- 687 podman login registry.access.redhat.com
- 688 podman build -t mymap .
- 689 vim Containerfile
- 690 podman build -t mymap .
- 691 podman images
- 692 history
- 693 ls
- 694 vim Containerfile
- 695 podman search ubi
- 696 podman run --name sleepy docker.io/redhat/ubi9 sleep 3601
- 697 podman images
- 698 podman run -d --name sleepy docker.io/redhat/ubi9 sleep 3601
- 699 podman ps -a
- 700 podman rm 873b
- 701 podman run -d --name sleepy docker.io/redhat/ubi9 sleep 3601
- 702 podman ps
- 703 podman inspect sleepy | less
- 704 podman images
- 705 podman inspect c1f2
- 706 podman inspect c1f2 | less
- 707 podman run c1f2
- 708 podman ps
- 709 podman ps -a
- 710 podman run -d mariadb
- 711 podman ps
- 712 podman ps -a
- 713 podman logs pedantic_heyrovsky
- 714 ./countdown 12
- 715 podman run --name mydb quay.io/centos7/mariadb-103-centos7
- 716 podman ps -a
- 717 podman logs 442c
- 718 skopea inspect docker://quay.io/centos7/mariadb-103-centos7
- 719 skopeo inspect docker://quay.io/centos7/mariadb-103-centos7
- 720 podman rm mydb
- 721 podman run --name mydb quay.io/centos7/mariadb-103-centos7 -e MYSQL_ROOT_PASSWORD=password
- 722 podman run --name mydb -e MYSQL_ROOT_PASSWORD=password quay.io/centos7/mariadb-103-centos7
- 723 podman rm mydb
- 724 podman run --name mydb -e MYSQL_ROOT_PASSWORD=password quay.io/centos7/mariadb-103-centos7
- 725 ./countdown 12
- 726 exit
- 727 ps faux | less
- 728 history
- 729 su - linda
- 730 history
- ######
- student commands
- ######
- [student@localhost ~]$ history
- 1 history
- 2 id
- 3 exit
- 4 sudo -i
- 5 id
- 6 history
- 7 who
- 8 ls
- 9 history
- 10 newgrp sales
- 11 id
- 12 sudo -i
- 13 while true; do true; done
- 14 sudo -i
- 15 ssh student@nfsserver
- 16 sudo -i
- 17 podman login registry.access.redhat.com
- 18 podman run -d -p 80:80 registry.access.redhat.com/ubi9/nginx-120
- 19 podman run -d -p 8080:80 registry.access.redhat.com/ubi9/nginx-120
- 20 podman port -a
- 21 podman ps -a
- 22 podman port
- 23 podman ps
- 24 podman search mariadb | grep quay
- 25 podman ps -a
- 26 podman run -d --name mydb -e MYSQL_ROOT_PASSWORD=password quay.io/centos7/mariadb-103-centos7
- 27 podman exec mydb grep mysql /etc/passwd
- 28 podman images
- 29 podman inspect quay.io/centos7/mariadb-103-centos7:latest | less
- 30 mkdir mydb
- 31 ls -ld mydb/
- 32 podman unshare chown 27:27 mydb
- 33 ls -ld mydb/
- 34 podman unshare ls -ld mydb/
- 35 podman stop mydb
- 36 podman rm mydb
- 37 podman run -d --name mydb -e MYSQL_ROOT_PASSWORD=password -v /home/student/mydb:/var/lib/mysql:Z quay.io/centos7/mariadb-103-centos7
- 38 podman ps
- 39 ls -Z /home/student/
- 40 ls -Zld mydb/
- 41 ls -Zl mydb/
- 42 history
- 43 cat /proc**
- 44 podman unshare cat /proc/self/uid_map
- 45 history
- 46 ls
- 47 exit
- 48 sudo -i
- 49 history
- 50 exit
- 51 history
- 52 exit
- 53 sudo -i
- 54 history
- ######
- Linda commands
- ######
- [linda@localhost ~]$ history
- 1 ls -l
- 2 rm -f rootfile
- 3 ls -ld .
- 4 mkdir hhhh
- 5 ls -ld .
- 6 umask
- 7 exit
- 8 crontab -e
- 9 exit
- 10 mkdir -p .config/systemd/user
- 11 cd .config/systemd/user
- 12 podman run -d --name mynginx --files --new
- 13 podman run -d --name mynginx -p 8081:80 nginx
- 14 podman ps
- 15 podman generate systemd --name mynginx --files --new
- 16 vim container-mynginx.service
- 17 systemctl --user daemon-reload
- 18 systemctl --user enable container-mynginx.service
- 19 systemctl --user status container-mynginx.service
- 20 exit
- 21 history
- 22 curl http://localhost:8081
- 23 exit
- 24 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement