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.
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.
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 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.
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 command in Bash is used for multi-way branching?
- case
- if
- for
- while
In Bash scripting, the case command is used for multi-way branching. It is often used when you need to evaluate a variable or expression and take different actions based on its value. It's a powerful tool for creating conditional logic in scripts.
You are troubleshooting a server issue and want to continuously monitor the appended output of a log file as new content is written to it. Which command would you use?
- tail -f
- cat
- less
- grep
To continuously monitor the appended output of a log file, you would use the tail -f command. The -f option allows you to "follow" the file and see new content as it is added to the end. This is useful for real-time log monitoring.
You've encountered a script where a loop is expected to run five times, but it runs indefinitely. Which common debugging approach would you use to inspect the condition causing the loop to behave this way?
- Insert echo statements
- Set a timeout
- Use set -x
- Add more loops
To inspect the condition causing an infinite loop, you can insert echo statements within the loop to print relevant variables or check the loop counter. This allows you to understand what's happening at each iteration and identify the source of the issue. Debugging with echo statements is a common and effective approach for troubleshooting loops.
You're setting up a Linux server in an enterprise where user credentials are managed centrally. To ensure that Linux users can log in using their central credentials, which service or protocol should the Linux server support?
- LDAP
- RADIUS
- Kerberos
- TACACS+
To allow Linux users to log in using central credentials, you should support LDAP (Lightweight Directory Access Protocol). LDAP is a widely used protocol for centralizing user authentication and directory services, making it a suitable choice in enterprise environments.
You are tasked with setting up a virtualized environment on a Linux server, but you need to ensure that the virtual machines have near-native performance. Which combination of tools would best serve this purpose?
- KVM and QEMU
- VirtualBox and VMware
- Xen and Docker
- LXC and libvirt
The combination of KVM (Kernel-based Virtual Machine) and QEMU (Quick Emulator) is well-suited for creating a virtualized environment with near-native performance on a Linux server. KVM leverages hardware virtualization extensions to achieve high performance, while QEMU provides emulation for non-native architectures. This combination is commonly used for efficient virtualization.