Lpi LPIC-1 Exam 102, Part 2 of 2, version 5.0 (102-500 Deutsch Version) - 102-500 Deutsch Exam Practice Test
Wie viele IP-Adressen können für eindeutige Hosts im IPv4-Subnetz 192.168.2.128/26 verwendet werden?
Correct Answer: C
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
Welche der folgenden Hostadressen sind für das Subnetz 203.0.113.64/28 gültig? (Wählen Sie ZWEI richtige Antworten.)
Correct Answer: B,E
Was stimmt mit dem Feld "Hop Limit" im IPv6-Header?
Correct Answer: A
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
In welchem Verzeichnis in / etc wird eine Beispielkopie von Dateien und Verzeichnissen gespeichert, wenn ein neuer Benutzer ein Basisverzeichnis erstellt hat? (Bitte geben Sie den vollständigen Pfad an)
Correct Answer:
etcskeletcskel
Explanation:
The /etc/skel directory is used to keep a sample copy of files and directories for when a new user has a home directory created. The /etc/skel directory contains files and directories that are automatically copied over to a new user's home directory when such user is created by the useradd or adduser command. The /etc/skel directory allows the system administrator to create a standard environment for all new users on the system. For example, the /etc/skel directory may contain a default .bashrc file that sets some aliases and environment variables for the new user, or a default .profile file that executes some commands at login. The /etc/skel directory may also contain subdirectories such as .ssh or .config that store configuration files for various applications or services. The name /etc/skel comes from the word "skeleton", as it provides a basic structure for the new user's home directory. Reference:
[Linux User Administration]
[Linux Directory Structure]
Explanation:
The /etc/skel directory is used to keep a sample copy of files and directories for when a new user has a home directory created. The /etc/skel directory contains files and directories that are automatically copied over to a new user's home directory when such user is created by the useradd or adduser command. The /etc/skel directory allows the system administrator to create a standard environment for all new users on the system. For example, the /etc/skel directory may contain a default .bashrc file that sets some aliases and environment variables for the new user, or a default .profile file that executes some commands at login. The /etc/skel directory may also contain subdirectories such as .ssh or .config that store configuration files for various applications or services. The name /etc/skel comes from the word "skeleton", as it provides a basic structure for the new user's home directory. Reference:
[Linux User Administration]
[Linux Directory Structure]
Welche Datei wird von newaliases verarbeitet? (Geben Sie den vollständigen Namen der Datei einschließlich Pfad an.)
Correct Answer:
etcmailalia
Nach dem Konfigurieren des Druckvorgangs auf einem Linux-Server sendet der Administrator eine Testdatei an einen der Drucker und der Druck schlägt fehl. Mit welchem Befehl kann der Status der Druckerwarteschlange angezeigt werden? (Geben Sie NUR den Befehl ohne Pfad oder Parameter an.)
Correct Answer:
lpqusrbinlpqlpstatusrbinlpstat
Explanation:
The command lpq can be used to display the status of the printer's queue on a Linux server. The lpq command is part of the cups-bsd package, which provides the Berkeley commands for CUPS (Common UNIX Printing System), the standard printing system for Linux. The lpq command shows the status of a specified printer or the default printer if none is specified. It also lists the jobs that are queued for printing, along with their job IDs, owners, sizes, and names12. For example, to display the status of the printer lp1, we can use the following command:
$ lpq -P lp1
lp1 is ready
Rank Owner Job File(s) Total Size
active user1 123 test.txt 1024 bytes
1st user2 124 report.pdf 2048 bytes
The output shows that the printer lp1 is ready, and that there are two jobs in the queue, one of which is active and the other is waiting. The output also shows the owners, job IDs, file names, and sizes of the jobs. To display the status of all printers, we can use the -a option:
$ lpq -a
lp1 is ready
Rank Owner Job File(s) Total Size
active user1 123 test.txt 1024 bytes
1st user2 124 report.pdf 2048 bytes
lp2 is ready
no entries
The output shows that there are two printers, lp1 and lp2, and that lp2 has no entries in the queue. To display more information about the jobs, such as the priority, submission time, and status, we can use the -l option:
$ lpq -l -P lp1
lp1 is ready
Rank Owner Job File(s) Total Size
active user1 123 test.txt 1024 bytes
priority 50 Apr 27 10:00 processing since Apr 27 10:01
1st user2 124 report.pdf 2048 bytes
priority 50 Apr 27 10:05 waiting for lp1
The output shows that the jobs have the same priority, and that the first job is processing while the second job is waiting. The lpq command can be useful for troubleshooting printing problems, such as checking if the printer is ready, if there are any stuck or failed jobs, or if there are any conflicts or delays in the queue34. Reference: 1: lpq(1) - Linux manual page 2: How to Use the lp Command in Linux to Print Files From Terminal - Make Tech Easier 3: Linux sysadmin printing reference guide - PenguinTutor 4: How to manage print jobs on Linux - Network World
Explanation:
The command lpq can be used to display the status of the printer's queue on a Linux server. The lpq command is part of the cups-bsd package, which provides the Berkeley commands for CUPS (Common UNIX Printing System), the standard printing system for Linux. The lpq command shows the status of a specified printer or the default printer if none is specified. It also lists the jobs that are queued for printing, along with their job IDs, owners, sizes, and names12. For example, to display the status of the printer lp1, we can use the following command:
$ lpq -P lp1
lp1 is ready
Rank Owner Job File(s) Total Size
active user1 123 test.txt 1024 bytes
1st user2 124 report.pdf 2048 bytes
The output shows that the printer lp1 is ready, and that there are two jobs in the queue, one of which is active and the other is waiting. The output also shows the owners, job IDs, file names, and sizes of the jobs. To display the status of all printers, we can use the -a option:
$ lpq -a
lp1 is ready
Rank Owner Job File(s) Total Size
active user1 123 test.txt 1024 bytes
1st user2 124 report.pdf 2048 bytes
lp2 is ready
no entries
The output shows that there are two printers, lp1 and lp2, and that lp2 has no entries in the queue. To display more information about the jobs, such as the priority, submission time, and status, we can use the -l option:
$ lpq -l -P lp1
lp1 is ready
Rank Owner Job File(s) Total Size
active user1 123 test.txt 1024 bytes
priority 50 Apr 27 10:00 processing since Apr 27 10:01
1st user2 124 report.pdf 2048 bytes
priority 50 Apr 27 10:05 waiting for lp1
The output shows that the jobs have the same priority, and that the first job is processing while the second job is waiting. The lpq command can be useful for troubleshooting printing problems, such as checking if the printer is ready, if there are any stuck or failed jobs, or if there are any conflicts or delays in the queue34. Reference: 1: lpq(1) - Linux manual page 2: How to Use the lp Command in Linux to Print Files From Terminal - Make Tech Easier 3: Linux sysadmin printing reference guide - PenguinTutor 4: How to manage print jobs on Linux - Network World
Mit welchem Befehl wird dem System eine leere Gruppe hinzugefügt? (Geben Sie NUR den Befehl ohne Pfad oder Parameter an.)
Correct Answer:
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
Was hat es mit dem folgenden Befehl auf sich?
Nmcli-Gerät WLAN verbinden WIFIo1
Nmcli-Gerät WLAN verbinden WIFIo1
Correct Answer: E
Mit welchem Befehl können Sie die Eigenschaften eines bestimmten Fensters in X untersuchen, indem Sie auf dieses Fenster klicken? (Geben Sie NUR den Befehl ohne Pfad oder Parameter an.)
Correct Answer:
usrbinxwininfoxwininfo
Explanation:
The command that can be used to investigate the properties for a particular window in X by clicking that window is xwininfo. xwininfo is a command-line tool that provides information about X windows. When executed, it opens a small window and waits for the user to select a window by clicking on it. Then, it displays various characteristics about the window in question, such as its geometry, position, size, depth, class, name, id, and more. xwininfo is part of the X Window System, which is a graphical user interface system for Unix-like operating systems. xwininfo can be useful for debugging, testing, or scripting purposes. Reference: https://bing.com/search?q=command+to+investigate+properties+of+a+window+in+X
https://www.exam-answer.com/linux-foundation-certified-system-administrator-lfcs-simulation-investigate-window-properties
Explanation:
The command that can be used to investigate the properties for a particular window in X by clicking that window is xwininfo. xwininfo is a command-line tool that provides information about X windows. When executed, it opens a small window and waits for the user to select a window by clicking on it. Then, it displays various characteristics about the window in question, such as its geometry, position, size, depth, class, name, id, and more. xwininfo is part of the X Window System, which is a graphical user interface system for Unix-like operating systems. xwininfo can be useful for debugging, testing, or scripting purposes. Reference: https://bing.com/search?q=command+to+investigate+properties+of+a+window+in+X
https://www.exam-answer.com/linux-foundation-certified-system-administrator-lfcs-simulation-investigate-window-properties
Welche Konfigurationsdatei wird bearbeitet, um die Standardoptionen für ausgehende SSH-Sitzungen zu ändern?
Correct Answer: B
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
Welche Ausgabe wird der folgende Befehl erzeugen?
Folge 1 5 20
Folge 1 5 20
Correct Answer: E
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
Mit welchem der folgenden Befehle werden alle Druckaufträge in der Warteschlange aufgelistet?
Correct Answer: B
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
Welche Datei listet welche Benutzer auf, die Befehle mit sudo ausführen können? (Geben Sie den vollständigen Namen der Datei einschließlich des Pfads an.)
Correct Answer:
etcsudoers
Explanation:
The /etc/sudoers file lists which users can execute commands using sudo, as well as which commands they can run, on which hosts, and as which users. The /etc/sudoers file is the main configuration file for the sudo command, which allows users to run commands as another user, usually the superuser or root. The /etc/sudoers file has a specific syntax and should be edited only with the visudo command, which checks the file for errors and locks it to prevent concurrent edits. The /etc/sudoers file contains entries that follow the format:
user host = (runas) command
where user is the name of the user who can run sudo, host is the name of the host where the user can run sudo, runas is the name of the user as whom the command will be executed, and command is the name of the command or a list of commands that the user can run with sudo. For example, the entry:
alice ALL = (root) /bin/ls, /usr/bin/whoami
means that the user alice can run sudo on any host, and can execute the commands /bin/ls and /usr/bin/whoami as the root user. The /etc/sudoers file also supports aliases, variables, wildcards, and other features that make it more flexible and powerful. For more details, see the sudoers manual page.
Reference:
LPIC-1 Exam 102 Objectives, Topic 110: Security, Subtopic 110.2: Use sudo to manage access to the root account, Weight: 2, Key Knowledge Areas: Configure sudo and sudoers. Use sudo to execute commands as another user.
LPIC-1 Exam 102 Learning Materials, Topic 110: Security, Subtopic 110.2: Use sudo to manage access to the root account, Section 110.2.1: sudo and sudoers, Page 3-5.
Explanation:
The /etc/sudoers file lists which users can execute commands using sudo, as well as which commands they can run, on which hosts, and as which users. The /etc/sudoers file is the main configuration file for the sudo command, which allows users to run commands as another user, usually the superuser or root. The /etc/sudoers file has a specific syntax and should be edited only with the visudo command, which checks the file for errors and locks it to prevent concurrent edits. The /etc/sudoers file contains entries that follow the format:
user host = (runas) command
where user is the name of the user who can run sudo, host is the name of the host where the user can run sudo, runas is the name of the user as whom the command will be executed, and command is the name of the command or a list of commands that the user can run with sudo. For example, the entry:
alice ALL = (root) /bin/ls, /usr/bin/whoami
means that the user alice can run sudo on any host, and can execute the commands /bin/ls and /usr/bin/whoami as the root user. The /etc/sudoers file also supports aliases, variables, wildcards, and other features that make it more flexible and powerful. For more details, see the sudoers manual page.
Reference:
LPIC-1 Exam 102 Objectives, Topic 110: Security, Subtopic 110.2: Use sudo to manage access to the root account, Weight: 2, Key Knowledge Areas: Configure sudo and sudoers. Use sudo to execute commands as another user.
LPIC-1 Exam 102 Learning Materials, Topic 110: Security, Subtopic 110.2: Use sudo to manage access to the root account, Section 110.2.1: sudo and sudoers, Page 3-5.
Nach dem Bearbeiten der TCP-Wrapper-Konfiguration, um bestimmten Hosts Zugriff auf einen Dienst zu gewähren. Wann werden diese Änderungen wirksam?
Correct Answer: C
Wie lautet der Befehl zum Löschen des Standardgateways aus der IP-Routing-Tabelle des Systems? (Wähle ZWEI richtige Antworten.)
Correct Answer: B,E
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
Was versteht man unter dem Begriff Braillezeile?
Correct Answer: C
Was ist der herkömmliche Zweck von Linux-UIDs, die unter 100 liegen?
Correct Answer: E
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).