Linux Final
What is the nice value assigned to the lowest priority process?
19
What is the number top gives the lowest priority processes
39
What is the maximum number of primary partitions in an MBR configured disk?
4
The Linux kernel also includes nftables
a new filter and packet classification subsystem that has enhanced portions of netfilter's code.
What is the default ACL?
ACL applied to new files in the folder
What file stores console messages related to system startup?
/var/log/boot.log
Which of these log files stores most syslog messages, with the exception of those that are related to authentication, mail, scheduled jobs, and debugging?
/var/log/messages
Which log file stores syslog messages related to security and authentication operations in the system?
/var/log/secure
What exit code means the script/program ran successfully
0
What is the default nice value
0
Logical volumes can grow with the command lvextend
True
The location of DNS servers is in /etc/resolv.conf
True
The yum command will automatically download dependencies if they are available in the configured repositories.
True
What is the command to change a process's nice value
renice
What command changes the selinux context of a file based on the selinux policy defaults?
restorecon
How do we create a key pair for ssh logins?
ssh-keygen
Which answer sends both output and errors to a file, creating it or overwriting its contents?
&>file
If you want to only apply the execute permission to directories and not files what option is used?
-X
What is the name of the device file of an entire SATA hard drive in the /dev directory?
/dev/sda
Choose the correct name of the device file for the third partition on the second virtio-blk disk attached to a virtual machine?
/dev/vdb3
Which directory contains the shell scripts intended to run on a daily basis?
/etc/cron.daily
Which item or file represents the location of the local group information?
/etc/group
Where is the system host name configured
/etc/hostname
Which item or file represents the location of the local user account information?
/etc/passwd
Which directory contains non-persistent process runtime data?
/run
Which directory contains dynamic data, such as for databases and websites?
/var
Which Bash shortcut or command separates commands on the same line?
;
ACL on linux systems stands for:
Access Control List
What is the setsebool command used for?
Activate and deactivate SELinux policy rules
User consultant1 is in groups consultant1 and database1 User operator1 is in groups operator1 and database1 User contractor1 is in groups contractor1 and contractor3 User operator2 is in groups operator2 and contractor3 drwxrwxr-x. operator1 database1 . -rw-rw-r--. consultant1 consultant1 lfile1 -rw-r--rw-. consultant1 database1 lfile2 -rw-rw-r--. operator1 database1 rfile1 -rw-r-----. operator1 database1 rfile2 Which files can be deleted by the operator1 user?
All of the above.
Mounting a NFS export requires a different command (not just option) than mounting a local partition.
False
Once a volume grows all linux filesystems will automatically grow to use the new space
False
The automounter cannot work with wildcards when mounting NFS exports.
False
What tool does Redhat provide to manage the linux firewall?
Firewalld is a dynamic firewall manager, a front end to the nftables framework using the nft command. Until the introduction of nftables, firewalld used the iptables command to configure netfilter directly, as an improved alternative to the iptables service.
Which item represents a number that identifies the group at the most fundamental level?
GID
What is the new style Partitioning Scheme?
GPT
What line do we set to deny Root the ability to ssh directly to the host for sshd?
PermitRootLogin no
What is the normal output pipe called
STDOUT
What subsystem allows the kernel to inspect every packet traversing the system?
The Linux kernel includes netfilter.
top priority
The process's priority. The lower the number, the higher the priority. 0 is the lowest priority.
virsh
The virsh program is the main interface for managing virsh guest domains. The program can be used to create, pause, and shutdown domains.
Which command removes the deferred user job that has the job number 5?
atrm 5
Which state represents a process that has released all of its resources except its PID?
Z
Which command displays all the user jobs that are currently scheduled to run as deferred jobs?
atq
What is the proper syntax to end a for loop in bash
done
What key is used to edit an entry in the boot loader?
e
What is the proper syntax to end an if clause in bash
fi
What program would you use to view the files in /usr/share/doc?
firefox or another web browser
Which process does a parent use to create a new child process?
fork
What command shows the ACLs of a file or directory
getfacl
semanage
is used to configure certain elements of SELinux policy without requiring modification to or recompilation from policy sources.
What is the command to see the manual page for chmod
man chmod
What command is used to add a partition to the file tree?
mount
What command can we use to get detailed easily readable information about an selinux event?
sealert
As well as the linux firewall what can be used to manage ports open by services?
selinux
How do we temporarily turn off SELinx
setenforce 0
What filesystem type is used for linux swap partions
swap
What is the command to prevent a service from being started?
systemctl mask <service>
What is the command to start a service?
systemctl start <service>
Which systemd unit regularly triggers the cleanup of the temporary files?
systemd-tmpfiles-clean.timer
rpm2cpio
takes an RPM package file and converts it to a cpio archive.
tar -x option
tells tar to extract the files.
To navigate to the previous directory (or back)
use "cd -"
Which two tools can you use to start and stop your virtual machines on a Red Hat Enterprise Linux system? (Choose two.)
virsh and Web Console
What option is used to compress a file archive with tar
z
Which Bash shortcut or command re-executes a specific command in the history list?
!number
Which Bash shortcut or command is used to re-execute a recent command by matching the command name?
!string
What is the nice value assigned to the highest priority process?
-20
Physical volumes in the context of LVM means the actual hard drive that the data is on.
False
Rsync does a bidirectional sync
False
There are no commands to analyze VDO volumes.
False
LVM logical volumes and file systems, are placed on top of a VDO device
True
Logical volumes can be formatted with a file system or swap space, and they can be mounted persistently
True
NFS exports can be automatically mounted at startup
True
NFS shares configured in the automounter are available to all users on the machine, subject to access permissions.
True
The Virtual Data Optimizer attempts to reduce disk space used on a block device.
True
The command systemctl isolate target-name.target switches to a new target at runtime.
True
The commands systemctl get-default and systemctl set-default can be used to query and set the default target.
True
The commands systemctl reboot and systemctl poweroff reboot and power down a system, respectively.
True
VDO is very useful for hosts being used primarily for Virtual Machines
True
You can use the swapon command to activate a formatted swap space.
True
The system has four users assigned to the following groups: User consultant1 is in groups consultant1 and database1 User operator1 is in groups operator1 and database1 User contractor1 is in groups contractor1 and contractor3 User operator2 is in groups operator2 and contractor3 The current directory (.) contains four files with the following permissions information: drwxrwxr-x. operator1 database1 . -rw-rw-r--. consultant1 consultant1 lfile1 -rw-r--rw-. consultant1 database1 lfile2 -rw-rw-r--. operator1 database1 rfile1 -rw-r-----. operator1 database1 rfile2 Which file can be modified by the contractor1 user?
lfile2
What do we add on the kernel command line to interrupt the boot process before control is handed over from the initramfs. The root file system is mounted read-only under /sysroot
rd.break