Session ID: 124
Mode: mock_exam
Status: in_progress
Score: 0%
Filter: All | Incorrect | Flagged | Unanswered
Current filter: Unanswered
Which command can be used with yum to check for updates for all packages in the system?
Status: Unanswered
Your Answer:
Options:
Explanation:
To check for updates for all packages, use yum check-update [1].
Which command lists the shared libraries required by an executable file?
Status: Unanswered
Your Answer:
Accepted Answer(s):
ldd
Explanation:
ldd is the standard tool for listing dynamic library dependencies. This comes from standard Linux knowledge because the lesson detail is not present in the provided context [1][2].
Which key sequence typically recalls the previous command from shell history?
Status: Unanswered
Your Answer:
Options:
Explanation:
The objective includes using and editing command history. Recalling previous commands with the arrow keys is standard shell behavior [1][2].
Enter the command that sends the string 'scale=6; 1/3' to bc using a Here string.
Status: Unanswered
Your Answer:
Accepted Answer(s):
bc <<< 'scale=6; 1/3'
bc <<< "scale=6; 1/3"
Explanation:
The material asks this as an explorational exercise on Here strings; the command shown here is the standard Linux shell solution consistent with the lesson scope [1].
Which command is used to view the amount of disk space in use on a filesystem?
Status: Unanswered
Your Answer:
Options:
Explanation:
The summary states that du is used to view the amount of disk space in use on a filesystem [1].
Enter a locate command that finds files containing both the pattern report and either updated, update or updating in their names.
Status: Unanswered
Your Answer:
Accepted Answer(s):
locate report | grep -E 'update|updated|updating'
locate -r 'report.*(update|updated|updating)|(update|updated|updating).*report'
Explanation:
This guided exercise is from Objective 104.7. The exact answer is not shown in the provided excerpt, so these are standard valid approaches based on locate usage and regular expressions within the lesson scope [1].
Which command updates the local package index from configured APT repositories?
Status: Unanswered
Your Answer:
Options:
Explanation:
apt-get update updates the local package index to match what is available in the configured repositories [1].
Which pair of commands is used to compress and decompress files with bzip2 format?
Status: Unanswered
Your Answer:
Options:
Explanation:
The objective's partial list explicitly includes bzip2 and bunzip2 [1].
Which PIDs had real-time priorities in the provided top exercise output?
Status: Unanswered
Your Answer:
Accepted Answer(s):
12 and 16
12, 16
Explanation:
The guided exercise answer identifies PIDs 12 and 16 as the real-time processes [1].
Linux file permissions are organized into how many basic permission sets?
Status: Unanswered
Your Answer:
Options:
Explanation:
Linux uses a three-level permissions system: one set for the owner, one for the group, and one for everyone else [1].
Enter the grep command that lists /etc/services while discarding all lines that begin with #.
Status: Unanswered
Your Answer:
Accepted Answer(s):
grep -v ^# /etc/services
Explanation:
The guided exercise answer gives grep -v ^# /etc/services [1].
Name the two standard Linux commands used to inspect PCI and USB hardware devices.
Status: Unanswered
Your Answer:
Accepted Answer(s):
lspci and lsusb
lsusb and lspci
lspci; lsusb
Explanation:
The summary lists lspci and lsusb as commands used to inspect detected hardware [1].
Which command shows all available repositories using dnf?
Status: Unanswered
Your Answer:
Options:
Explanation:
To get a list of all available repositories, use dnf repolist [1].
If a disk has about 1 GB total unallocated space but the largest contiguous free block is only 512 MB, can you create a new 600 MB partition there?
Status: Unanswered
Your Answer:
Options:
Explanation:
The answer explains that even with around 1 GB total unallocated, the biggest contiguous block is only 512 MB, so there is no space for a 600 MB partition [1].
Enter the egrep command that lists only .org or .com domains from domains.txt.
Status: Unanswered
Your Answer:
Accepted Answer(s):
egrep ".org$|.com$" domains.txt
Explanation:
The guided exercise answer gives this exact command [1].
Which command can disable noclobber for the current shell session?
Status: Unanswered
Your Answer:
Options:
Explanation:
The guided exercise answer gives set +C or set +o noclobber to deactivate noclobber [1].
Enter the command that sends signal number 1 to process ID 1247.
Status: Unanswered
Your Answer:
Accepted Answer(s):
kill -1 1247
Explanation:
The lesson gives kill -1 1247 as the example of specifying a signal by number [1].
Which fsck option prints what would be done and exits without actually checking the filesystem?
Status: Unanswered
Your Answer:
Options:
Explanation:
The lesson states that -N prints what would be done and exits, without actually checking the filesystem [1].
Enter the command that copies the file report.txt to /tmp.
Status: Unanswered
Your Answer:
Accepted Answer(s):
cp report.txt /tmp
cp report.txt /tmp/
Explanation:
Copying files from one location to another is explicitly part of the lesson introduction [1].
Consider the fstab entry '/dev/sdb1 /data ext4 noatime,noauto,async'. Will this filesystem be mounted if 'mount -a' is issued?
Status: Unanswered
Your Answer:
Accepted Answer(s):
No
No, because the noauto option prevents mount -a from mounting it
Explanation:
The lesson explains that noauto means the filesystem cannot be mounted automatically with mount -a [1].
Which statement about hard links is correct?
Status: Unanswered
Your Answer:
Options:
Explanation:
Hard links can only reside on the same partition and filesystem as the target [1].
Enter the command that reboots a systemd-based system.
Status: Unanswered
Your Answer:
Accepted Answer(s):
systemctl reboot
Explanation:
The lesson states that systemctl reboot restarts the system [1].
Which command can replace characters and also remove or compress repeating characters?
Status: Unanswered
Your Answer:
Options:
Explanation:
tr can replace characters and also remove and compress repeating characters [1].
Which ps command displays only the user and command name columns?
Status: Unanswered
Your Answer:
Options:
Explanation:
The lesson gives ps o user,comm as the command that shows only the user and the program names [1].
Which command shows a dynamic, continuously updating view of running processes?
Status: Unanswered
Your Answer:
Options:
Explanation:
The summary states that top displays output dynamically and keeps updating constantly [1].
Which command opens the built-in step-by-step tutorial for vim?
Status: Unanswered
Your Answer:
Accepted Answer(s):
vimtutor
Explanation:
The lesson explicitly mentions vimtutor [1].
Which command can read journal files from an alternative directory, such as a mounted disk image?
Status: Unanswered
Your Answer:
Options:
Explanation:
The material gives examples such as journalctl -D /mnt/hd/var/log/journal or journalctl --directory=/mnt/hd/var/log/journal [1].
Which of the following is NOT listed in the partial list of terms and utilities for Objective 101.2?
Status: Unanswered
Your Answer:
Options:
Explanation:
The partial list for 101.2 includes dmesg, journalctl, BIOS, UEFI, bootloader, kernel, initramfs, init, SysVinit and related terms. wall appears under 101.3, not 101.2 [1].
Which GRUB 2 setting can be used so the default boot option is always the last one selected in the menu?
Status: Unanswered
Your Answer:
Options:
Explanation:
If GRUB_SAVEDEFAULT is set to true and GRUB_DEFAULT is set to saved, the default boot option will be the last one selected [1].
Which command is used to modify file permissions?
Status: Unanswered
Your Answer:
Options:
Explanation:
The command chmod is used to modify permissions for a file or directory [1].
Which command downloads and installs a package from a remote repository together with its dependencies?
Status: Unanswered
Your Answer:
Options:
Explanation:
apt-get install downloads a package from a remote repository and installs it along with its dependencies [1].
Enter the command used to broadcast a warning message to all logged-in users before a major system change.
Status: Unanswered
Your Answer:
Accepted Answer(s):
wall
Explanation:
The lesson explains that wall sends messages to all logged-in terminal sessions [1].
Which utility is listed for creating and deleting partitions on MBR disks?
Status: Unanswered
Your Answer:
Options:
Explanation:
The lesson summary states that fdisk is used to create and delete partitions on MBR disks [1].
Which key should you press in the GRUB menu to open the GRUB shell?
Status: Unanswered
Your Answer:
Accepted Answer(s):
c
Explanation:
Pressing c at the menu screen enters the GRUB shell [1].
Which command kills a process named sleep using its process name rather than its PID?
Status: Unanswered
Your Answer:
Accepted Answer(s):
pkill sleep
Explanation:
The lesson gives pkill sleep as the example of killing a process based on its name [1].
Which command from the objective is the standard Bourne Again Shell?
Status: Unanswered
Your Answer:
Options:
Explanation:
The objective’s partial list of terms and utilities explicitly includes bash [1].
Which command creates a directory named projects?
Status: Unanswered
Your Answer:
Accepted Answer(s):
mkdir projects
Explanation:
Directories store other files, and mkdir is the standard command used to create them. This is standard Linux knowledge aligned with the objective [1][2].
Which command saves the file and exits vi?
Status: Unanswered
Your Answer:
Options:
Explanation:
The lesson lists :wq as the command to save and exit [1].
Which user is allowed to decrease the niceness of a process below zero?
Status: Unanswered
Your Answer:
Options:
Explanation:
Only the root user can decrease the niceness of a process below zero [1].
Which command creates a hard link named hardlink in /home/carol/Documents pointing to target.txt in the current directory?
Status: Unanswered
Your Answer:
Accepted Answer(s):
ln target.txt /home/carol/Documents/hardlink
Explanation:
The lesson gives this exact example command for creating a hard link [1].
What does the operator <<< introduce?
Status: Unanswered
Your Answer:
Options:
Explanation:
The summary includes Here Strings and lists <<< as one of the redirection operators [1].
Which command is used to unmount a filesystem?
Status: Unanswered
Your Answer:
Options:
Explanation:
To unmount a filesystem, use the umount command [1].
Enter the file path of the configuration file commonly used to mount filesystems automatically at boot.
Status: Unanswered
Your Answer:
Accepted Answer(s):
/etc/fstab
Explanation:
The lesson states that filesystems can be mounted automatically by adding them to /etc/fstab [1].
Enter the command that prints only the last 5 lines of /var/log/syslog.
Status: Unanswered
Your Answer:
Accepted Answer(s):
tail -n 5 /var/log/syslog
Explanation:
The lesson gives tail -n 5 /var/log/syslog as an example of limiting tail output [1].
What does the dot (.) atom match in a regular expression?
Status: Unanswered
Your Answer:
Options:
Explanation:
The dot atom matches any character [1].
What is stored inside a partition to describe how data is organized?
Status: Unanswered
Your Answer:
Options:
Explanation:
Inside each partition there is a filesystem, which describes how information is stored and organized [1].
Enter a command that reads journal files from /mnt/hd/var/log/journal.
Status: Unanswered
Your Answer:
Accepted Answer(s):
journalctl -D /mnt/hd/var/log/journal
journalctl --directory=/mnt/hd/var/log/journal
Explanation:
The material provides both command forms for reading a journal stored in another directory [1].
If no other conventional block device is present, how will an external USB hard drive most likely appear under /dev on a Linux-based router?
Status: Unanswered
Your Answer:
Options:
Explanation:
Using standard Linux block device naming, the first detected conventional disk device is typically named /dev/sda. This aligns with the lesson's device naming approach for conventional block devices; the specific router example appears as an explorational exercise in the material [1].
What command displays built-in help for a specific dnf command such as install?
Status: Unanswered
Your Answer:
Options:
Explanation:
The built-in help system is used as dnf help followed by the command, such as dnf help install [1].
Which command creates an empty file if it does not already exist, or updates its timestamp if it does?
Status: Unanswered
Your Answer:
Options:
Explanation:
Creating files is part of basic file management; touch is the standard Linux command for creating an empty file or updating timestamps. This is standard Linux knowledge consistent with the objective [1][2].
Which command prints the current working directory?
Status: Unanswered
Your Answer:
Accepted Answer(s):
pwd
Explanation:
The objective explicitly lists pwd [1].
Which command lists the permissions and attributes of the directory emptydir itself?
Status: Unanswered
Your Answer:
Accepted Answer(s):
ls -ld emptydir
ls -l -d emptydir
Explanation:
The guided exercise answer gives both forms, with ls -ld emptydir as the merged version [1].
Which file is the main APT repository configuration file mentioned in the objective?
Status: Unanswered
Your Answer:
Options:
Explanation:
The objective explicitly lists /etc/apt/sources.list as one of the used files [1].
Which directory contains files needed by the boot process, including the Linux kernel and initrd?
Status: Unanswered
Your Answer:
Options:
Explanation:
The FHS defines /boot as containing files needed by the boot process, including the kernel and Initial RAM Disk [1].
Which command will display only exported environment variables in a simple form?
Status: Unanswered
Your Answer:
Options:
Explanation:
env is used to display the environment, while set displays shell variables and functions more broadly [1].
What is the correct syntax format for entries in /etc/inittab?
Status: Unanswered
Your Answer:
Options:
Explanation:
The lesson gives the /etc/inittab syntax as id:runlevels:action:process [1].
Which alternative editor is described as simpler than vi and using Ctrl key combinations for commands?
Status: Unanswered
Your Answer:
Options:
Explanation:
The lesson describes GNU nano as a simpler alternative to vi, where commands are given using the Ctrl key [1].
For a mission-critical server installation requiring the fastest performance, what type of virtualization is likely preferred according to the material?
Status: Unanswered
Your Answer:
Options:
Explanation:
The answers section states that a mission-critical server needing the fastest performance will likely use paravirtualization [1].
Enter the command that forcefully unmounts /mnt/server or remounts it read-only if unmounting is not possible.
Status: Unanswered
Your Answer:
Accepted Answer(s):
umount -f -r /mnt/server
umount -fr /mnt/server
Explanation:
The answers to explorational exercises give umount -f -r /mnt/server and note that grouped parameters like umount -fr also work [1].
Which file descriptor number corresponds to stderr?
Status: Unanswered
Your Answer:
Accepted Answer(s):
2
Explanation:
The lesson assigns file descriptor 2 to stderr [1].