Linux Exam Chp 6-8
Which assistive technology will make a desktop environment more accessible to a person with a low vision?
High Contrast
Which of the following operators reverses the meaning of a test statement?
!
Which of the following lines can be used to perform command substitution within a shell script?
'command' & $(command)
In what directory is Stage 2 of the GRUB2 boot loader stored?
/boot
Which directory stores most UNIX SysV rc scripts?
/etc/re5.d
To which directory will the test ZFS volume from the previous question be mounted by the ZFS system?
/test
Which runlevel halts the system?
0
Linux servers are typically installed in rack using rackmount server hardware.
1U
How do you indicate a comment line in a shell script?
Begin the line with #
Because stderr and stdout represent the results of a command and stdin represents the input required for a command, only stderr and stdout can be redirected to /from a file.
False
DM-MPIO can be configured to provide multiple, redundant connections to data stored on a SAN.
False
Which of the following statements is true?
GRUB needs to be installed after it has been modified.
What does &7 accomplish when entered on the line after a command?
It redirects both stderr and stdout to the same location.
When viewing the output of the lsmod command, you notice several modules that start with vmw. What does this indicate?
Linux is running as a guest operating system.
Which of the following RAID levels is not fault tolerant?
RAID 0
Which command can be used to start X Windows, the window manager, and the default desktop environment?
Startx
You attempt to perform the git command -m "added listdir function" but the command fails. What are the possible reasons for the failure?
The user performing the commit is not running the command from within the Git repo directory. The user performing the commit has not set their Git user information. No files were added to the Git index beforehand.
The sed and awk commands are filter commands commonly used to format data within a pipe.
True
UTF-8 is commonly used to provide Unicode character set support.
True
Which of the following could result in a segmentation fault (fatal signal 11) during a Fedora installation?
all of the above
Which of the following will display the message of Welcome Home if the cd/home/user1 command is successfully executed?
cd/home/user1&&echo "Welcome Home"
The current value for the home variable is displayed by which of the following commands?
echo~ & echo $home
Which command can be used to modify the default locale on the system?
export LANG=C
You have recently modified the system time using the date command. What command can you run to ensure that the same time is updated within the system BIOS?
hwclock -w
Which of the following describes a computer that is used to access an iSCSI hard disk across the network?
iSCSI initiator
Which of the following commands can be used on a modern Linux system to view hardware information that was captured at the beginning of the boot process?
journalctl -k
Which of the following commands can quickly determine whether your network hardware was detected properly following a Linux installation?
lshw -class network
Where is the /proc filesystem stored?
ram
Which construct can be used in a shell script to read stdin and place it in a variable?
read
Which of the following is not a type of RAID?
serial RAID
Which of the following Systemd commands can be used to stop a daemon called lala?
service stop lala
Ehich 2 implementations of X Windows are commonly used in Linux?
x.org & Wayland
What command can be used to create a ZFS volume called test from the space on /dev/sdb and /dev/sdc that functions like RAID level 1?
xpool create test mirror /dev/sdb /dev/sdc
Which files does the UNIX SysV init daemon reference on startup to determine the default runlevel?
/etc/inittab
Which of the following files is always executed immediately after any user logs into a Linux system and receives a BASH shell?
/etc/profile
What is the name of the directory that contains symbolic links to UNIX SysV rc scripts for runlevel 2?
/etc/rc2.d
You want to view log files to get information about a problem that occurred during a Linux installation. In which directory will you likely find the log files?
/var/log
Which of the following file descriptor number represents stdout?
1
What component of a Linux server is used to connect to a Fibre Channel SAN?
FC HBA
BTRFS filesystems do not need to be checked for errors as they are resilient to data corruption.
False
ZFS volumes are mounted at boot time from entries within /etc/fstab by default.
False
What type of redundant storage configuration is most common for hosting the operating system and applications on a server?
RAID 1
A for construct is a loop construct that processes a specifies list of objects. As a result, it is executed as long as there are remaining objects to process.
True
Both aliases and functions can be used to store commands that can be executed, but functions can also accept positional parameters.
True
What would be the effect of using the alias command to make an alias for the date command named cat in honor of your favorite pet?
When you use the cat command at the command prompt with the intention of viewing a text file, the date appears instead.
You have redirected stderr to a file called errors. You view the contents of this file afterword and notice there are six error messages. After repeating the procedure, you notice that there are only 2 error messages in the file. Why?
You did not append the standard error to the error file and as a result, it was overwritten when the command was run a second time.
Which command can you use during a system rescue to switch from the root of the Linux system installed on the hard disk?
chroot
Before a user-defined variable can be used by processes that run in subshells, that variable must be ___________.
exported
Every if construct
fi
Which of the following indicates the second MBR partition on the third hard disk drive to GRUB2?
hd2 & msdos1
The first daemon loaded on a Linux system is?
init
Which command causes the system to enter single user mode?
init1
You want to configure the runlevels that a particular upstart daemon is started in. What should you do?
modify the daemon configuration file within the /etc/init directory
What Systemd target
runlevel5 target
Which of the following commands can be used to start a UNIX SysV daemon called lala in runlevels, 1, 2, and 3?
service enable lala 123
Which command could you use to see a list of all environments an user-defined shell variables as well as their current values?
set
Which type of RAID can be entirely configured during the Linux installation process?
software RAID
When configuring a virtual hard disk file, which term refers to the feature that allows the virtual hard disk file to expand dynamically as space is requested by the guest operating system?
thin provisioning