The primary configuration file for setting up static routes on a Linux system is ________.
- /etc/network/interfaces
- /etc/routes
- /etc/network/routing
- /etc/sysconfig/network
The primary configuration file for setting up static routes on a Linux system is "/etc/network/interfaces." This file is used to define static routes, including the destination network, gateway, and netmask.
For an SSH server, the main configuration file is found at /etc/ssh/________.
- sshd_config
- server.conf
- ssh_config
- main.conf
For an SSH server, the main configuration file is found at /etc/ssh/**sshd_config**. This file contains various settings for the SSH server, including authentication methods, allowed users, and more.
Which file in Linux would you edit to set a system's DNS resolver addresses?
- /etc/resolv.conf
- /etc/hostname
- /etc/dns.conf
- /etc/networks
To set a system's DNS resolver addresses in Linux, you would edit the /etc/resolv.conf file. This file contains the IP addresses of the DNS servers that the system should use for domain name resolution.
The _________ command provides a snapshot of the current processes in the system.
- df
- ls
- ps
- top
The ps command in Linux provides a snapshot of the current processes in the system. It displays detailed information about running processes, including their process IDs (PIDs), CPU and memory usage, and other vital statistics.
What command can be used to view the partition table of a disk in Linux?
- fdisk
- lsblk
- diskutil
- parted
The fdisk command is used to view the partition table of a disk in Linux. It provides a detailed view of the partitions on the disk, their sizes, types, and more.
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.
In Linux, the _________ command is used to change a user's password.
- passwd
- usermod
- chmod
- pwd
In Linux, the passwd command is used to change a user's password. Users can execute this command to update their login credentials securely.
In Debian-based systems, the ________ command is used to search for packages.
- apt-cache search
- yum install
- dnf update
- pacman -Ss
In Debian-based systems, the "apt-cache search" command is used to search for packages. This command allows users to find packages in the distribution's repositories based on keywords or descriptions.
What is the primary purpose of a VPN in a Linux environment?
- Securing network communication
- Running web servers
- Managing system files
- Creating user accounts
The primary purpose of a VPN (Virtual Private Network) in a Linux environment is to secure network communication. VPNs create encrypted tunnels over public networks, ensuring data privacy and security, which is crucial for remote access and protecting sensitive information.