Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SETTING UP NFS SERVER
- [root@nfsserver ~]# history
- 1 hostnamectl --help
- 2 hostnamectl set-hostname nfsserver.example.com
- 3 mkdir /data
- 4 mkdir /home/ldap/ldapuser1
- 5 mkdir /home/ldap/ldapuser1 -p
- 6 mkdir /home/ldap/ldapuser2 -p
- 7 mkdir /home/ldap/ldapuser3 -p
- 8 exit
- 9 vim /etc/exports
- 10 systemctl enable --now nfs-server
- 11 systemctl status nfs-server
- 12 firewall-cmd --get-services
- 13 firewall-cmd --add-service mountd
- 14 firewall-cmd --add-service rpc-bind
- 15 firewall-cmd --add-service nfs
- 16 firewall-cmd --add-service nfs --permanent
- 17 firewall-cmd --add-service rpc-bind --permanent
- 18 firewall-cmd --add-service mountd
- 19 firewall-cmd --add-service mountd --permanent
- 20 history
- [root@nfsserver ~]# cat /etc/exports
- /data *(no_root_squash,rw)
- /home/ldap *(no_root_squash,rw)
- AUTOFS STUFF
- [root@server2 ldapuser1]# grep '^/' /etc/auto.master
- /misc /etc/auto.misc
- /files /etc/auto.files
- /home/ldap /etc/auto.ldap
- /net -hosts
- [root@server2 ldapuser1]# cat /etc/auto.files
- data -rw 192.168.4.157:/data
- [root@server2 ldapuser1]# cat /etc/auto.ldap
- * -rw 192.168.4.157:/home/ldap/&
- DAY 4 HISTORY
- 432 history
- 433 sleep 20; countdown 12
- 434 history
- 435 man semanage
- 436 ls -lZ /var/www
- 437 man semanage-fcontext
- 438 semanage fcontext -a -t httpd_sys_content_t "/web(/.*)?"
- 439 ls -lZd /web
- 440 restorecon -Rv /web
- 441 getenforce
- 442 curl http://localhost
- 443 man semanage-port
- 444 getsebool -a
- 445 getsebool -a | wc
- 446 getsebool -a | grep ftp
- 447 setsebool -P ftpd_anon_write on
- 448 systemctl status httpd
- 449 systemctl status httpd -l
- 450 systemctl status -l httpd
- 451 setenforce 0
- 452 systemctl start httpd
- 453 systemctl status httpd
- 454 grep sealert /var/log/messages
- 455 sealert -l 74f98838-27de-42a8-bea8-22d84df69951 | less
- 456 semanage port -a -t http_port_t -p tcp 82
- 457 getenforce
- 458 setenforce enforcing
- 459 systemctl restart httpd
- 460 systemctl status httpd
- 461 history
- 462 reboot
- 463 history
- 464 cd /etc/selinux/targeted/contexts/files/
- 465 ls
- 466 cat file_contexts.local
- 467 history
- 468 cat /etc/fstab
- 469 poweroff
- 470 yum install -y stratis-cli stratisd
- 471 systemctl enable --now stratisd
- 472 lsblk
- 473 gdisk /dev/sdb
- 474 stratis pool create mypool /dev/sdb1
- 475 stratis pool list
- 476 stratis filesystem create mypool myfs1
- 477 stratis filesystem list
- 478 stratis pool add-data mypool /dev/sdb2
- 479 stratis pool list
- 480 stratis filesystem create mypool myfs2
- 481 stratis fs list
- 482 blkid
- 483 mkdir /myfs1
- 484 mkdir /myfs2
- 485 vim /etc/fstab
- 486 mount -a
- 487 df -h
- 488 stratis pool list
- 489 stratis fs list
- 490 lsblk -fs
- 491 history
- 492 systemctl get-default
- 493 systemctl set-default multi-user.target
- 494 systemctl reboot
- 495 systemctl list-units
- 496 mount
- 497 mount -o remount,rw /
- 498 systemctl start rescue.target
- 499 systemctl list-units
- 500 systemctl reboot
- 501 systemctl set-default graphical.target
- 502 systemctl reboot
- 503 vim /etc/default/grub
- 504 grub2-mkconfig -o /boot/grub2/grub.cfg
- 505 reboot
- 506 systemctl -t help
- 507 systemctl status httpd
- 508 systemctl start httpd
- 509 systemctl status httpd
- 510 systemctl stop httpd
- 511 systemctl enable --now httpd
- 512 systemctl status httpd
- 513 journalctl
- 514 cd /var/log/
- 515 ls -l
- 516 less messages
- 517 pwd
- 518 mkdir journal
- 519 poweroff
- 520 man vdo
- 521 vdo create --name=vdo0 --device=/dev/sdc --vdoLogicalSize=10T
- 522 mkfs.xfs -K /dev/mapper/vdo0
- 523 cd /usr/share/doc/
- 524 ls
- 525 cd vdo/
- 526 ls
- 527 cd examples/
- 528 ls
- 529 cd systemd/
- 530 ls
- 531 cat /etc/fstab
- 532 cd /run/systemd/generator/
- 533 ls
- 534 vim myfiles.mount
- 535 history
- 536 cd /usr/share/doc/vdo/examples/systemd/
- 537 cat VDO.mount.example
- 538 cp VDO.mount.example /etc/systemd/system/myvdo.mount
- 539 vim /etc/systemd/system/myvdo.mount
- 540 mkdir /myvdo
- 541 systemctl daemon-reload
- 542 systemctl status myvdo.mount
- 543 systemctl enable --now myvdo.mount
- 544 systemctl status myvdo.mount
- 545 mount | grep vdo
- 546 history
- 547 systemctl cat sshd.service
- 548 ps aux | grep ssh
- 549 kill -9 1288
- 550 ps aux | grep ssh
- 551 systemctl status sshd
- 552 cd /usr/lib/systemd/system
- 553 ls *.service
- 554 vim tuned.service
- 555 systemctl status sshd
- 556 reboot
- 557 countdown 12
- 558 systemctl status firewalld
- 559 firewall-cmd --list-all
- 560 systemctl --get-services
- 561 systemctl --get-service
- 562 firewall-cmd --get-services
- 563 firewall-cmd --add-service http
- 564 firewall-cmd --add-service http --permanent
- 565 firewall-cmd --help | grep port
- 566 firewall-cmd --add-port=82/tcp
- 567 firewall-cmd --add-port=82/tcp --permanent
- 568 firewall-cmd --list-all
- 569 history
- 570 showmount -e 192.168.4.157
- 571 mount 192.168.4.157:/data /mnt
- 572 mount
- 573 umount /mnt
- 574 vim /etc/fstab
- 575 mount -a
- 576 mkdir /nfsdata
- 577 mount -a
- 578 mount
- 579 vim /etc/fstab
- 580 yum install -y autofs
- 581 cd /etc
- 582 ls auto*
- 583 vim auto.master
- 584 vim auto.misc
- 585 ls /
- 586 vim auto.master
- 587 vim auto.files
- 588 systemctl restart autofs
- 589 ls /
- 590 cd /files
- 591 ls -a
- 592 cd data
- 593 pwd
- 594 cat /etc/auto.files
- 595 vim /etc/auto.master
- 596 vim /etc/auto.ldap
- 597 ls /home
- 598 systemctl restart autofs
- 599 ls /home
- 600 cd ldap
- 601 cd /home/ldap
- 602 cd ldapuser1
- 603 pwd
- 604 cat /etc/auto.master
- 605 grep '^/' /etc/auto.master
- 606 cat /etc/auto.files
- 607 cat /etc/auto.ldap
- 608 countdown 47
- 609 cd
- 610 ln -s /etc/hosts /tmp/myhosts
- 611 vim /etc/login.defs
- 612 chage -l bob
- 613 chage bob
- 614 cd /etc/skel
- 615 ls -la
- 616 touch hello
- 617 useradd bill
- 618 chage -l bill
- 619 ls -la /home/bill
- 620 cd
- 621 find / -size +100M
- 622 find / -size +100M >/tmp/bigfile
- 623 vgs
- 624 fdisk /dev/sda
- 625 vgcreate vg500 /dev/sda10
- 626 vgs
- 627 lvcreate -n lv500 -L 500M vg500
- 628 mkfs.ext3 --help
- 629 mkfs.ext3 -L myvolume /dev/vg500/lv500
- 630 mkdir /myvol
- 631 vim /etc/fstab
- 632 mount -a
- 633 mount
- 634 #reboot
- 635 yum provides */sealert
- 636 useradd -G profs anna
- 637 mkdir /lvdata/profs
- 638 cd /lvdata/
- 639 ls -l
- 640 chown anna:profs profs/
- 641 ls -l
- 642 chmod 1770 profs/
- 643 ls -l
- 644 logger HELLO
- 645 tail /var/log/messages
- 646 systemctl status crond
- 647 crontab -e
- 648 tail -f /var/log/messages
- 649 crontab -e
- 650 man -k dhcp | grep 8
- 651 yum search dhcp
- 652 history
Add Comment
Please, Sign In to add comment