The _________ command provides a way to configure network interfaces, set routing information, and more, and is considered a modern replacement for ifconfig.
- network
- ipconfig
- ifup
- ip
The ip command provides a way to configure network interfaces, set routing information, and more. It is considered a modern replacement for ifconfig, which is being phased out in many Linux distributions. ip offers more extensive and flexible networking configuration options.
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 command is used to display the contents of a file in Linux?
- cat
- cd
- ls
- rm
The cat command is used to display the contents of a file in Linux. It stands for "concatenate" and is often used to view the content of text files on the terminal. You can also use it to create, combine, and display the content of files.
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.
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.
To disable the debugging mode that was enabled with set -x, you can use the command __________.
- set +x
- debug off
- stop debug
- quit
To disable the debugging mode that was enabled with set -x, you can use the command **set +x**. This command turns off the debugging mode, so the script will no longer display each command before execution. It's a useful way to end debugging when it's no longer needed.
The tool ________ is used to manage and enforce profiles within AppArmor.
- aa-status
- apparmor-status
- aa-enforce
- apparmor-enforce
The tool aa-enforce is used to manage and enforce profiles within AppArmor. It allows you to enable and enforce AppArmor profiles for specific applications or processes.
In Linux, user-specific configuration files, sometimes starting with a dot (.), are typically located in the _________ directory.
- /bin
- /etc
- /home
- /usr
In Linux, user-specific configuration files, sometimes starting with a dot (.), are typically located in the /home directory. Each user has a home directory under /home where they can store their personalized configuration files and data.