The ___________ file in Linux contains user account information, including UID and GID.

  • /etc/passwd
  • /etc/shadow
  • /etc/group
  • /etc/login
The /etc/passwd file in Linux contains user account information, including UID (User ID) and GID (Group ID). It stores essential user details, such as username, home directory, and default shell.

The _________ command provides a way to configure network interfaces, set routing information, and more, and is considered a modern replacement for ifconfig.

  • network
  • ipconfig
  • ifup
  • ip
The ip command provides a way to configure network interfaces, set routing information, and more. It is considered a modern replacement for ifconfig, which is being phased out in many Linux distributions. ip offers more extensive and flexible networking configuration options.

While /bin contains essential command binaries, the ________ directory contains non-essential command binaries.

  • /etc
  • /lib
  • /opt
  • /usr/bin
While /bin holds essential command binaries necessary for system boot and repair, the /usr/bin directory contains non-essential command binaries that are used by both the system and the users.

What command is used to display the contents of a file in Linux?

  • cat
  • cd
  • ls
  • rm
The cat command is used to display the contents of a file in Linux. It stands for "concatenate" and is often used to view the content of text files on the terminal. You can also use it to create, combine, and display the content of files.

Which command is used to monitor and manipulate IP traffic control settings?

  • tc
  • ipconfig
  • iptables
  • arp
The tc command is used to monitor and manipulate IP traffic control settings in Linux. It allows you to manage Quality of Service (QoS), bandwidth, and traffic shaping on network interfaces, making it a crucial tool for network administrators.

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.

In shell scripting, a loop that processes each item in a list one by one is known as a _________ loop.

  • for
  • while
  • until
  • foreach
In shell scripting, a loop that processes each item in a list one by one is known as a for loop. The "for" loop allows you to iterate through a list of items, such as files or elements in an array, and perform actions on each item. It's a fundamental construct for automation and scripting tasks.

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.

Services in Linux that start at boot and run in the background are commonly referred to as _________.

  • services
  • daemons
  • applications
  • processes
Services in Linux that start at boot and run in the background are commonly referred to as daemons. Daemons are long-running background processes that perform various tasks such as serving network requests, managing hardware devices, and more.