Which Linux utility allows you to monitor and manage system CPU performance?
- top
- ls
- cpustat
- sysadmin
The 'top' command is a Linux utility that allows you to monitor and manage system CPU performance. It provides a real-time view of system processes, CPU usage, memory usage, and more. You can use it to identify resource-intensive processes and manage system performance.
What role does the virt-manager tool play in Linux virtualization?
- Graphical tool for managing virtual machines
- Command-line tool for system administration
- Kernel module for virtualization
- Web server for virtual machine deployment
virt-manager is a graphical tool for managing virtual machines in Linux. It provides a user-friendly interface to create, configure, and manage virtual machines using various virtualization technologies, including KVM and QEMU.
A kernel that can have modules loaded and unloaded at runtime is referred to as a _________ kernel.
- modular
- dynamic
- monolithic
- micro
A kernel that can have modules loaded and unloaded at runtime is referred to as a "modular" kernel. In a modular kernel, certain functionality can be added or removed via loadable kernel modules, making it more flexible and efficient.
Which command provides information about the network connections, routing tables, and network interface statistics?
- netstat
- ping
- ifconfig
- traceroute
The 'netstat' command provides information about network connections, routing tables, and network interface statistics. It's a powerful utility for diagnosing network-related issues and displaying network statistics and connections.
protocol is considered to be highly secure and is commonly used in Linux?
- OpenVPN
- PPTP
- L2TP
- IPSec
OpenVPN is considered highly secure and commonly used in Linux. It's an open-source VPN protocol that provides strong encryption and is widely trusted for creating secure network connections.
The ________ command in Linux allows you to enforce a user to change their password upon the next login.
- passwd
- chsh
- chfn
- usermod
The "passwd" command in Linux allows you to enforce a user to change their password upon the next login. This is often used for security reasons, such as when a user's password has expired.
The _________ utility is used to create, grow, shrink, and repair ext2, ext3, and ext4 file systems.
- resize2fs
- mkfs
- df
- lsblk
The correct option is resize2fs. The resize2fs utility is used to resize (grow or shrink) ext2, ext3, and ext4 file systems. It allows you to adjust the size of the file system to match the size of the underlying disk or partition. This is a crucial tool for managing file system sizes in Linux.
In the context of containers, what does the acronym "OCI" stand for?
- Open Container Initiative
- Open Container Image
- Overarching Container Integration
- Operating Container Infrastructure
In the context of containers, "OCI" stands for the "Open Container Initiative." OCI is a standardized and open industry effort that defines container specifications and runtime standards, ensuring compatibility and portability between different container runtimes.
You are setting up a new server and need to ensure that only specific users can SSH into the machine. Which configuration file would you modify to achieve this?
- /etc/ssh/sshd_config
- /etc/hosts.allow
- /etc/ssh/authorized_keys
- /etc/passwd
To restrict SSH access to specific users, you would modify the /etc/ssh/sshd_config file. This file contains the configuration options for the SSH server, including settings related to user access, authentication, and permissions.
What is the primary keyword to start a loop that will iterate a fixed number of times in shell scripting?
- for
- while
- repeat
- loop
The primary keyword to start a loop that will iterate a fixed number of times in shell scripting is for. The for loop allows you to specify the number of iterations and is commonly used for such purposes.