What kernel component is responsible for memory management, including allocation and page replacement?

  • Memory Management Unit (MMU)
  • Page Table
  • Virtual Memory Manager
  • Kernel Scheduler
The kernel component responsible for memory management, including memory allocation and page replacement, is the Virtual Memory Manager (VMM). The VMM is an integral part of the Linux kernel and ensures efficient utilization of physical and virtual memory resources.

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.

You notice that a remote server is not accessible via its hostname, but it's accessible via its IP address. Which configuration file would you inspect first?

  • /etc/hosts
  • /etc/hostname
  • /etc/resolv.conf
  • /etc/network/interfaces
If a remote server is not accessible via its hostname, checking the /etc/hosts file is a good starting point. This file contains mappings of hostnames to IP addresses, and if there's an issue with name resolution, it's often related to this file.

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.

Which special variable in a shell script represents the script's name?

  • $0
  • $1
  • $script
  • $name
The special variable $0 in a shell script represents the script's name. It allows you to access the name of the currently executing script. This can be useful for self-referencing within the script or for providing a script name in error messages or logs.