Which service in Linux is responsible for resolving domain names to IP addresses?

  • DNS (Domain Name System)
  • DHCP (Dynamic Host Configuration Protocol)
  • SNMP (Simple Network Management Protocol)
  • SMTP (Simple Mail Transfer Protocol)
The service responsible for resolving domain names to IP addresses in Linux is the DNS (Domain Name System). DNS servers maintain a database of domain name-to-IP address mappings and help in translating human-readable domain names to numeric IP addresses, enabling network communication.

To compare two numbers in Bash and check if they're equal, you'd use the ________ operator within a conditional statement.

  • ==
  • =
  • !=
  • <>
To compare two numbers in Bash and check if they're equal, you'd use the == operator within a conditional statement. The == operator is used for equality comparison in Bash.

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.

Which command is used to send ICMP echo requests to test network connectivity?

  • ping
  • ifconfig
  • traceroute
  • netstat
The correct command to send ICMP echo requests to test network connectivity is 'ping.' When you run 'ping' followed by an IP address or hostname, it sends ICMP echo requests to that address and waits for responses, allowing you to determine if the network connection is working.

Which symbol is used in Bash scripting to execute a command?

  • $
  • %
  • #
  • @
In Bash scripting, the '$' symbol is used to execute a command. When you prefix a command with '$', it's interpreted as a variable and executed. For example, $ ls would execute the 'ls' command.

In Debian and its derivatives, which tool is primarily used for package management?

  • APT
  • YUM
  • DNF
  • Zypper
In Debian and its derivatives, the primary tool used for package management is APT (Advanced Package Tool). APT is a package management system that allows users to install, upgrade, and remove software packages on Debian-based systems.

Which command can be used to query DNS records, including MX, NS, and SOA records?

  • nslookup
  • ifconfig
  • route
  • ping
The nslookup command can be used to query DNS (Domain Name System) records, including MX (Mail Exchange), NS (Name Server), and SOA (Start of Authority) records. It's a valuable tool for DNS troubleshooting and network diagnostics.

To change or set the UUID of a filesystem in Linux, you would use the ________ command.

  • tune2fs
  • uuidgen
  • fsck
  • resize2fs
To change or set the UUID of a filesystem in Linux, you would use the tune2fs command. This command allows you to modify various filesystem parameters, including the UUID.

If you want to view detailed information about disk usage for each directory, the __________ command would be appropriate.

  • du
  • df
  • ls
  • lsblk
If you want to view detailed information about disk usage for each directory in Linux, the du (disk usage) command would be appropriate. It displays the disk space consumed by each directory and its subdirectories.