Imagine you're setting up a new server. You want to ensure that every user on the system has their own private space for files and data. Which directory structure in Linux helps facilitate this?

  • /etc
  • /home
  • /tmp
  • /var
To provide each user with their own private space for files and data, you would use the /home directory structure in Linux. User home directories are typically located within /home, and this separation ensures user privacy and data security.

You notice that a process on your Linux system is consuming too much CPU. Which command would you use to adjust its priority?

  • nice
  • renice
  • top
  • ps
To adjust the priority of a running process in Linux, you would use the renice command. This allows you to change the process's nice value and, consequently, its CPU priority. A lower nice value means a higher priority.

Which directory in Linux is often used for mounting temporary file storage systems, like USB drives?

  • /media
  • /mnt
  • /tmp
  • /var
The /media directory in Linux is often used for mounting temporary file storage systems, like USB drives. When you plug in a USB drive, it's commonly mounted under the /media directory for easy access.

LXC provides a similar containerization service as Docker, but it is more focused on providing a full ________ environment.

  • Kernel
  • Networking
  • System
  • User
LXC (Linux Containers) provides a similar containerization service as Docker, but it is more focused on providing a full system environment. This means it can run multiple Linux distributions and even non-Linux operating systems with their own kernel, making it more flexible for certain use cases.

What role does the virt-manager tool play in Linux virtualization?

  • Graphical tool for managing virtual machines
  • Command-line tool for system administration
  • Kernel module for virtualization
  • Web server for virtual machine deployment
virt-manager is a graphical tool for managing virtual machines in Linux. It provides a user-friendly interface to create, configure, and manage virtual machines using various virtualization technologies, including KVM and QEMU.

A kernel that can have modules loaded and unloaded at runtime is referred to as a _________ kernel.

  • modular
  • dynamic
  • monolithic
  • micro
A kernel that can have modules loaded and unloaded at runtime is referred to as a "modular" kernel. In a modular kernel, certain functionality can be added or removed via loadable kernel modules, making it more flexible and efficient.

Which command provides information about the network connections, routing tables, and network interface statistics?

  • netstat
  • ping
  • ifconfig
  • traceroute
The 'netstat' command provides information about network connections, routing tables, and network interface statistics. It's a powerful utility for diagnosing network-related issues and displaying network statistics and connections.

In Bash scripting, the ________ command is used to loop over a range of values.

  • for
  • while
  • if
  • echo
In Bash scripting, the for command is used to loop over a range of values. It allows you to execute a set of commands for each item in the specified range or list.

Which built-in variable in a shell script would you use to determine the number of positional parameters?

  • $#
  • $@
  • $*
  • $$
To determine the number of positional parameters passed to a shell script, you would use the built-in variable $#. It represents the count of arguments supplied to the script.

Which SSH configuration parameter specifies the maximum number of authentication attempts allowed per connection?

  • MaxLoginAttempts
  • MaxAuthTries
  • AuthMaxRetries
  • LoginAttempts
The SSH configuration parameter that specifies the maximum number of authentication attempts allowed per connection is MaxAuthTries. It can be set in the SSH server configuration file (sshd_config) to enhance security by limiting the number of failed login attempts.