































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
































After initiating the creation of a new partition, what are the partition types and corresponding keys to enter in order to create them? - ANS-p - primary l - logical e - extended As the root user, what command would you execute to display the home directory for the "sphincter2000" user? - ANS-echo ~sphincter How much memory does RHEL7 support on a single host? - ANS-3TB In what directory can example DNS configuration files be found? - ANS-/usr/share/doc/bind-*/sample/etc In what directory is the database that commands such as whatis and apropos utilize for man page information? - ANS-/var/cache/man In what order are bash initialization files loaded? - ANS-/etc/profile, ∼/.bash_profile, ∼/.bashrc, and /etc/bashrc. The subdirectory that contains journal logs is named after the hosts 128-bit machine ID, which is stored in what file? - ANS-/etc/machine-id True or false, hard symbolic links can traverse across different filesystems? - ANS- False, only symbolic links can cross different filesystems True or false, one must uncompress a g'zipped file before viewing it with the "less" utility? - ANS-False. Less is able to directly view a g'zipped file. True or false, you can shrink an XFS filesystem - ANS-False, you cannot shrink an XFS filesystem True or false, you must specify the "acl" mount option when you desire to use ACL's on an XFS filesystem? - ANS-False, XFS supports ACL's by default wget placeholder - ANS- What actions would you perform in order to reset the root password on a RHEL system? - ANS-- Append "rd.break" to the respective kernel entry in GRUB
swap - Manages swap devices or files for memory paging target - Manages target units of systemd, which are used for grouping units and as well- known synchronization points during start-up path - Manages paths monitored by systemd, for path-based activation timer - Manages timers controlled and supervised by systemd, for timer-based activation snapshot - Snapshot units are not configured via unit configuration files, rather they store the current state of all units and can be restored at a later date. slice - Can be used to group units and hierarchially manages resources of a group of processes scope - Scope units are not configured via unit configuration files, rather are created programmatically using the bus interfaces of systemd, and manage a group of system processes What are two types of virtual network switch configuations that are supported by libvirt?
What command would you execute to (A) Fill partition /dev/sdb1 with random data? (B) Test 10240 blocks at a time? (C) Display the progress of the command? (D) Do so with a "random" test pattern? and (E) Produce verbose output? - ANS-badblocks -c 10240 -s -t random -v -w /dev/sdb What command would you execute to activate all partitions that are marked as "swap" in /etc/fstab? - ANS-swapon -a What command would you execute to activate network interface bond2? - ANS-ifup bond What command would you execute to add 200G to the logical volume "lvShelvey" within the "vgTree" volume group? - ANS-lvextend -L +200G /dev/vgTree/lvShelvey What command would you execute to add a connection named "con_artist" associated with interface eno16777736 with an IPv4 address of 10.19.1.2 and a subnet mask of 255.255.192.0 using the Network Manager CLI? - ANS-nmcli con add con-name con- artist ifname eno16777736 type ethernet ip4 10.19.1.2/ What command would you execute to add a permanent rule to the firewall to allow FTP traffic to pass through? - ANS-firewall-cmd --permanent --add-service=ftp && firewall- cmd --reload What command would you execute to add an entry for host "tpformybhole" and MAC address 12:34:56:78:90:AA to the ARP cache? - ANS-arp -s tpformybhole 12:34:56:78:90:AA What command would you execute to add physical volume /dev/sdc2 to the vgFiji volume group? - ANS-vgextend vgFiji /dev/sdc What command would you execute to add the blumpkie.pie.net-virt.img disk image to the blumpkin.pie.net host as disk vdc and ensure that it's persistent? - ANS-virsh attach- disk blumpkin.pie.net --source blumpkin.pie.net-virt.img --target vdc --persistent What command would you execute to add the files "thing1" and "thing2" to the existing tar archive "feline_in_a_fedora.tar", while preserving their ownership/permissions and with verbose output? - ANS-tar -rpvf feline_in_a_fedora.tar thing1 thing What command would you execute to all Systemd units, both active and inactive? - ANS-systemctl --all What command would you execute to append the files "flippety.txt" and "floppety.conf" to the existing tar archive file "hippety_hoppety.tar" only if the files are newer than the ones already present in the archive? - ANS-tar -uvf hippety_hoppety.tar flippety.txt floppety.txt
What command would you execute to create a new virtual network from a definition contained within the file /home/stanky/rhcsa7.xml? - ANS-virsh net-define /home/stanky/rhcsa7.xml What command would you execute to create a tar archive named "lickety.tar" containing the file "split.aar" and ensuring to not preserve extended file attributes as well as ownership/permissions? - ANS-tar --no-xattrs -cf lickety.tar split.aar What command would you execute to create a tar archive named "pit.tar" containing the file "sticky.jar" and preserve SELinux context as well as ownership/permissions? - ANS- tar --selinux -cpf pit.tar sticky.jar What command would you execute to create a volume group named vgBeeGees that consists of physical volumes /dev/sdb2 and /dev/sdb3? - ANS-vgcreate vgBeeGees /dev/sdb2 /dev/sdb What command would you execute to create a volume named rhcsa7_vol with a size of 25G within a storage pool named rhcsa7_pool? - ANS-virsh vol-create-as rhcsa7_pool rhcsa7_vol 25G What command would you execute to create physical volumes from partitions /dev/sdb and /dev/sdb3? - ANS-pvcreate /dev/sdb2 /dev/sdb What command would you execute to create virtual machines and install RHEL in them? - ANS-virt-install What command would you execute to deactivate swap on the /dev/vgKeyParty/lvswap_partners volume with verbose output? - ANS-swapoff -v /dev/vgKeyParty/lvswap_partners What command would you execute to define a new storage pool as type "dir" with a source path of "- - - -" and a target path of the /var/lib/libvrirt/rhcsa7_pool directory? - ANS-virsh pool-define-as rhcsa7_pool dir - - - - /var/lib/libvirt/rhcsa7_pool What command would you execute to delete the physical volumes /dev/sdc and /dev/sdd2? - ANS-pvremove /dev/sdc /dev/sdd What command would you execute to determine if the ntpd package is installed on your system? - ANS-rpm -q ntp What command would you execute to disable autostart of the KVM virtual machine no.mo.autostart? - ANS-virsh autostart --disable no.mo.autostart What command would you execute to disable the Apache service? - ANS-systemctl disable httpd
What command would you execute to display a list of present virtual networks? - ANS- virsh net-list What command would you execute to display a summary of all installed and available package groups from configured Yum repositories? - ANS-yum group summary What command would you execute to display all available or specified block devices on a system? - ANS-lsblk What command would you execute to display all backup superblocks for the /dev/vgNeedy/lvTwelve? - ANS-dumpe2fs /dev/vgNeedy/lvTwelve | grep -i 'superblock' What command would you execute to display all configuration files within the rsyslog package? - ANS-rpm -qc rsyslog What command would you execute to display all dependencies for the quota package? - ANS-rpm -qR quota What command would you execute to display all documentation files within the NetworkManager package? - ANS-rpm -qd NetworkManager What command would you execute to display all existent storage pools? - ANS-virsh pool-list What command would you execute to display all journal error messages that occurred between 11/15/2015 and 11/15/2015? - ANS-journalctl --since 2015-11-15 --until 2015- 11-16 -p err What command would you execute to display all journal log messages from the previous boot? - ANS-journalctl -b - What command would you execute to display all journal log messages in verbose format? - ANS-journalctl -o verbose What command would you execute to display all journal warning messages that have been generated today? - ANS-journalctl --since=today -p warning What command would you execute to display all LVM Volume Groups as well as the Logical Volumes and Physical Volumes that are within them? - ANS-vgdisplay -v What command would you execute to display all mounted cgroup filesystems in tree form? - ANS-findmnt -t cgroup What command would you execute to display all packages, both installed and available for installation from all configured Yum repositories? - ANS-yum list
What command would you execute to display information about PCI buses and the devices attached to them with the most verbose output possible? - ANS-lspci -vvv What command would you execute to display information about the ncurses package file located at /home/nutter/mutter-3.8.4-16.el7.x86_64.rpm? - ANS-rpm -qip /home/nutter/mutter-3.8.4-16.el7.x86_64.rpm What command would you execute to display information about the ncurses package? - ANS-rpm -qi ncurses What command would you execute to display only kernel-generated journal messages?
What command would you execute to display the hostname and other pertinent information? - ANS-hostnamectl What command would you execute to display the last twenty Yum transactions? - ANS- yum history What command would you execute to display the physical extent size used on vgBeeGees? - ANS-vgdisplay vgBeeGees | grep 'PE Size' What command would you execute to display the terminal name we are currently logged on to? - ANS-tty What command would you execute to display the total amount of time that the last boot process had taken? - ANS-systemd-analyze What command would you execute to display the umask in symbolic notation? - ANS- umask -S What command would you execute to display virtual memory statistics in a table format? - ANS-vmstat -s What command would you execute to display virtual memory statistics? - ANS-vmstat What command would you execute to display which package contains the file /etc/sysconfig/sshd? - ANS-rpm -qf /etc/sysconfig/sshd What command would you execute to display your last working directory? - ANS-echo ~- What command would you execute to download the zsh package if available from a configured Yum repository and save it in the /var/plump_package? - ANS- yumdownloader zsh -d /var/plump_package What command would you execute to drop into a shell for managing KVM virtual machines? - ANS-virsh What command would you execute to enable password shadowing at the group level if it wasn't already enabled? - ANS-grpconv What command would you execute to enable password shadowing if it wasn't already enabled? - ANS-pwconv What command would you execute to extract all files from the zip-3.0- 10.el7.x86_64.rpm file in your current working directory while creating all directories as needed? - ANS-rpm2cpio zip-3.0-10.el7.x86_64.rpm | cpio -id
What command would you execute to install the "Infrastructure Server" package group?
What command would you execute to launch a network configuration GUI? - ANS-nm- connection-editor What command would you execute to launch a network configuration TUI? - ANS- system-config-network What command would you execute to launch the Disk Utility application? - ANS- palimpset What command would you execute to launch the graphical Disk Utility application? - ANS-gnome-disks What command would you execute to launch the graphical Kickstart Configurator and load the /root/anaconda-ks.cfg file? - ANS-system-config-kickstart /root/anaconda-ks.cfg What command would you execute to launch the graphical utility for management of virtual machines? - ANS-virt-manager What command would you execute to launch the Network Manager Text UI? - ANS- nmtui What command would you execute to list ACL information for the /home/is/where/you/make/it file without header information? - ANS-getfacl -c /home/is/where/you/make/it What command would you execute to list ACL information for the /home/is/where/you/make/it file? - ANS-getfacl /home/is/where/you/make/it What command would you execute to list all active Systemd units? - ANS-systemctl What command would you execute to list all files within the python package? - ANS-rpm -ql python What command would you execute to list all installed and available package groups from configured Yum repositories? - ANS-yum group list What command would you execute to list all installed packages that are eligible for an update? - ANS-yum list updates What command would you execute to list all installed packages that start with the string "sssd"? - ANS-yum list installed sssd* What command would you execute to list all installed packages using the Yum utility? - ANS-yum list installed
What command would you execute to list the local KVM hypervisor's abilities? - ANS- virsh capabilities What command would you execute to list UUID's for all block devices on a system? - ANS-blkid What command would you execute to list what packages contain a file named "perl", regardless of path? - ANS-yum provides */perl What command would you execute to list what packages require the glibc package in order to function properly? - ANS-rpm -q --whatrequires glibc What command would you execute to list whether or not the php package is installed or available from any configured Yum repositories? - ANS-yum list php What command would you execute to load the kvm module? - ANS-modprobe kvm What command would you execute to log on to the /smbyeahyouknowme share on Samba server 172.16.1.19 as user "opp"? - ANS-smbclient //172.16.1.19/smbyeahyouknowme -U opp What command would you execute to manually modify the corresponding .xml file for the hostname risky.business.com? - ANS-virsh edit risky.business.com What command would you execute to map all newly created users to the SELinux user "unconfined_u"? - ANS-semanage login -m -S targeted -s "unconfined_u" -r s0- s0:c0.c1023 default What command would you execute to map all newly created users to the SELinux user "user_u"? - ANS-semanage login -m -S targeted -s "user_u" -r s0 default What command would you execute to map the Linux group "pahhhty" to the SELinux user "guest_u"? - ANS-semanage login -a -s guest_u %pahhhty What command would you execute to map the Linux user "lockdown" to the SELinux user "user_u"? - ANS-semanage login -a -s user_u lockdown What command would you execute to modify the ACL for the file /opt/no_soup_for_you so as to remove all permissions for the "loser" user? - ANS-setfacl -m u:loser:--- /opt/no_soup_for_you What command would you execute to modify the ACL for the file /tmp/ani to grant the "drummer" user read and execute permissions? - ANS-setfacl -m drummer:r-x /tmp/ani
What command would you execute to modify the ACL for the file /tmp/look_but_cant_touch to have a mask that only allows read permissions? - ANS- setfacl -m mask:r-- /tmp/look_but_cant_touch What command would you execute to mount the CentOS6.iso to the directory /mnt/centos? - ANS-mount -o loop CentOS6.iso /mnt/centos What command would you execute to only display journal messages for PID 1773? - ANS-journalctl _PID= What command would you execute to only display journal messages for the /sbin/dnsmasq executable? - ANS-journalctl dnsmasq What command would you execute to only display the last fifteen journal messages for the NetworkManager unit? - ANS-journalctl -u NetworkManager -n 15 What command would you execute to open the LUKS encrypted volume /dev/sdb3 and associate with the Device Mapper name of "luksForYuks"? - ANS-cryptsetup luksOpen /dev/sdb3 luksForYuks What command would you execute to perform a filesystem check against /dev/vgNeedy/lvTwelve and specify to use the backup superblock located at position 32768 in order to repair the primary superblock? - ANS-fsck -b 32768 /dev/vgNeedy/lvTwelve What command would you execute to perform a syntax check of /etc/rsyslog.conf? - ANS-rsyslogd -N 1 What command would you execute to perform a verification against all files within the openssh-server package? - ANS-rpm -vV openssh-server What command would you execute to permanently export all CIFS shares from SAMBA as read-only? - ANS-setsebool -P samba_export_ro= What command would you execute to power off the system? - ANS-systemctl poweroff What command would you execute to prevent the crond service from starting at system boot? - ANS-systemctl disable crond What command would you execute to prevent users from executing scripts in their home directories and/or the /tmp directory via a SELinux Boolean value? - ANS- setsebool allow_user_exec_content off What command would you execute to query all packages installed on your system? - ANS-rpm -qa
What command would you execute to remove the "vgTeaLeaf" volume group? - ANS- vgremove vgTeaLeaf What command would you execute to remove the SELinux user mapping for the Linux group "byebye"? - ANS-semanage login -d %byebye What command would you execute to remove the vdd and vde1 physical volumes from the "vgLeafy" volume group? - ANS-vgreduce vgLeafy /dev/vdd /dev/vde What command would you execute to revert /dev/vda2 from ext3 to ext2? - ANS-tune2fs ^O has_journal /dev/vda What command would you execute to route all traffic destined for 10.2.20.0 with a subnet of 255.255.255.192 to egress from network interface eth2? - ANS-ip route add - net 10.2.20.0 netmask 255.255.255.192 dev eth What command would you execute to route all traffic destined for 172.16.16.0/24 to egree from the network interface with IP 192.168.1.100? - ANS-ip route add 172.16.16.0/24 via 192.168.1. What command would you execute to run the "updatedb" command with a nice value of -2? - ANS-nice -2 updatedb What command would you execute to run the KVM virtual machine manager? - ANS- virt-manager What command would you execute to schedule an execution of the bash script /var/run/teed.sh four hours from now using the at utility? - ANS-at -f /var/run/teed.sh now + 4 hours What command would you execute to search all SELinux-related messages with the string "sshd"? - ANS-ausearch -m avc -c sshd What command would you execute to see if the rsyslog service is running? - ANS- systemctl is-active rsyslog What command would you execute to see whether or not the sshd service is enabled? - ANS-systemctl is-enabled sshd What command would you execute to set automatic start-up of the storage pool named rhcsa7_pool? - ANS-virsh pool-autostart rhcsa7_pool What command would you execute to set automatic start-up of the virtual network named rhcsa7_xml? - ANS-virsh net-autostart rhcsa7_xml
What command would you execute to set the CPUShares property for the rsyslog service to 2048?? - ANS-systemctl set-propery rsyslog CPUShares= What command would you execute to set the date "07/04/1776" after which the "clingy- barnacle" user's account would be expired? - ANS-chage -M 1776-07-04 clingy- barnacle What command would you execute to set the default systemd target to the functional equivalent of runlevel 3? - ANS-systemctl set-default multi-user What command would you execute to set the default systemd target to the functional equivalent of runlevel 5? - ANS-systemctl set-default graphical.target What command would you execute to set the hostname to i.can.has.cheezburger? - ANS-hostnamectl set-hostname i.can.has.cheezburger What command would you execute to set the system's date and time to 08:46:30 on September 11th, 2001? - ANS-timedatectl set-time "2001-09-11 08:46:30" What command would you execute to set the system's date to July 4th, 1776? - ANS- timedatectl set-time 1776-07- What command would you execute to set the system's time to 4:19 PM? - ANS- timedatectl set-time 16: What command would you execute to set the third GRUB menu entry as the default one for ensuing system boots? - ANS-grub2-set-default 2 What command would you execute to set the timezone to "Africa/Lusaka"? - ANS- timedatectl set-timezone Africa/Lusaka What command would you execute to set up a swap area on drive /dev/sdc2? - ANS- mkswap /dev/sdc What command would you execute to set up a swap area on file /tmp/wife/swap? - ANS-mkswap /tmp/wife/swap What command would you execute to set your default editor to vi? - ANS-set -o vi What command would you execute to shut down interface eno16777736 using the Network Manager CLI? - ANS-nmli con down eno What command would you execute to simply list any and all available package updates without actually taking any action? - ANS-yum check-update