Session Review

Session ID: 124
Mode: mock_exam
Status: in_progress
Score: 0%

Filter: All | Incorrect | Flagged | Unanswered

Current filter: Unanswered

Back to Session

Question 1 (102.5-006 / multiple_choice)

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].

Question 2 (102.3-013 / short_answer)

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].

Question 3 (103.1-011 / multiple_choice)

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].

Question 4 (103.4-030 / command_line)

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].

Question 5 (104.2-002 / multiple_choice)

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].

Question 6 (104.7-023 / command_line)

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].

Question 7 (102.4-009 / multiple_choice)

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].

Question 8 (103.3-012 / multiple_choice)

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].

Question 9 (103.6-022 / short_answer)

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].

Question 10 (104.5-001 / multiple_choice)

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].

Question 11 (103.7-027 / command_line)

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].

Question 12 (101.1-015 / short_answer)

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].

Question 13 (102.5-015 / multiple_choice)

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].

Question 14 (104.1-011 / multiple_choice)

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].

Question 15 (103.7-028 / command_line)

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].

Question 16 (103.4-012 / multiple_choice)

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].

Question 17 (103.5-027 / command_line)

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].

Question 18 (104.2-010 / multiple_choice)

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].

Question 19 (103.3-023 / command_line)

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].

Question 20 (104.3-024 / short_answer)

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].

Question 21 (104.6-007 / multiple_choice)

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].

Question 22 (101.3-027 / command_line)

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].

Question 23 (103.2-008 / multiple_choice)

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].

Question 24 (103.5-017 / multiple_choice)

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].

Question 25 (103.5-006 / multiple_choice)

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].

Question 26 (103.8-021 / short_answer)

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].

Question 27 (101.2-011 / multiple_choice)

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].

Question 28 (101.2-024 / multiple_choice)

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].

Question 29 (102.2-016 / multiple_choice)

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].

Question 30 (104.5-009 / multiple_choice)

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].

Question 31 (102.4-010 / multiple_choice)

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].

Question 32 (101.3-029 / command_line)

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].

Question 33 (104.1-004 / multiple_choice)

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].

Question 34 (102.2-023 / short_answer)

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].

Question 35 (103.5-020 / short_answer)

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].

Question 36 (103.1-009 / multiple_choice)

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].

Question 37 (103.3-019 / short_answer)

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].

Question 38 (103.8-006 / multiple_choice)

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].

Question 39 (103.6-010 / multiple_choice)

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].

Question 40 (104.6-019 / short_answer)

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].

Question 41 (103.4-017 / multiple_choice)

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].

Question 42 (104.3-009 / multiple_choice)

Which command is used to unmount a filesystem?

Status: Unanswered

Your Answer:

Options:

Explanation:
To unmount a filesystem, use the umount command [1].

Question 43 (102.1-022 / command_line)

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].

Question 44 (103.2-023 / command_line)

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].

Question 45 (103.7-001 / multiple_choice)

What does the dot (.) atom match in a regular expression?

Status: Unanswered

Your Answer:

Options:

Explanation:
The dot atom matches any character [1].

Question 46 (102.1-004 / multiple_choice)

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].

Question 47 (101.2-020 / command_line)

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].

Question 48 (101.1-012 / multiple_choice)

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].

Question 49 (102.5-018 / multiple_choice)

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].

Question 50 (103.3-006 / multiple_choice)

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].

Question 51 (103.1-016 / short_answer)

Which command prints the current working directory?

Status: Unanswered

Your Answer:

Accepted Answer(s):
pwd

Explanation:
The objective explicitly lists pwd [1].

Question 52 (104.5-021 / short_answer)

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].

Question 53 (102.4-017 / multiple_choice)

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].

Question 54 (104.7-004 / multiple_choice)

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].

Question 55 (103.1-015 / multiple_choice)

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].

Question 56 (101.3-006 / multiple_choice)

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].

Question 57 (103.8-013 / multiple_choice)

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].

Question 58 (102.6-009 / multiple_choice)

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].

Question 59 (104.3-029 / command_line)

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].

Question 60 (103.4-021 / short_answer)

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].