1.
According to the Filesystem Hierarchy Standard (FHS), what is the path to the Linux kernel source and may be a symbolic link to the real Linux source code? (Please specify the full path with no version information.)
Explanation
The correct answer is /usr/src/linux. According to the Filesystem Hierarchy Standard (FHS), the path to the Linux kernel source is typically located in the /usr/src directory. Within that directory, the linux folder represents the Linux kernel source code. It is important to note that this path may be a symbolic link to the actual location of the Linux source code.
2.
After installing a compiled kernel, it can not find any modules that are needed to be loaded. What make target was likely missed while installing the kernel?
Explanation
The "modules_install" make target was likely missed while installing the kernel. This target is responsible for installing the kernel modules, which are necessary for the kernel to load the required modules at runtime. Without running this target, the installed kernel will not be able to find any modules that need to be loaded, resulting in the issue mentioned in the question.
3.
A new kernel version needs to be compiled to use a new feature. If the old kernel configuration file is available, which make target creates a configuration file for the new kernel based on the configuration of the old kernel?
Explanation
The make target "oldconfig" creates a configuration file for the new kernel based on the configuration of the old kernel. This means that it takes the existing configuration file and updates it with any new options or features that are available in the new kernel version. This allows the user to easily migrate their existing configuration to the new kernel version without having to manually go through and configure each option themselves.
4.
After configuring a new kernel, what file under /usr/src/linux/ contains the configuration?
Explanation
The file ".config" under the directory "/usr/src/linux/" contains the configuration after configuring a new kernel.
5.
A database application requires a maximum shared memory segment (shmmax) of 2GB (2147483648 Bytes). Which configuration file should be modified to set this kernel parameter permanently? (Specify the full name of the file, including path.)
Explanation
The correct answer is /etc/sysctl.conf. This file is used to configure kernel parameters in a Linux system. By modifying this file, the shmmax parameter can be set to the desired value of 2GB, ensuring that the maximum shared memory segment meets the requirements of the database application.
6.
Which command is used to unload a single module currently loaded by the kernel without unloading any modules that it depends upon? (Specify the command with or without path information)
Explanation
The command "rmmod" is used to unload a single module currently loaded by the kernel without unloading any modules that it depends upon. This command allows for the removal of a specific module without affecting other modules that may be dependent on it.
7.
Which directory contains the system-specific udev rule files? (Specify the absolute path including the directory name)
Explanation
The system-specific udev rule files are located in the /etc/udev/rules.d directory. This directory contains the configuration files that define how the system should handle devices and their corresponding events. These rules are used by the udev daemon to automatically create and manage device nodes in the /dev directory, based on the events generated by the kernel.
8.
Which keyword is used in the /etc/inittab file to define the SysV-init default system runlevel?
Explanation
The keyword used in the /etc/inittab file to define the SysV-init default system runlevel is "initdefault". This keyword is used to specify the default runlevel that the system should boot into. The value assigned to this keyword determines which set of processes and services are started during the system startup process.
9.
Please enter the complete path to the main SysV init process configuration file.
Explanation
The main SysV init process configuration file is located at /etc/inittab.
10.
What is the full path to the directory which contains the scripts (or links to the original scripts) to run while the system boots to SysV-init runlevel 2?
Explanation
The full path to the directory which contains the scripts (or links to the original scripts) to run while the system boots to SysV-init runlevel 2 is /etc/rc2.d. This directory is part of the Linux system's initialization process and holds the scripts that are executed during the boot process when the system enters runlevel 2.
11.
Which file tells GRUB the paths of the filesystem partitions in both Linux format and in the GRUB syntax? (Specify the file name only with no path information)
Explanation
The file "device.map" is used by GRUB to determine the paths of the filesystem partitions in both Linux format and in the GRUB syntax. It contains a mapping between the device names used by the Linux kernel and the corresponding device names used by GRUB. This file is important for GRUB to correctly locate and boot the operating system installed on different partitions.
12.
Consider the following /etc/fstab file: /dev/hda1 swap swap defaults 0 0 /dev/hda2 / ext2 defaults 1 1 /dev/hda3 /home ext2 defaults 1 2 none /proc proc defaults 0 0 /dev/sdb1 /media/usb0 vfat user,noauto 0 0 What is one of the possible commands that an ordinary (non-root) user can use to mount the /dev/sdb1 partition on the /media/usb0 mount point? (Please enter the command with all parameters and/or options but without any file system type options.)
Explanation
An ordinary (non-root) user can use the "mount /dev/sdb1" command to mount the /dev/sdb1 partition on the /media/usb0 mount point.
13.
Which directory in /dev/disk/ can be used to determine the UUID of a connected hard disk?
Explanation
The directory "by-uuid" in the "/dev/disk/" directory can be used to determine the UUID of a connected hard disk.
14.
Which command turns an existing ext2 filesystem non-destructively into an ext3 filesystem? (Specify ONLY the command without any path or parameters.)
Explanation
The command "tune2fs" is used to modify the filesystem parameters of an ext2 filesystem. In this case, it can be used to convert an existing ext2 filesystem to an ext3 filesystem without causing any data loss. This command allows for the non-destructive transition between the two filesystem types, enabling the additional features and benefits of ext3 while preserving the existing data on the filesystem.
15.
Which command is used to create a ISO9660 filesystem? (Specify ONLY the command without any path or parameters.)
Explanation
The command "mkisofs" is used to create an ISO9660 filesystem. This command is commonly used in Linux and Unix systems to generate ISO image files. It allows users to create a file system that is compatible with the ISO9660 standard, which is commonly used for optical disc storage. By using "mkisofs", users can create ISO images that can be burned onto CDs or DVDs, making it a useful tool for creating bootable discs or archiving data.
16.
What command will remove a physical volume from a volume group? (Specify ONLY the command without any path or parameters.)
Explanation
The command "vgreduce" is used to remove a physical volume from a volume group. This command allows for the management and modification of volume groups in a Linux system. By specifying the physical volume to be removed, the vgreduce command detaches it from the volume group, allowing it to be used independently or added to another volume group if desired.
17.
Which program lists information about files and network connections opened by processes? (Specify ONLY the command without any path or parameters.)
Explanation
The program "lsof" stands for "list open files" and it is used to list information about files and network connections opened by processes. It provides a detailed report on which files and network connections are currently being accessed by running processes on a system. By using the "lsof" command, users can gather information about the files and network connections that are in use, helping to troubleshoot issues or monitor system activity.
18.
The users of the local network complain that name resolution is not fast enough. Enter the command, without the path or any options, that shows the time taken to resolve a DNS query.
Explanation
The command "time nslookup" is used to measure the time taken to resolve a DNS query. By running this command, the system will execute the nslookup command and display the time it takes for the DNS query to be resolved. This can help identify if there are any delays or performance issues with the name resolution process, which could be causing the slow response time for the users of the local network.
19.
What is the device name for the first SCSI tape drive on a system when used without automatic Exam rewinding after each write operation? (Please specify the full path to the device.)
Explanation
The correct answer is /dev/nst0. This is because /dev/nst0 is the device name for the first SCSI tape drive on a system when it is used without automatic Exam rewinding after each write operation. The /dev/nst0 path specifies the location of the device in the system's file system.
20.
Which file contains the text message that is displayed after logging into the console? (Specify the full name of the file, including path.)
Explanation
The file /etc/motd contains the text message that is displayed after logging into the console.
21.
Which file contains the message that is displayed above the login prompt of the system console? (Specify the full name of the file, including path.)
Explanation
The file /etc/issue contains the message that is displayed above the login prompt of the system console.