In SSH, the private key should be kept secure and the ________ key is added to the server for authentication.
- Public
- Shared
- Admin
- Root
In SSH, the private key should be kept secure, and the public key is added to the server for authentication. The server uses the public key to verify the identity of the connecting client.
What kernel component is responsible for memory management, including allocation and page replacement?
- Memory Management Unit (MMU)
- Page Table
- Virtual Memory Manager
- Kernel Scheduler
The kernel component responsible for memory management, including memory allocation and page replacement, is the Virtual Memory Manager (VMM). The VMM is an integral part of the Linux kernel and ensures efficient utilization of physical and virtual memory resources.
Which Samba tool is used for checking the configuration file for errors?
- testparm
- smbstatus
- smbtree
- smbpasswd
The testparm tool in Samba is used to check the configuration file for errors. It helps you validate your Samba configuration to ensure that it is correctly formatted and free of syntax errors. Running testparm is a useful step in troubleshooting Samba configuration issues.
Which Linux distribution is commercially backed by Canonical?
- CentOS
- Debian
- Fedora
- Ubuntu
Ubuntu is a Linux distribution that is commercially backed by Canonical. Canonical provides support and services for Ubuntu, making it a popular choice for both desktop and server environments.
You're creating a script that should take different actions based on the day of the week. Which Bash construct would be most suitable for this?
- if...else statements
- case statement
- for loop
- while loop
The most suitable Bash construct for taking different actions based on the day of the week is the case statement. You can use case to evaluate the value of the day and define different actions for each day. Options 1, 3, and 4 are not specifically designed for this purpose; they serve different scripting needs.
QEMU can be used for hardware emulation, but when paired with KVM, it leverages _________ virtualization for better performance.
- Hardware
- Software
- Hypervisor
- Full
QEMU, when paired with KVM (Kernel-based Virtual Machine), leverages "hardware" virtualization for better performance. Hardware virtualization allows the virtual machine to directly access the physical hardware, resulting in improved performance compared to software emulation.
Which command allows you to change the expiration date of a user's password in Linux?
- chage
- passwd
- usermod
- pwm
The chage command in Linux allows you to change the expiration date of a user's password. It provides a range of options to manage password-related settings, including password expiration.
When a script is not behaving as expected, you can add the _________ option at the top of the script to display each command before it's executed.
- set -x
- debug -on
- trace -all
- verbose -true
When a script is not behaving as expected, you can add the set -x option at the top of the script to display each command before it's executed. This is a valuable debugging technique that helps you identify issues in your script by showing each command as it is processed.
Which of the following is a common method to secure SSH beyond just password authentication?
- Enforcing key-based authentication
- Using a weak password
- Disabling SSH
- Keeping SSH configuration default
A common method to secure SSH beyond just password authentication is to enforce key-based authentication. This method increases security by requiring users to possess a private key in addition to their password, making it much more difficult for unauthorized users to access the system.
You are writing a script that requires parsing command-line options with both short and long formats. Which command would you likely use?
- getopts
- getopt
- parseargs
- getoptlong
You would likely use the getopt command to parse command-line options with both short and long formats. getopt is a versatile command for handling command-line arguments and options in shell scripts, allowing you to specify both short and long options.