Which directory is crucial for the system booting process?
- /boot
- /home
- /opt
- /var
The /boot directory is crucial for the system booting process in Linux. It contains essential files such as the kernel, initial RAM disk (initrd), and bootloader configurations. These files are necessary for the system to start up.
Imagine you're setting up a new server. You want to ensure that every user on the system has their own private space for files and data. Which directory structure in Linux helps facilitate this?
- /etc
- /home
- /tmp
- /var
To provide each user with their own private space for files and data, you would use the /home directory structure in Linux. User home directories are typically located within /home, and this separation ensures user privacy and data security.
Which directory in Linux is often used for mounting temporary file storage systems, like USB drives?
- /media
- /mnt
- /tmp
- /var
The /media directory in Linux is often used for mounting temporary file storage systems, like USB drives. When you plug in a USB drive, it's commonly mounted under the /media directory for easy access.
LXC provides a similar containerization service as Docker, but it is more focused on providing a full ________ environment.
- Kernel
- Networking
- System
- User
LXC (Linux Containers) provides a similar containerization service as Docker, but it is more focused on providing a full system environment. This means it can run multiple Linux distributions and even non-Linux operating systems with their own kernel, making it more flexible for certain use cases.
You notice that a process on your Linux system is consuming too much CPU. Which command would you use to adjust its priority?
- nice
- renice
- top
- ps
To adjust the priority of a running process in Linux, you would use the renice command. This allows you to change the process's nice value and, consequently, its CPU priority. A lower nice value means a higher priority.
You've been given a task to review the startup scripts of a system. Where would you primarily look to find the initialization scripts for different run levels?
- /etc/init.d
- /etc/rc.d
- /etc/runlevels
- /usr/bin/init
To find the initialization scripts for different run levels, you would primarily look in the /etc/init.d directory. This directory contains the scripts and links used for managing services and their run levels on a Linux system.
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.