Lpi LPIC-1 Exam 102, Part 2 of 2, version 5.0 (102-500 Deutsch Version) - 102-500 Deutsch 模擬練習
Was sollte der Administrator tun, um zu verhindern, dass ein bestimmter Benutzer Aufgaben mit at plant?
正解: E
解説: (PassTest メンバーにのみ表示されます)
Die Zeitzone des Systems kann durch Verknüpfen von / etc / localtime mit einer entsprechenden Datei in welchem Verzeichnis festgelegt werden? (Geben Sie den vollständigen Pfad zum Verzeichnis ohne Länderinformationen an.)
正解:
usrsharezoneinfo
Explanation:
The /usr/share/zoneinfo directory contains the binary time zone files that are used by the system to determine the local time for any region. The files are organized in subdirectories by continent, country, or ocean. Some files represent the standard time zones, while others may have historical or political variations. To set the system's timezone, one can create a symbolic link from /etc/localtime to the appropriate file in the /usr/share/zoneinfo directory. For example, to set the timezone to America/New_York, one can use the command sudo ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime. Alternatively, one can use the timedatectl command to set the timezone without creating the link manually. Reference:
How to Set or Change the Time Zone in Linux | Linuxize
4 Ways to Change the Timezone in Linux - wikiHow
Explanation:
The /usr/share/zoneinfo directory contains the binary time zone files that are used by the system to determine the local time for any region. The files are organized in subdirectories by continent, country, or ocean. Some files represent the standard time zones, while others may have historical or political variations. To set the system's timezone, one can create a symbolic link from /etc/localtime to the appropriate file in the /usr/share/zoneinfo directory. For example, to set the timezone to America/New_York, one can use the command sudo ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime. Alternatively, one can use the timedatectl command to set the timezone without creating the link manually. Reference:
How to Set or Change the Time Zone in Linux | Linuxize
4 Ways to Change the Timezone in Linux - wikiHow
Mit welchem der folgenden Befehle werden alle Druckaufträge in der Warteschlange aufgelistet?
正解: E
解説: (PassTest メンバーにのみ表示されます)
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.)
正解:
etcxinetddetcxinetdd
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. Reference:
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. Reference:
How to configure xinetd ? - Red Hat Customer Portal
Understanding /etc/xinetd.d directory under Linux
xinetd - Wikipedia
Welcher Befehl kann abhängig von seinen Optionen die offenen Netzwerkverbindungen, die Routingtabellen sowie die Netzwerkschnittstellenstatistik anzeigen. (Geben Sie NUR den Befehl ohne Pfad oder Parameter an.)
正解:
etstatbinnetstatssusrbinss
Explanation:
The netstat command, meaning network statistics, is a command-line utility in the Linux system to display network configuration and activity, including network connections, routing tables, interface statistics, masquerade connections, and multicast memberships1. The netstat command can display different types of network data depending on the command line option selected. Some of the common options are:
-a: This option displays active TCP connections, TCP connections with the listening state, as well as UDP ports that are being listened to.
-r: This option displays the routing table information, which is a list of rules that determine where the packets are sent.
-i: This option displays the network interface information, such as the name, MTU, RX-OK, TX-OK, etc.
-s: This option displays the network statistics by protocol, such as TCP, UDP, ICMP, IP, etc.
For example, to display the open network connections, one can run:
netstat -a
To display the routing table, one can run:
netstat -r
To display the network interface statistics, one can run:
netstat -i
To display the network statistics by protocol, one can run:
netstat -s
For more details and examples, please refer to the web search results1 or the question answering results2. Reference:
https://netref.soe.ucsc.edu/node/7
https://bing.com/search?q=command+to+display+network+connections%2c+routing+tables%2c+and+interface+statistics
Explanation:
The netstat command, meaning network statistics, is a command-line utility in the Linux system to display network configuration and activity, including network connections, routing tables, interface statistics, masquerade connections, and multicast memberships1. The netstat command can display different types of network data depending on the command line option selected. Some of the common options are:
-a: This option displays active TCP connections, TCP connections with the listening state, as well as UDP ports that are being listened to.
-r: This option displays the routing table information, which is a list of rules that determine where the packets are sent.
-i: This option displays the network interface information, such as the name, MTU, RX-OK, TX-OK, etc.
-s: This option displays the network statistics by protocol, such as TCP, UDP, ICMP, IP, etc.
For example, to display the open network connections, one can run:
netstat -a
To display the routing table, one can run:
netstat -r
To display the network interface statistics, one can run:
netstat -i
To display the network statistics by protocol, one can run:
netstat -s
For more details and examples, please refer to the web search results1 or the question answering results2. Reference:
https://netref.soe.ucsc.edu/node/7
https://bing.com/search?q=command+to+display+network+connections%2c+routing+tables%2c+and+interface+statistics
Mit welchem Befehl können Syslog-Einträge beliebiger Einrichtung und Priorität generiert werden? (Geben Sie nur den Befehlsnamen ohne Pfad an.)
正解:
logger
Explanation:
The logger command can be used to generate syslog entries of any facility and priority. It is a shell command interface to the syslog system log module. It allows users to write messages to the system log from the command line or from a script. The logger command supports several options to specify the facility, priority, tag, message, and other attributes of the log entry. For example, the following command generates a log entry with the facility user and the priority info:
logger -p user.info "This is a test message"
The facility and priority can be any of the values defined in the syslog protocol, such as kern, mail, auth, local0, etc. for the facility, and emerg, alert, crit, err, warn, notice, info, debug, etc. for the priority. The default facility is user and the default priority is notice. The logger command can also read messages from standard input or from a file. For more information, see the logger man page or the logger - Linux man page online. Reference:
Syslogs in Linux: Understanding Facilities and Levels
What are Syslog Facilities and Levels? - Trend Micro
syslog-ng Open Source Edition 3.30 - Administration Guide
Syslog Logging Guide: Advanced Concepts - CrowdStrike
Explanation:
The logger command can be used to generate syslog entries of any facility and priority. It is a shell command interface to the syslog system log module. It allows users to write messages to the system log from the command line or from a script. The logger command supports several options to specify the facility, priority, tag, message, and other attributes of the log entry. For example, the following command generates a log entry with the facility user and the priority info:
logger -p user.info "This is a test message"
The facility and priority can be any of the values defined in the syslog protocol, such as kern, mail, auth, local0, etc. for the facility, and emerg, alert, crit, err, warn, notice, info, debug, etc. for the priority. The default facility is user and the default priority is notice. The logger command can also read messages from standard input or from a file. For more information, see the logger man page or the logger - Linux man page online. Reference:
Syslogs in Linux: Understanding Facilities and Levels
What are Syslog Facilities and Levels? - Trend Micro
syslog-ng Open Source Edition 3.30 - Administration Guide
Syslog Logging Guide: Advanced Concepts - CrowdStrike
Was ist der unprivilegierte TCP-Port mit der niedrigsten Nummer? (Geben Sie die Nummer nur in Ziffern an.)
正解:
1024
Explanation:
The lowest numbered unprivileged TCP port is 1024. A port number is a 16-bit unsigned integer, thus ranging from 0 to 65535. The port numbers in the range from 0 to 1023 are the well-known ports or system ports. They are used by system processes that provide widely used types of network services. On Unix-like operating systems, a process must execute with superuser privileges to be able to bind a network socket to an IP address using one of the well-known ports. Therefore, the lowest numbered port that can be used by a normal user without root access is 1024, which is the first unprivileged port123 Reference:
1: How to bind to port number less than 1024 with non root access?
2: lowest numbered unprivileged TCP port - Bing
3: List of TCP and UDP port numbers - Wikipedia
4: Privileged Ports - World Wide Web Consortium (W3C)
5: What is the lowest TCP port number? - TeachersCollegesj
Explanation:
The lowest numbered unprivileged TCP port is 1024. A port number is a 16-bit unsigned integer, thus ranging from 0 to 65535. The port numbers in the range from 0 to 1023 are the well-known ports or system ports. They are used by system processes that provide widely used types of network services. On Unix-like operating systems, a process must execute with superuser privileges to be able to bind a network socket to an IP address using one of the well-known ports. Therefore, the lowest numbered port that can be used by a normal user without root access is 1024, which is the first unprivileged port123 Reference:
1: How to bind to port number less than 1024 with non root access?
2: lowest numbered unprivileged TCP port - Bing
3: List of TCP and UDP port numbers - Wikipedia
4: Privileged Ports - World Wide Web Consortium (W3C)
5: What is the lowest TCP port number? - TeachersCollegesj
Was ist der Zweck eines Screenreaders?
正解: B
解説: (PassTest メンバーにのみ表示されます)
Welcher Befehl sollte zu / etc / bash_profile hinzugefügt werden, um die Nachrichtensprache von einem internationalisierten Programm auf Portugiesisch (pt) zu ändern? (Wählen Sie ZWEI richtige Antworten)
正解: B,C
解説: (PassTest メンバーにのみ表示されます)
Mit welchem Befehl wird dem System eine leere Gruppe hinzugefügt? (Geben Sie NUR den Befehl ohne Pfad oder Parameter an.)
正解:
groupaddusrsbingroupadd
Explanation:
The groupadd command is used to add an empty group to the system. It takes the name of the group as an argument and creates an entry for it in the /etc/group file. The groupadd command also assigns a unique group ID (GID) to the new group. The groupadd command can take various options to specify the GID, the password, and other attributes of the new group. For example, groupadd -g 1000 mygroup will create a new group named mygroup with a GID of 1000. Reference:
Linux Groups - javatpoint
groupadd(8) - Linux manual page
How to Add and Delete User Groups on Linux
Explanation:
The groupadd command is used to add an empty group to the system. It takes the name of the group as an argument and creates an entry for it in the /etc/group file. The groupadd command also assigns a unique group ID (GID) to the new group. The groupadd command can take various options to specify the GID, the password, and other attributes of the new group. For example, groupadd -g 1000 mygroup will create a new group named mygroup with a GID of 1000. Reference:
Linux Groups - javatpoint
groupadd(8) - Linux manual page
How to Add and Delete User Groups on Linux
Welcher der folgenden Einträge in /etc/syslog.conf schreibt alle E-Mail-bezogenen Ereignisse in die Datei /var/log/maillog und sendet alle kritischen Ereignisse an den Remote-Server logger.example.com?
正解: C
解説: (PassTest メンバーにのみ表示されます)
Welche der folgenden Dateien weist einen Benutzer seiner primären Gruppe zu?
正解: D
解説: (PassTest メンバーにのみ表示されます)
Welche der folgenden Änderungen können als Folge der Verwendung des Befehls ip auftreten? (Wählen Sie drei aus.)
正解: A,B,D
解説: (PassTest メンバーにのみ表示されます)
Welche der folgenden Methoden ist die beste Methode, um alle definierten Shell-Variablen aufzulisten?
正解: A
解説: (PassTest メンバーにのみ表示されます)
Wie viele IP-Adressen können für eindeutige Hosts im IPv4-Subnetz 192.168.2.128/28 verwendet werden? (Geben Sie die Nummer nur ohne zusätzliche Informationen an.)
正解:
14
Explanation:
To find the number of IP-addresses that can be used for unique hosts inside an IPv4 subnet, we need to calculate the number of bits that are used for the host part of the IP address. The host part is the part that is not used for the network prefix, which is indicated by the slash notation (/) followed by a number. The number after the slash represents the number of bits that are used for the network prefix, out of the total 32 bits of an IPv4 address. The remaining bits are used for the host part. For example, in the subnet 192.168.2.128/28, the number 28 means that the first 28 bits are used for the network prefix, and the last 4 bits are used for the host part.
The number of IP-addresses that can be used for unique hosts is equal to 2^n - 2, where n is the number of bits in the host part. The -2 is because the first and the last IP addresses in a subnet are reserved for the network address and the broadcast address, respectively, and cannot be assigned to hosts. Therefore, in the subnet 192.168.2.128/28, the number of IP-addresses that can be used for unique hosts is 2^4 - 2, which is 14.
Reference:
IPv4 - Subnetting - Online Tutorials Library
IP Subnet Calculator
Explanation:
To find the number of IP-addresses that can be used for unique hosts inside an IPv4 subnet, we need to calculate the number of bits that are used for the host part of the IP address. The host part is the part that is not used for the network prefix, which is indicated by the slash notation (/) followed by a number. The number after the slash represents the number of bits that are used for the network prefix, out of the total 32 bits of an IPv4 address. The remaining bits are used for the host part. For example, in the subnet 192.168.2.128/28, the number 28 means that the first 28 bits are used for the network prefix, and the last 4 bits are used for the host part.
The number of IP-addresses that can be used for unique hosts is equal to 2^n - 2, where n is the number of bits in the host part. The -2 is because the first and the last IP addresses in a subnet are reserved for the network address and the broadcast address, respectively, and cannot be assigned to hosts. Therefore, in the subnet 192.168.2.128/28, the number of IP-addresses that can be used for unique hosts is 2^4 - 2, which is 14.
Reference:
IPv4 - Subnetting - Online Tutorials Library
IP Subnet Calculator