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.

n shell scripting, which loop will continue executing as long as the specified condition remains true?

  • while
  • for
  • if
  • case
In shell scripting, the while loop continues executing as long as the specified condition remains true. It's a common choice for creating loops based on a condition, and it's used for tasks like reading files line by line or performing repetitive tasks.

To monitor I/O statistics and disk activity in real-time, you would use the ________ command in Linux.

  • iostat
  • top
  • df
  • du
To monitor I/O statistics and disk activity in real-time in Linux, you would use the iostat command. It provides detailed information about input and output operations, helping you identify performance bottlenecks related to disk I/O.

Which Linux tool can be used to trace system calls and signals?

  • strace
  • dmesg
  • top
  • ps
The 'strace' tool is used to trace system calls and signals in Linux. It allows you to monitor the system calls made by a process and view the signals sent to it. This is useful for debugging and understanding how applications interact with the kernel.

What component in Linux is responsible for managing system resources and providing an interface between the hardware and the user space?

  • Kernel
  • Shell
  • BIOS
  • Compiler
The component in Linux responsible for managing system resources and providing an interface between the hardware and the user space is the 'Kernel.' The kernel is the core of the operating system and handles tasks such as memory management, process scheduling, and hardware interaction. It acts as an intermediary between software and hardware, making it a crucial part of the Linux operating system.

Which virtualization solution is directly supported in the Linux kernel?

  • KVM
  • VirtualBox
  • VMware
  • Xen
KVM, or Kernel-based Virtual Machine, is directly supported in the Linux kernel. It's a full virtualization solution that leverages hardware virtualization extensions to provide excellent performance for virtual machines on Linux.

AppArmor profiles, when enforced, restrict system access based on ________ paths.

  • file system
  • network
  • environment
  • system call
AppArmor profiles, when enforced, restrict system access based on file system paths. These profiles define what files and directories a program can access, adding an extra layer of security.