Which option with the ssh command specifies a different port for connection?

  • -p
  • -s
  • -l
  • -r
The correct option is -p. When using the ssh command, you can specify a different port for the connection using the -p option followed by the port number (e.g., ssh -p 2222 user@hostname). This is useful when an SSH server is configured to listen on a non-default port.

In the context of package management, what does the term "repository" refer to?

  • A centralized location where software packages are stored and maintained.
  • A virtual environment used for package testing.
  • A command used to remove packages from a Linux system.
  • A file containing package metadata.
In package management, a "repository" refers to a centralized location where software packages are stored and maintained. These repositories contain packages that can be downloaded, installed, or updated on a Linux system using package management tools.

The ________ command in Linux is used to send a signal to a process, often used for termination.

  • continue
  • kill
  • pause
  • stop
The kill command in Linux is used to send a signal to a process, often used for termination. It allows you to gracefully terminate or send specific signals to processes, giving you control over their behavior.

You've been tasked with setting up a Linux server that can share files with Windows clients in the network, ensuring they can access it seamlessly. Which software would you primarily consider installing?

  • Samba
  • NFS
  • SSH
  • FTP
To enable seamless file sharing with Windows clients, you would primarily consider installing Samba. Samba is a software suite that allows interoperability between Linux/Unix servers and Windows-based clients. It provides support for the SMB/CIFS protocol used in Windows networking.

Which command displays a visual representation of disk usage in Linux?

  • ncdu
  • dd
  • du
  • df
The correct command to display a visual representation of disk usage in Linux is ncdu. It stands for "NCurses Disk Usage" and provides a detailed and interactive view of disk usage, allowing users to navigate through directories and identify space-consuming files or folders. Unlike the other options, ncdu is specifically designed for this purpose.

When debugging, which shell built-in command can be used to read and execute commands from a file?

  • source
  • execute
  • run
  • debug
When debugging in shell scripting, the source command (or . for short) is used to read and execute commands from a file. This is often used to include external script files or configuration files into the current script, allowing you to reuse code or set environment variables.

When configuring SSH key-based authentication, which file is typically modified on the server?

  • ~/.ssh/id_rsa
  • /etc/passwd
  • /etc/ssh/sshd_config
  • /etc/sudoers
When configuring SSH key-based authentication on the server, the typical file to modify is /etc/ssh/sshd_config. This file contains configuration settings for the SSH server, including options related to key-based authentication.

Which command allows you to change directories in the terminal?

  • cat
  • cd
  • ls
  • pwd
The cd command is used to change directories in the terminal. It stands for "change directory," and it is essential for navigating the Linux file system. You can use it to move between different directories or folders.

When partitioning a disk, what is the primary partition limit on an MBR disk?

  • 4
  • 2
  • 8
  • 16
When partitioning a disk using the Master Boot Record (MBR) partitioning scheme, you can create up to 4 primary partitions. This is a limitation of the MBR scheme, and to create more partitions, you would need to use extended or logical partitions.

When setting up SSH for the first time, the server-side cryptographic keys are stored in the /etc/ssh/________ directory.

  • ssh_keys
  • certs
  • ssh_host_keys
  • crypto
When setting up SSH for the first time, the server-side cryptographic keys are stored in the /etc/ssh/ssh_host_keys directory. These keys are crucial for secure SSH communication.