What is the primary purpose of the netstat command?
- Display network statistics and connections
- List all installed packages
- Check system resource usage
- Create a new network interface
The primary purpose of the netstat command is to display network statistics and connections. It provides valuable information about network interfaces, routing tables, and active network connections. It's a crucial tool for network troubleshooting and monitoring.
The _________ directory in Linux contains device nodes and is crucial for the system's interaction with hardware.
- /dev
- /lib
- /mnt
- /var
The /dev directory in Linux contains device nodes and is crucial for the system's interaction with hardware. Device nodes represent physical and virtual devices, allowing the system to communicate with and control hardware components.
You've been given a new device without any documentation. You want to check if Linux has automatically loaded a driver for it. Which command would help you determine this?
- lspci
- dmesg
- lsusb
- udevadm
The dmesg command would help you determine if Linux has automatically loaded a driver for the new device. dmesg displays kernel messages, and you can look for entries related to the device to see if a driver has been loaded or if there are any issues with it.
When debugging a shell script, which option can be used with the bash command to enable debugging output?
- #NAME?
- #NAME?
- #NAME?
- #NAME?
When debugging a shell script, you can use the -x option with the bash command to enable debugging output. This option displays each command as it is executed, making it useful for identifying issues and understanding the script's execution flow.
What is the primary purpose of the df command in Linux?
- Display disk space usage
- List all files in a directory
- Execute a shell script
- Calculate file checksums
The primary purpose of the df command is to display disk space usage on a Linux system. It provides information about the disk space used and available on various mounted filesystems. This command is useful for monitoring disk space to prevent overflows.
Which file system is designed to offer advanced features such as pooling, snapshots, and checksums?
- Btrfs
- ext3
- XFS
- JFS
Btrfs (B-Tree File System) is designed to offer advanced features such as data pooling, snapshots, and checksums. It is a next-generation file system that provides data integrity and efficient storage management. Btrfs is often used in modern Linux distributions for its advanced capabilities.
KVM stands for Kernel-based Virtual _________.
- Machine
- Manager
- Memory
- Module
KVM stands for Kernel-based Virtual Machine. It is a Linux kernel module that enables hardware-assisted virtualization, allowing you to run multiple virtual machines on a single host.
Which tool is used for orchestrating multiple Docker containers?
- Docker Compose
- Docker Swarm
- Kubernetes
- Ansible
Kubernetes is used for orchestrating multiple Docker containers. It's a powerful container orchestration platform that automates the deployment, scaling, and management of containerized applications.
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.
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.