Which component in Docker acts as a lightweight, stand-alone, executable software package that includes everything needed to run a piece of software?
- Docker image
- Docker container
- Dockerfile
- Docker daemon
A Docker image is a lightweight, stand-alone, executable software package that includes everything needed to run a piece of software, including code, runtime, system tools, and libraries. Docker containers are instantiated from these images.
You are troubleshooting a connectivity issue on a server. You need to identify all active connections to and from the server. Which command would be most suitable for this purpose?
- netstat
- ifconfig
- ps
- top
To identify all active connections to and from a server in Linux, you would use the netstat command. netstat provides information about network connections, routing tables, interface statistics, masquerade connections, and more. It's a valuable tool for network troubleshooting.
To manage user authentication in an enterprise setting, Linux systems can integrate with _________ directories for centralized account management.
- Active Directory
- LDAP
- NIS
- RADIUS
To manage user authentication in an enterprise setting, Linux systems can integrate with LDAP (Lightweight Directory Access Protocol) directories for centralized account management. LDAP allows Linux systems to access user account information stored in a centralized directory, making it easier to manage users and their permissions across the network.
A colleague asks you to temporarily disable a user's access without deleting their account. Which Linux command allows you to achieve this?
- passwd -l
- userdel
- chmod 000
- usermod -s /sbin/nologin
To temporarily disable a user's access without deleting their account, you can use the 'passwd -l' command. This locks the user's password, preventing them from logging in until the password is unlocked.
For performance enhancement, QEMU often pairs with which Linux kernel module?
- KVM
- SELinux
- LXC
- XFS
For performance enhancement, QEMU often pairs with the Linux Kernel-based Virtual Machine (KVM) module. KVM is a kernel module that allows QEMU to leverage hardware virtualization extensions, resulting in better performance for virtual machines.
You've been tasked with setting up static IP configurations for multiple interfaces on a Linux server. In which directory and/or file would you primarily focus your configuration efforts?
- /etc/network/interfaces
- /etc/resolv.conf
- /etc/hostname
- /etc/hosts
When configuring static IP addresses for network interfaces in Linux, you would primarily focus your efforts on the "/etc/network/interfaces" file. This file is used to define network interface configurations, including static IP settings.
In Red Hat-based distributions, which command would you use to update all installed packages?
- yum update
- apt-get update
- dnf upgrade
- pacman -Syu
In Red Hat-based distributions, such as CentOS and Fedora, you would use the yum update command to update all installed packages. This command fetches and installs the latest updates for your system's software packages.
Which file on an SSH client contains the public keys of remote hosts it has connected to?
- known_hosts
- authorized_keys
- id_rsa.pub
- known_keys
The file on an SSH client that contains the public keys of remote hosts it has connected to is known_hosts. This file maintains a record of the public keys of remote servers or hosts you have previously connected to. It is used for verifying the authenticity of remote hosts during future SSH connections.
To manage multiple container deployments in an automated way, many organizations use Kubernetes, often abbreviated as _________.
- K8s
- Kube
- Kontain
- Krypton
To manage multiple container deployments in an automated way, many organizations use Kubernetes, often abbreviated as "K8s." Kubernetes is an open-source container orchestration platform that automates the deployment, scaling, and management of containerized applications.
What is the primary purpose of the echo command in Bash scripting?
- Printing output to the terminal
- Calculating mathematical expressions
- Deleting files and directories
- Running system commands
The primary purpose of the 'echo' command in Bash scripting is to print output to the terminal. It's often used to display messages, variables, or other data to the screen. For example, echo "Hello, World!" will print "Hello, World!" to the terminal.