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.
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.
To set up VPN connections in Linux, the ___________ software can be used to support multiple VPN protocols.
- OpenVPN
- SSH
- Apache
- NFS
To set up VPN connections in Linux, the OpenVPN software can be used to support multiple VPN protocols. OpenVPN is a widely used and flexible solution for creating VPNs on Linux systems.
In a shell script, which built-in variable represents the process ID of the current script?
- $PID
- $PPID
- $SID
- $$
The correct answer is d) $$, which represents the process ID (PID) of the current script. This variable is useful when you want to track or manage the script's own process. You can use it for various purposes, such as creating temporary files with unique names or monitoring the script's execution.