The _________ daemon in Linux is responsible for assigning IP addresses to devices on a local network.
- DHCP
- DNS
- SSH
- HTTP
The DHCP (Dynamic Host Configuration Protocol) daemon in Linux is responsible for assigning IP addresses to devices on a local network. It automates the process of configuring network settings for devices, ensuring they receive the necessary IP address, subnet mask, gateway, and other parameters.
You are setting up a high-performance database server and require a file system that supports large files and high data integrity. Which file system would be most suitable?
- Ext4
- XFS
- Btrfs
- ZFS
ZFS (Zettabyte File System) would be most suitable for a high-performance database server. It supports large files, data integrity through features like checksums, and provides advanced data management capabilities, making it ideal for critical data storage needs.
Imagine you are setting up user permissions for a shared directory. You want the files created by users to inherit the group ownership of the directory. Which special permission would you set on the directory?
- SetGID
- SetUID
- Sticky bit
- Chmod
To ensure that files created within a directory inherit the group ownership of the directory, you would set the SetGID (Set Group ID) permission on the directory. This special permission allows new files to inherit the group ownership of the parent directory, which is often used for shared directories.
The __________ phase of the Linux boot process is where the system checks and mounts file systems.
- initrd
- GRUB
- LILO
- init
The initrd phase of the Linux boot process is where the system checks and mounts file systems. The initial RAM disk (initrd) is used during the boot process to provide an initial file system that's used as a temporary root file system before the actual root file system is mounted. It contains necessary drivers and tools to get the system to the point where it can transition to the real root file system.
The ________ command in Linux provides a detailed view of the networking subsystem, including interfaces, IP addresses, and routing tables.
- ipconfig
- netstat
- ifconfig
- ip
The "ip" command in Linux provides a detailed view of the networking subsystem, including information about network interfaces, IP addresses, routing tables, and more. It is a versatile tool for configuring and managing network settings on a Linux system, making it an essential utility for network administrators and troubleshooters.
You're given a Dockerfile and need to create a Docker container from it. Which command would you use?
- docker compose
- docker build
- docker create
- docker run
To create a Docker container from a Dockerfile, you would use the "docker build" command. This command reads the instructions in the Dockerfile and generates a Docker image, which can then be used to create and run containers.
For optimizing database performance, you might adjust the __________ parameter to control disk caching behavior.
- vm.dirty_ratio
- ifconfig
- lsusb
- grep
For optimizing database performance, you might adjust the vm.dirty_ratio parameter to control disk caching behavior. This parameter in the sysctl settings defines the percentage of system memory that can be filled with dirty data pages before the kernel starts writing them to disk, which can impact database I/O performance.
In the context of performance tuning, what does the 'vm.swappiness' parameter control?
- The balance between swapping out and caching application data
- The number of processes a user can start
- The kernel's version number
- The I/O scheduler used by the system
The 'vm.swappiness' parameter controls the balance between swapping out and caching application data in Linux. It determines how often the system will swap data from RAM to disk and vice versa. A lower value (e.g., 0) keeps more data in RAM, while a higher value (e.g., 100) swaps data out more aggressively.
In terms of file permissions, what does the "s" stand for when seen in a permission string like "drwxr-sr-x"?
- Set user or group ID
- Special permissions
- Sticky bit
- Synchronized access
The "s" in a permission string like "drwxr-sr-x" signifies the "Set user or group ID" permission. When set on an executable file, it allows the user who runs the file to temporarily inherit the permissions of the file's owner or group, depending on where it's set (user or group ID).
To diagnose potential issues with domain name resolution, you might use the ________ command.
- nslookup
- ifconfig
- ping
- dig
To diagnose potential issues with domain name resolution, you might use the "dig" command. "dig" (Domain Information Groper) is a powerful command-line tool for querying DNS (Domain Name System) servers and obtaining detailed information about DNS records and name resolution, making it useful for troubleshooting DNS-related problems.
In package management, a ________ is a collection of patches, configuration files, and scripts that adapt a software source code to a particular distribution.
- Source Package
- Binary Package
- Source Code
- Dependency
In package management, a "Source Package" is a collection of patches, configuration files, and scripts that adapt a software source code to a particular distribution. Source packages are used to build binary packages specific to a particular Linux distribution.
Which Linux command can be used to monitor real-time network interface statistics?
- ifconfig
- netstat
- iptraf
- nmap
The correct command to monitor real-time network interface statistics in Linux is iptraf. It provides detailed information about network traffic, including traffic per interface, protocols, and ports. ifconfig and netstat are used for network configuration and monitoring, but they don't offer real-time statistics. nmap is a network scanning tool.