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.
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.
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.
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.
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.
Which Linux command is used to send signals to processes, commonly used for stopping them?
- kill
- start
- halt
- pause
The 'kill' command in Linux is used to send signals to processes. It is commonly used to terminate or stop processes gracefully. By default, 'kill' sends the TERM signal to a process, but it can be used to send other signals as well, depending on the situation.
Which file in Linux is primarily used to configure the static IP address of a network interface?
- /etc/network/interfaces
- /etc/hostname
- /etc/resolv.conf
- /etc/hosts
The primary file used to configure the static IP address of a network interface in Linux is '/etc/network/interfaces.' This file contains network interface configuration settings, including IP addresses, subnet masks, and gateways for static configurations.
Which command is primarily used to view the routing table in Linux?
- route
- netstat
- ifconfig
- ping
The route command is primarily used to view the routing table in Linux. The routing table contains information about how network packets should be forwarded through the network. It displays the destination networks and the associated gateway or interface used to reach them.
When troubleshooting a network interface in promiscuous mode, you might use the ________ command.
- ifconfig
- netstat
- tcpdump
- traceroute
When troubleshooting a network interface in promiscuous mode, you might use the "tcpdump" command. Tcpdump is a powerful tool for capturing and analyzing network traffic in real-time, making it useful for diagnosing network issues.
In the context of Samba, what is the name of the configuration file that defines shared resources?
- smb.conf
- samba.ini
- samba.cfg
- smbd.conf
In the context of Samba, the name of the configuration file that defines shared resources is smb.conf. This file contains configuration settings for Samba, including the definition of shared directories, user access permissions, and more.
Which tool in Linux allows for centralized authentication, often used in corporate environments?
- LDAP (Lightweight Directory Access Protocol)
- SSH (Secure Shell)
- Cron
- Samba
LDAP (Lightweight Directory Access Protocol) is the tool in Linux that allows for centralized authentication, often used in corporate environments. It provides a way to maintain a directory of users and their access privileges, making it easier to manage user accounts across multiple systems.
What is the significance of the $$ variable in a shell script?
- It represents the parent process ID.
- It represents the user's home directory.
- It represents the current working directory.
- It represents the process ID of the current script.
The correct answer is d) It represents the process ID of the current script. The $$ variable is used to access the unique process identifier assigned to the running script. It's valuable for tasks like creating temporary files or ensuring script uniqueness.