NEW
Font size
WorksheetsLinux 25-26 Final Exam
Total questions: 66
Worksheet time: 33mins
Which file format is known for its human-readable syntax, making it suitable for defining and organizing configurations in a clear and concise manner in Infrastructure as Code (IaC)?
XML (eXtensible Markup Language)
JSON (JavaScript Object Notation)
YAML (YAML Ain't Markup Language)
CSV (Comma-Separated Values)
SaltStack distinguishes itself with powerful remote execution capabilities. What language is used for its configuration files?
YAML
JSON
Ruby
Python
What does "deploying a container" involve?
Halting the processes of a container
Launching container processes based on existing images
Exposing specific ports within a container
Creating and launching instances of a container based on existing container images
What directory in Linux Contains files that change while the system is being used, such as log files and cache data?
Where are essential executable files for the system located?
/lib
/bin
/usr
/sbin
9. The /media directory serves as:
a location for temporary files
a mount point for removable media
a directory for user documents
a system configuration directory
What Linux command will display your current directory?
Which option displays all files and directories, including hidden ones, using the ls command?
-a
-l
-R
-al
What command is used to create a new file in Linux?
touch
cat
mkdir
cp
How is the cp command used to copy a directory and its contents?
cp -dR source_directory destination_directory
cp source_directory -R destination_directory
cp source_directory destination_directory -R
cp -r source_directory destination_directory
What does the | (Pipe) command do in shell scripting?
Connects the output of one command as the input to another command.
Executes the command following it ONLY IF the preceding command fails.
Redirects standard output to a file.
Appends the standard output to the end of a file.
What does the > (Output Redirection) command do in shell scripting?
Redirects the standard output to a file, overwriting it if it exists.
Appends the standard output to the end of a file.
Redirects the input from a file to a command.
Combines standard output and standard error to a specified file.
What is nano?
An advanced text editor
A programming language
A simple text editor
A system administration tool
What is a notable characteristic of vi(m)?
It requires mastering keyboard commands
It has a graphical user interface
It supports mouse interactions
It is primarily used for word processing
Which tool is useful for searching patterns within text files and supports regular expressions?
wc
cut
grep
tr
What does the tail command do?
Translates or deletes characters in a stream of data
Displays the last few lines of a file
Counts lines, words, and characters in a file or input stream
Displays the first few lines of a file
What is the drawback of a Full Backup?
It takes less time
It requires less storage space
It is time-consuming
It only copies modified data
What does a Differential Backup back up?
Everything on the system
Only modified data since the last full backup
Only modified data since the last incremental backup
Only system configurations
Which of the following is an example of metadata for a .mp3 file?
File size
Compression algorithm
Color profile
GPS coordinates
What is the primary function of the find command?
Transforming text streams
Searching for patterns within text files
Extracting specific sections from each line
Searching files and directories in a directory hierarchy
Which partition table is more modern and versatile, supporting larger capacities and better data integrity?
Master Boot Record (MBR)
Filesystem in Userspace (FUSE)
Redundant Array of Independent Disks (RAID)
GUID Partition Table (GPT)
Which command is used to list all Universal Serial Bus (USB) devices connected to the system?
lspci
dmidecode
lsusb
mkfs
What utility is used to create, modify, or delete partitions on a storage drive in Linux?
parted
partprobe
mkfs
fdisk
Which command is used to update the kernel with changes in the partition table?
partprobe
mkfs
select
resizepart
Which command in Linux is used to format a partition with a specific file system?
What is a mount point in Linux?
A physical storage device
A logical connection between a directory and a filesystem
An entry in /var/log/messages
A file in the /etc/systemd/system directory
Which command is used to grow an XFS file system, specifying a new size for the mount point?
xfs_info
xfs_growfs
xfs_expand
xfs_resize
Where can mount parameters for a device be found in Linux?
/var/log/messages
/etc/systemd/system directory
/etc/fstab
/etc/mount
What tool is used to grow the EXT4 filesystem?
mkfs
e2fsck
e2image
What could be a consequence of running out of storage space on a storage device?
High latency.
I/O wait.
Data loss, application crashes, or system instability.
Slow data transfers.
What are inodes in the context of storage?
The time it takes for a storage system to respond to a request.
Data structures that track files and directories.
The number of read and write operations a storage device can handle per second.
The limited data transfer rate between the storage system and requesting components.
Which RAID Version involves mirroring 2 drives for redundancy?
True or False? A deleted file in Linux still exists on the storage device.
True
False
Which firmware interface is the modern replacement for BIOS?
GRUB2
UEFI
mkinitrd
Dracut
Which command installs the GRUB2 bootloader to the system's boot sector or EFI system partition?
grub2-mkconfig
grub2-update
grub2-install
mkinitrd
What does PXE stand for?
Power-On Self-Test
Preboot eXecution Environment
Portable X Environment
Postboot eXecution Engine
What is a zombie process, and how can it affect system performance?
A process that consumes an excessive amount of system resources, causing performance degradation.
A process that has completed execution but still has an entry in the process table, consuming minimal resources.
A process waiting for I/O operations to complete, leading to system slowdown.
A process that is ready to run, indicating a high demand for CPU time.
Which package manager is used in Debian-based Linux distributions such as Debian, Ubuntu, and Kali?
YUM
APT
DNF
ZYpp
What is the low-level package management tool used primarily in Red Hat-based distributions for installing, querying, and managing individual RPM packages?
DNF
APT
RPM
dpkg
Which component of the OS is responsible for managing hardware resources and providing essential system services?
Package manager
Kernel
Runtime
Snap package
Which protocol is primarily used to securely access a remote computer over a network?
SSH (Secure Shell)
FTP (File Transfer Protocol)
HTTP (Hypertext Transfer Protocol)
SMTP (Simple Mail Transfer Protocol)
Which command-line utility allows for the configuration of a system clock and its settings in Linux?
sysctl
timedatectl
localectl
chronyctl
Where does the make install command typically install the software by default?
/usr/bin
/usr/local/bin
/opt/bin
/bin
Which command is used for generating secure key pairs in SSH?
ssh-copy-id
ssh-add
ssh-keygen
ssh-config
What is the command to update repositories in Ubuntu Linux distributions?
Which systemctl command is used to restart a service?
systemctl start
systemctl enable
systemctl restart
systemctl status
What is cron used for in Unix-like operating systems?
Enabling and disabling services
Scheduling recurring tasks at fixed times, dates, or intervals
Managing system stability
Interacting with crontab files
Which file contains configuration information for the Domain Name System (DNS) resolver, specifying DNS servers to be used and other resolver settings?
/etc/systemD.conf
/etc/hosts
/etc/nsswitch.conf
/etc/resolv.conf
Which command is used in Linux systems to copy files between servers securely and uses the same authentication and security as SSH?
SFTP
rsync
netcat
scp
What is the primary purpose of the Nmap tool?
Scanning remote systems, identifying open ports, and detecting services.
Testing SSL/TLS connections.
Troubleshooting interface errors.
Allocating bandwidth based on organizational priorities.
Which command is used to create a new user group on a Linux system?
sudo useradd
sudo groupadd
sudo userdel
sudo groupdel
What command is used to check if a user is currently logged in?
id
who
uname
w
Which command is used to set a password for a user account in Linux?
sudo passwd -u username
sudo userpasswd username
sudo passset username
sudo usermod -p password username
Where is account information stored for each user in Linux, including the username, user ID, group ID, and home directory?
/etc/profile
/etc/passwd
/etc/shadow
/etc/skel
Which file contains securely stored credential information, including salted and hashed passwords?
/etc/profile
/etc/passwd
/etc/shadow
/etc/skel
Which command allows a user to switch to a different user and execute a command as that user?
sudo
su -
pkexec
visudo
What is the primary purpose of Single Sign-On (SSO) authentication?
Requiring users to provide multiple forms of identification
Centralizing user authentication
Customizing authentication processes
Streamlining user access to multiple applications without re-entering credentials
What is the primary purpose of Secure Boot in UEFI firmware?
Improving boot times
Preventing unauthorized access attempts
Loading only immutable and signed software
Enforcing password strength
What command is used to view the assigned rights of files and directories in Linux?
showpermissions
accesscontrol
ls -l
chmod
What is the correct order of the permissions triplet in the octal format for a file in Linux?
Group, Owner, Other
Other, Group, Owner
Owner, Group, Other
Other, Owner, Group
Which command is used to create a new directory?
createdir
makedir
newdir
mkdir
What does the 'cd' command do?
Delete directory.
Copy directory.
Create directory.
Change directory.
Which command is used to remove files in Linux?
delete
erase
rm
remove
Which command is used to change the owner of a file?
chown
useradd
usermod
chmod
What does the 'tar' command do?
Compresses files.
Deletes files.
Creates and extracts archive files.
Moves files.
Which command is used to display the current working directory?
cd
ls
dir
pwd
