The ___________ file in Linux contains user account information, including UID and GID.
- /etc/passwd
- /etc/shadow
- /etc/group
- /etc/login
The /etc/passwd file in Linux contains user account information, including UID (User ID) and GID (Group ID). It stores essential user details, such as username, home directory, and default shell.
The command ________ provides real-time statistics about network connections, both incoming and outgoing.
- netstat
- iftop
- nmap
- telnet
The command "iftop" provides real-time statistics about network connections, both incoming and outgoing. It displays a list of network connections and their data transfer rates, making it useful for monitoring network activity.
While /bin contains essential command binaries, the ________ directory contains non-essential command binaries.
- /etc
- /lib
- /opt
- /usr/bin
While /bin holds essential command binaries necessary for system boot and repair, the /usr/bin directory contains non-essential command binaries that are used by both the system and the users.
What is the primary role of the System Call Interface in the Linux kernel?
- Providing an interface for user programs to interact with the kernel
- Managing the file system
- Allocating memory for processes
- Scheduling processes
The primary role of the System Call Interface in the Linux kernel is to provide an interface for user programs to interact with the kernel. System calls are the gateway through which user applications request services from the kernel, such as file operations, process control, and hardware access.
You're debugging a script and notice that an operation splits a string incorrectly. You suspect it might be related to the field separator. Which built-in variable should you check?
- IFS (Internal Field Separator)
- FS (Field Separator)
- OFS (Output Field Separator)
- RS (Record Separator)
You should check the IFS (Internal Field Separator) built-in variable. It determines how fields are separated when splitting strings. Changing the IFS value can affect string splitting and tokenization in scripts, so it's essential to inspect and modify it when debugging string manipulation issues.
For a system running the Linux kernel, where are module configuration files typically stored?
- /etc/modprobe.d/
- /var/modules
- /usr/lib/kernel/modules
- /opt/kernelconfig
For a system running the Linux kernel, module configuration files are typically stored in the '/etc/modprobe.d/' directory. These files are used to configure the behavior and options of kernel modules, allowing users to customize module settings and behavior.
In SSH, the private key should be kept secure and the ________ key is added to the server for authentication.
- Public
- Shared
- Admin
- Root
In SSH, the private key should be kept secure, and the public key is added to the server for authentication. The server uses the public key to verify the identity of the connecting client.
What kernel component is responsible for memory management, including allocation and page replacement?
- Memory Management Unit (MMU)
- Page Table
- Virtual Memory Manager
- Kernel Scheduler
The kernel component responsible for memory management, including memory allocation and page replacement, is the Virtual Memory Manager (VMM). The VMM is an integral part of the Linux kernel and ensures efficient utilization of physical and virtual memory resources.
Which Samba tool is used for checking the configuration file for errors?
- testparm
- smbstatus
- smbtree
- smbpasswd
The testparm tool in Samba is used to check the configuration file for errors. It helps you validate your Samba configuration to ensure that it is correctly formatted and free of syntax errors. Running testparm is a useful step in troubleshooting Samba configuration issues.
Which Linux distribution is commercially backed by Canonical?
- CentOS
- Debian
- Fedora
- Ubuntu
Ubuntu is a Linux distribution that is commercially backed by Canonical. Canonical provides support and services for Ubuntu, making it a popular choice for both desktop and server environments.