102-500 Deutsch 無料問題集「Lpi LPIC-1 Exam 102, Part 2 of 2, version 5.0 (102-500 Deutsch Version)」
Standardmäßig wird der Inhalt des Verzeichnisses in das Ausgangsverzeichnis eines neuen Benutzers kopiert, wenn das Konto erstellt wird, indem die Option -m an den Befehl useradd übergeben wird. (Geben Sie den vollständigen Pfad zum Verzeichnis an.)
正解:
/etc/skel
Explanation:
The /etc/skel directory contains files and directories that are used as a template for creating a new user's home directory. The useradd command uses the -m (or --create-home) option to create the user home directory as
/home/username and copy the files from /etc/skel to it. The files in /etc/skel are typically initialization files such as .bashrc, .profile, and .bash_logout that set the user's environment variables, aliases, and other preferences. The system administrator can customize the /etc/skel directory to provide a consistent and convenient initial setup for new users. References:
https://www.howtouselinux.com/post/create-new-user-with-home-directory-in-linux
https://linuxize.com/post/how-to-create-users-in-linux-using-the-useradd-command/
Explanation:
The /etc/skel directory contains files and directories that are used as a template for creating a new user's home directory. The useradd command uses the -m (or --create-home) option to create the user home directory as
/home/username and copy the files from /etc/skel to it. The files in /etc/skel are typically initialization files such as .bashrc, .profile, and .bash_logout that set the user's environment variables, aliases, and other preferences. The system administrator can customize the /etc/skel directory to provide a consistent and convenient initial setup for new users. References:
https://www.howtouselinux.com/post/create-new-user-with-home-directory-in-linux
https://linuxize.com/post/how-to-create-users-in-linux-using-the-useradd-command/
In welchem Verzeichnis befinden sich die Dateien, die den xinetd-Dienst konfigurieren, wenn mehrere Konfigurationsdateien anstelle einer integrierten Konfigurationsdatei verwendet werden? (Geben Sie den vollständigen Pfad zum Verzeichnis an.)
正解:
/etc/xinetd.d/, /etc/xinetd.d
Explanation:
The /etc/xinetd.d/ directory holds the files that configure the xinetd service when using several configuration files instead of an integrated configuration file. Each file in this directory corresponds to a specific service that is managed by xinetd, such as telnet, ftp, ssh, etc. The name of the file matches the name of the service. The files in this directory contain service-specific options that override or supplement the global options defined in the /etc/xinetd.conf file. The files are read only when the xinetd service is started, so any changes require a restart of the service. The /etc/xinetd.d/ directory allows for a modular and flexible configuration of the xinetd service, as well as easier management and maintenance of the individual service files. References:
* How to configure xinetd ? - Red Hat Customer Portal
* Understanding /etc/xinetd.d directory under Linux
* xinetd - Wikipedia
Explanation:
The /etc/xinetd.d/ directory holds the files that configure the xinetd service when using several configuration files instead of an integrated configuration file. Each file in this directory corresponds to a specific service that is managed by xinetd, such as telnet, ftp, ssh, etc. The name of the file matches the name of the service. The files in this directory contain service-specific options that override or supplement the global options defined in the /etc/xinetd.conf file. The files are read only when the xinetd service is started, so any changes require a restart of the service. The /etc/xinetd.d/ directory allows for a modular and flexible configuration of the xinetd service, as well as easier management and maintenance of the individual service files. References:
* How to configure xinetd ? - Red Hat Customer Portal
* Understanding /etc/xinetd.d directory under Linux
* xinetd - Wikipedia
Welcher Befehl zeigt alle in der aktuellen Shell definierten Aliase an? (Geben Sie den Befehl ohne Pfadangabe an.)
正解:
alias, alias -p
Explanation:
The alias command is used to create, list, or remove aliases in the current shell. An alias is a short name that refers to another command, usually with some options or arguments. Aliases are useful for saving typing time, avoiding spelling errors, or customizing the behavior of commands. To list all the aliases defined in the current shell, we can use the alias command without any arguments. This will print the aliases in the format of alias name='command'123.For example:
$ alias alias cp='cp -i' alias l='ls -CF' alias la='ls -A' alias ll='ls -alF' alias mv='mv -i' alias rm='rm -i' The output shows that some common commands, such as cp, mv, and rm, have aliases that add the -i option, which prompts the user before overwriting or deleting files. The l, la, and ll aliases are shortcuts for different variations of the ls command, which lists files and directories123.
References: 1: List All Available Commands and Aliases in Linux - Baeldung 2: get all aliases in linux shell - Stack Overflow 3: How to list all aliases on Linux - Linux Tutorials - Learn Linux Configuration
Explanation:
The alias command is used to create, list, or remove aliases in the current shell. An alias is a short name that refers to another command, usually with some options or arguments. Aliases are useful for saving typing time, avoiding spelling errors, or customizing the behavior of commands. To list all the aliases defined in the current shell, we can use the alias command without any arguments. This will print the aliases in the format of alias name='command'123.For example:
$ alias alias cp='cp -i' alias l='ls -CF' alias la='ls -A' alias ll='ls -alF' alias mv='mv -i' alias rm='rm -i' The output shows that some common commands, such as cp, mv, and rm, have aliases that add the -i option, which prompts the user before overwriting or deleting files. The l, la, and ll aliases are shortcuts for different variations of the ls command, which lists files and directories123.
References: 1: List All Available Commands and Aliases in Linux - Baeldung 2: get all aliases in linux shell - Stack Overflow 3: How to list all aliases on Linux - Linux Tutorials - Learn Linux Configuration