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