101-500試験無料問題集「Lpi LPIC-1 Exam 101, Part 1 of 2, version 5.0 認定」
Which parameter of the ssh command specifies the location of the private key used lor login attempts?
(Specify ONLY the option name without any values or parameters)
(Specify ONLY the option name without any values or parameters)
正解:
ssh-key
What command is used to add OpenSSH private keys to a running ssh-agent instance? (Specify the command name only without any path.)
正解:
ssh-add
The /etc/_______ file lists currently mounted devices.
正解:
mtab
Explanation:
The /etc/mtab file is a system-generated file that lists all the currently mounted devices and their mount options. It is updated automatically by the mount and umount commands. It can be used to check which devices are mounted and where, as well as their filesystem type and mount options. The /etc/mtab file has the same format as the /etc/fstab file, which is a user-edited file that lists the devices that should be mounted at boot time or on demand. References:
* LPIC-1 Exam 101 Objectives, Topic 101: System Architecture, 101.1 Determine and configure hardware settings, Key Knowledge Areas, The following is a partial list of the used files, terms and utilities: /etc/mtab
* LPIC-1 101-500 Exam Prep, Section 1: System Architecture, Lesson 1.1: Determine and Configure Hardware Settings, Video: 1.1.4 Mounting and Unmounting Filesystems, Transcript: The /etc/mtab file is a system-generated file that lists all the currently mounted devices and their mount options.
Explanation:
The /etc/mtab file is a system-generated file that lists all the currently mounted devices and their mount options. It is updated automatically by the mount and umount commands. It can be used to check which devices are mounted and where, as well as their filesystem type and mount options. The /etc/mtab file has the same format as the /etc/fstab file, which is a user-edited file that lists the devices that should be mounted at boot time or on demand. References:
* LPIC-1 Exam 101 Objectives, Topic 101: System Architecture, 101.1 Determine and configure hardware settings, Key Knowledge Areas, The following is a partial list of the used files, terms and utilities: /etc/mtab
* LPIC-1 101-500 Exam Prep, Section 1: System Architecture, Lesson 1.1: Determine and Configure Hardware Settings, Video: 1.1.4 Mounting and Unmounting Filesystems, Transcript: The /etc/mtab file is a system-generated file that lists all the currently mounted devices and their mount options.
Which SysV init configuration file is commonly used to set the default run level? (Specify the full name of the file, including path.)
正解:
/etc/inittab
Explanation:
The /etc/inittab file is a plain text file that contains information about the initialization process of the system.
It defines the default run level, the available run levels, and the actions to be taken when entering or leaving a run level. The default run level is the mode of operation that the system starts up into, and it determines which services and processes are running. The default run level is specified by a line similar to the following in the
/etc/inittab file:
id:5:initdefault:
The number after the first colon indicates the default run level, which can range from 0 to 6. The meaning of each run level is:
* 0 - Halt
* 1 - Single-user text mode
* 2 - Not used (user-definable)
* 3 - Full multi-user text mode
* 4 - Not used (user-definable)
* 5 - Full multi-user graphical mode (with an X-based login screen)
* 6 - Reboot
To change the default run level, edit the /etc/inittab file as root and change the number to the desired run level. For example, to change the default run level to 3, use the following command:
sudo nano /etc/inittab
And change the line to:
id:3:initdefault:
Then save and exit the file. The changes will take effect on the next reboot.
References:
SysV Init Runlevels - Red Hat Customer Portal
F).4. SysV Init Runlevels - Red Hat Customer Portal
init - How can I see or change default run level? - Ask Ubuntu
Explanation:
The /etc/inittab file is a plain text file that contains information about the initialization process of the system.
It defines the default run level, the available run levels, and the actions to be taken when entering or leaving a run level. The default run level is the mode of operation that the system starts up into, and it determines which services and processes are running. The default run level is specified by a line similar to the following in the
/etc/inittab file:
id:5:initdefault:
The number after the first colon indicates the default run level, which can range from 0 to 6. The meaning of each run level is:
* 0 - Halt
* 1 - Single-user text mode
* 2 - Not used (user-definable)
* 3 - Full multi-user text mode
* 4 - Not used (user-definable)
* 5 - Full multi-user graphical mode (with an X-based login screen)
* 6 - Reboot
To change the default run level, edit the /etc/inittab file as root and change the number to the desired run level. For example, to change the default run level to 3, use the following command:
sudo nano /etc/inittab
And change the line to:
id:3:initdefault:
Then save and exit the file. The changes will take effect on the next reboot.
References:
SysV Init Runlevels - Red Hat Customer Portal
F).4. SysV Init Runlevels - Red Hat Customer Portal
init - How can I see or change default run level? - Ask Ubuntu