To restrict users from logging in via SSH, you would modify the ________ file.
- /etc/ssh/sshd_config
- /etc/ssh/ssh_config
- /etc/sshd/ssh_config
- /etc/ssh/sshd
To restrict users from logging in via SSH, you would modify the /etc/ssh/sshd_config file. This file contains configuration options for the SSH server, and you can specify access restrictions and settings here.
Which tool enforces mandatory access controls at the kernel level in Linux?
- SELinux
- AppArmor
- UAC
- sudo
SELinux (Security-Enhanced Linux) enforces mandatory access controls at the kernel level in Linux. It provides a powerful and flexible security framework that allows administrators to define fine-grained access policies for processes, files, and resources on a system.
The ___________ distribution is known for its advanced package management system called "pacman."
- Arch
- CentOS
- Fedora
- Ubuntu
The Arch distribution is known for its advanced package management system called "pacman." Arch Linux uses a rolling release model and the pacman package manager for installing, updating, and managing software packages.
What is the primary protocol used by NFS for sharing files?
- NFS
- SMB
- HTTP
- FTP
The primary protocol used by NFS (Network File System) for sharing files is NFS itself. NFS is a network protocol specifically designed for sharing files and directories among networked computers. It is commonly used in Unix and Linux environments.
Which of the following is a valid way to declare a variable in Bash?
- myVar=42
- $myVar = 42
- var myVar = 42
- set myVar 42
A valid way to declare a variable in Bash is by using the format 'myVar=42'. This assigns the value 42 to the variable 'myVar'. The '$' symbol is used to reference the variable.
What is the purpose of the $? variable in a shell script?
- It represents the process ID of the script.
- It stores the script's exit status.
- It contains the script's standard input.
- It holds the current working directory of the script.
The purpose of the $? variable in a shell script is to store the script's exit status. A value of 0 typically indicates success, while non-zero values indicate different types of errors or failures. This is essential for error checking and script control flow.
To see the history of commands executed in the terminal, you would use the ________ command.
- history
- list
- log
- trace
To see the history of commands executed in the terminal, you would use the "history" command. This command displays a list of previously executed commands, making it easier to re-run or recall commands that were used in the past.
The ________ file in Linux is used to configure network interfaces and is typically found in the /etc/network/ directory.
- interfaces
- network.conf
- ifcfg
- resolv.conf
The file in Linux used to configure network interfaces and typically found in the /etc/network/ directory is the "interfaces" file. This file contains information about network interfaces and their settings, allowing you to define and manage network connections on your system.
The ________ mechanism in Linux allows processes to communicate with each other, commonly used in IPC.
- Inter-Process Communication (IPC)
- Inter-System Communication (ISC)
- Inter-Process Messaging (IPM)
- Intra-Process Communication (IPC)
The "Inter-Process Communication (IPC)" mechanism in Linux allows processes to communicate with each other. IPC is essential for processes to exchange data and synchronize their activities, and it's commonly used in various applications and services in Linux.
Your Linux system is experiencing slow boot times. Which tool can you use to analyze the time taken by each boot process?
- systemd-analyze
- top
- iostat
- ps
To analyze the time taken by each boot process on a Linux system, you can use the systemd-analyze command. It provides detailed information about the startup time of services and processes, helping you identify bottlenecks in the boot process.