For performance tuning, the ________ command provides a real-time view of the system's current network connections.

  • netstat
  • ifconfig
  • ssh
  • ps
For performance tuning, the "netstat" command provides a real-time view of the system's current network connections. Netstat displays information about network interfaces, routing tables, masquerade connections, and more. It's a valuable tool for diagnosing network issues and monitoring network activity.

Which directory in Linux contains system configuration files?

  • /etc
  • /home
  • /opt
  • /var
The /etc directory in Linux contains system configuration files. These files store configuration settings for various system components and applications.

Which command in a shell script is used to break out of a loop prematurely?

  • break
  • continue
  • exit
  • return
The break command in a shell script is used to break out of a loop prematurely. When encountered, it immediately exits the loop and continues with the next statement after the loop. This is handy for situations where you want to exit a loop based on a specific condition.

A colleague is trying to access a directory shared via NFS from a Linux machine but is facing permission issues. Which file on the server would you check to verify the permissions and access for the shared directory?

  • /etc/exports
  • /etc/fstab
  • /etc/nfsd.conf
  • /etc/permissions
To verify permissions and access for a directory shared via NFS, you would check the /etc/exports file on the NFS server. This file specifies the directories that are shared and the permissions granted to clients.

In the context of user authentication, what is a "salt" used for?

  • Adding randomness to a password before hashing
  • Encrypting user passwords
  • Verifying the user's identity
  • Generating secure tokens
In user authentication, a "salt" is used to add randomness to a password before hashing. This helps protect against common attacks like rainbow table attacks and ensures that even the same password will have different hash values due to the unique salt.

In Docker, a _________ is a lightweight, stand-alone, executable software package that includes everything needed to run a piece of software.

  • Container
  • Image
  • Virtual Machine
  • Repository
In Docker, an "image" is a lightweight, stand-alone, executable software package that includes everything needed to run a piece of software. Docker containers are created from these images, allowing you to run applications in an isolated environment.

The Linux tool __________ allows administrators to view and set system and kernel parameters at runtime.

  • sysctl
  • top
  • ls
  • nano
The Linux tool sysctl allows administrators to view and set system and kernel parameters at runtime. It's a powerful utility for fine-tuning and configuring various aspects of the Linux kernel to optimize performance and behavior.

When creating a case statement in Bash, each case is ended with the word ________.

  • esac
  • end
  • done
  • fi
When creating a case statement in Bash, each case is ended with the word esac. The esac keyword marks the end of the case statement, and it's used to close the case block.

Which command is commonly used for securely copying files between remote systems?

  • scp
  • ls
  • cat
  • mv
The scp (secure copy) command is commonly used for securely copying files between remote systems. It uses SSH to encrypt the data during the transfer, ensuring security.

Which command in Linux is used to format a new disk partition?

  • mkfs
  • fdisk
  • format
  • mkpart
The correct answer is "fdisk." The fdisk command is used to create and manage disk partitions on a Linux system. It does not format the partition directly but is used to create and manage the partition structure. Formatting is typically done using tools like mkfs.