While /bin contains essential command binaries, the ________ directory contains non-essential command binaries.

  • /etc
  • /lib
  • /opt
  • /usr/bin
While /bin holds essential command binaries necessary for system boot and repair, the /usr/bin directory contains non-essential command binaries that are used by both the system and the users.

What is the primary role of the System Call Interface in the Linux kernel?

  • Providing an interface for user programs to interact with the kernel
  • Managing the file system
  • Allocating memory for processes
  • Scheduling processes
The primary role of the System Call Interface in the Linux kernel is to provide an interface for user programs to interact with the kernel. System calls are the gateway through which user applications request services from the kernel, such as file operations, process control, and hardware access.

You're debugging a script and notice that an operation splits a string incorrectly. You suspect it might be related to the field separator. Which built-in variable should you check?

  • IFS (Internal Field Separator)
  • FS (Field Separator)
  • OFS (Output Field Separator)
  • RS (Record Separator)
You should check the IFS (Internal Field Separator) built-in variable. It determines how fields are separated when splitting strings. Changing the IFS value can affect string splitting and tokenization in scripts, so it's essential to inspect and modify it when debugging string manipulation issues.

For a system running the Linux kernel, where are module configuration files typically stored?

  • /etc/modprobe.d/
  • /var/modules
  • /usr/lib/kernel/modules
  • /opt/kernelconfig
For a system running the Linux kernel, module configuration files are typically stored in the '/etc/modprobe.d/' directory. These files are used to configure the behavior and options of kernel modules, allowing users to customize module settings and behavior.

To disable the debugging mode that was enabled with set -x, you can use the command __________.

  • set +x
  • debug off
  • stop debug
  • quit
To disable the debugging mode that was enabled with set -x, you can use the command **set +x**. This command turns off the debugging mode, so the script will no longer display each command before execution. It's a useful way to end debugging when it's no longer needed.

The tool ________ is used to manage and enforce profiles within AppArmor.

  • aa-status
  • apparmor-status
  • aa-enforce
  • apparmor-enforce
The tool aa-enforce is used to manage and enforce profiles within AppArmor. It allows you to enable and enforce AppArmor profiles for specific applications or processes.

Which Samba tool is used for checking the configuration file for errors?

  • testparm
  • smbstatus
  • smbtree
  • smbpasswd
The testparm tool in Samba is used to check the configuration file for errors. It helps you validate your Samba configuration to ensure that it is correctly formatted and free of syntax errors. Running testparm is a useful step in troubleshooting Samba configuration issues.

Which Linux distribution is commercially backed by Canonical?

  • CentOS
  • Debian
  • Fedora
  • Ubuntu
Ubuntu is a Linux distribution that is commercially backed by Canonical. Canonical provides support and services for Ubuntu, making it a popular choice for both desktop and server environments.

You're creating a script that should take different actions based on the day of the week. Which Bash construct would be most suitable for this?

  • if...else statements
  • case statement
  • for loop
  • while loop
The most suitable Bash construct for taking different actions based on the day of the week is the case statement. You can use case to evaluate the value of the day and define different actions for each day. Options 1, 3, and 4 are not specifically designed for this purpose; they serve different scripting needs.

Which command allows you to change the expiration date of a user's password in Linux?

  • chage
  • passwd
  • usermod
  • pwm
The chage command in Linux allows you to change the expiration date of a user's password. It provides a range of options to manage password-related settings, including password expiration.