The __________ command in Linux allows mounting of NFS shared directories.

  • mount
  • nfs
  • fstab
  • showmount
The mount command in Linux allows mounting of NFS (Network File System) shared directories. You can use this command to make remote file systems accessible on your local system through NFS.

To iterate over a range of numbers in a loop, one might use the seq command combined with the _________ loop.

  • for
  • while
  • until
  • numeric
To iterate over a range of numbers in a loop, one might use the seq command combined with the for loop. The seq command generates a sequence of numbers, and the "for" loop can be used to loop through these numbers, allowing you to perform actions on each number within the specified range. This is a common technique in shell scripting for tasks like counting or iterating through numerical data.

How do you denote the start of a block of code in a Bash if statement?

  • then
  • start
  • begin
  • do
In a Bash if statement, you denote the start of a block of code with the keyword then. This is where the code to be executed if the condition is true begins. It's important to follow then with the code that should be executed when the condition is met.

In the context of iptables, what is the purpose of the INPUT chain?

  • Processing incoming packets destined for the local system
  • Forwarding packets between network interfaces
  • Handling outgoing packets from the local system
  • Redirecting traffic to a specific port
In the context of iptables, the INPUT chain is responsible for processing incoming packets destined for the local system. This is where rules for packets directed at the firewall-hosted services and applications are defined, allowing or blocking them based on the rules configured in the chain.

You've just set up a new Linux server and need to install a web server. Which package management command would you likely use in a Debian-based system?

  • apt-get
  • yum
  • dnf
  • pacman
In a Debian-based system, such as Ubuntu, you would likely use the 'apt-get' command to install packages. The 'apt-get' command is used for package management and is specifically designed for Debian-based distributions.

The sudo command reads configurations from _________ to determine user privileges.

  • /etc/passwd
  • /etc/group
  • /etc/sudoers
  • /var/log/auth.log
The sudo command reads configurations from /etc/sudoers to determine user privileges. This file contains information about which users can run commands with administrative privileges and under what conditions. Understanding and configuring the sudoers file is essential for managing access control in Linux.

Which daemon in Linux is responsible for logging system messages?

  • syslogd
  • klogd
  • systemd
  • auditd
In Linux, the syslogd daemon is responsible for logging system messages. It collects and manages log messages generated by various system components and services. klogd is used for kernel log messages, systemd is an init system, and auditd is responsible for auditing.

Which command is used to load kernel modules manually?

  • modprobe
  • insmod
  • depmod
  • lsmod
The correct command to load kernel modules manually is insmod. This command allows you to insert a kernel module into the running kernel. It's used when you want to load a specific module into the kernel, and it doesn't handle module dependencies automatically.

Which tool is commonly used to manage btrfs file systems?

  • btrfs-progs
  • ext4tools
  • xfsctl
  • jfsutils
The tool commonly used to manage btrfs file systems is btrfs-progs. These utilities provide various commands for managing and maintaining btrfs file systems, including creating, mounting, and checking file systems.

What is the primary use of the iptables -L command?

  • Viewing the current rules in the iptables firewall
  • Listing installed packages
  • Listing contents of a directory
  • Listing system users
The primary use of the iptables -L command is to view the current rules in the iptables firewall. It shows a list of firewall rules and their details, allowing you to inspect how traffic is being filtered or forwarded on a Linux system.