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.

How can a user put a running process into the background from the terminal?

  • Press Ctrl + Z
  • Press Ctrl + B
  • Press Ctrl + C
  • Press Ctrl + D
To put a running process into the background from the terminal, you can press Ctrl + Z. This action suspends the process and places it in the background, allowing you to continue using the terminal for other tasks while the process runs in the background.

When managing disk partitions, the term _________ refers to a method that allows for spanning a filesystem across multiple physical disks.

  • RAID
  • LVM
  • EXT4
  • XFS
When managing disk partitions, the term "LVM" (Logical Volume Manager) refers to a method that allows for spanning a filesystem across multiple physical disks. LVM provides flexibility in managing storage by creating logical volumes that can span multiple physical drives.

In a shell script, the _________ command is used to parse options and arguments.

  • grep
  • sed
  • getopts
  • awk
In a shell script, the getopts command is used to parse options and arguments. It's particularly useful for handling command-line options and arguments in a structured way.

You're troubleshooting a network issue and want to see if any dropped packets are occurring on your server's main network interface. Which command would you likely use?

  • ifconfig
  • netstat
  • tcpdump
  • iperf
To monitor network traffic and identify dropped packets, you would likely use the "tcpdump" command. Tcpdump is a packet analyzer that allows you to capture and inspect network packets on a specific network interface.