What does the term Braille Display refer to?
Answer : D
What is true regarding TCP port 23?
Answer : A
Port 23 is the well known port for the telnet service, which is a remote connection tool similar to SSH, but without the security of SSH. It uses a client/server model - a telnet client connects to a telnet server using TCP port 23. Due to lack of security, usage of telnet is discouraged in most situations, and firewalls routinely block port 23 to prevent incoming telnet connections.Port 23 is part of the topic 109.1: Fundamentals of internet protocols, which is one of the objectives of the LPI Linux Administrator - 102 exam12.Reference:1: https://learning.lpi.org/en/learning-materials/102-500/2: https://www.lpi.org/our-certifications/exam-102-objectives/
Please specify the top directory containing the configuration files for the CUPS printing system. (Specify the full path to the directory.)
Answer : A
The top directory containing the configuration files for the CUPS printing system is /etc/cups. This directory stores various files that control the behavior and functionality of the CUPS scheduler, cupsd (8), such as cups-files.conf (5), cupsd.conf (5), mime.convs (5), mime.types (5), printers.conf (5), and subscriptions.conf (5).The /etc/cups directory also contains subdirectories for classes, interfaces, ppd, and ssl, which store information about printer classes, device interfaces, printer drivers, and encryption certificates, respectively12.The /etc/cups directory is part of the LPI's multi-level Linux professional certification program, and it is covered in the topic 105.5 Print service of the exam 102 objectives3.Reference:1:cups-files (5) - Linux Manuals2:cupsd.conf - server configuration file for cups3:Exam 102 Objectives
What is true about the ntpdate command?
Answer : C
The ntpdate command is a tool used to synchronize the system date and time with the NTP (Network Time Protocol) server(s) specified as arguments. It can be run manually as necessary to set the system clock, or it can be run from a cron script to periodically update the system clock. The ntpdate command has the following syntax:
ntpdate [options] server [server ...]
The ntpdate command obtains a number of samples from each server and applies a subset of the NTP clock filter and selection algorithms to select the best one. It then adjusts the system clock either by stepping it (if the offset is larger than 0.5 seconds) or by slewing it (if the offset is smaller than 0.5 seconds). The ntpdate command can also be used to query the date and time from a server without setting the system clock by using the -q option.
The other statements are false because:
It is not the primary management command for the NTP time server. The primary management command for the NTP time server is ntpd, which is a daemon that runs continuously and disciplines the system clock using sophisticated algorithms.
It updates both the local system's date and time, not just the date. The ntpdate command sets the system date and time according to the configured timezone information.
It does not send the local system time to any remote NTP time servers. The ntpdate command only queries the time from the servers and does not transmit any time information to them.
It cannot be used by any user to set the user clock independently of the system clock. The ntpdate command must be run as root on the local host and it affects the system clock for all users.
Linux ntpdate Command Tutorial -- LinuxTect
ntpdate - set the date and time via NTP
How to Use NTPDATE to Sync Time in Ubuntu Linux? -- TheITBros
Which of the following files assigns a user to its primary group?
Answer : D
The /etc/passwd file assigns a user to its primary group by specifying the group ID (GID) of the primary group in the fourth field of each line. The /etc/passwd file contains the basic information for each user account on a Linux system, such as the user name, user ID (UID), group ID (GID), home directory, login shell, etc. The format of each line is:
username:password:UID:GID:comment:home:shell
For example, the following line assigns the user bob to the primary group bob, which has the GID of 1001:
bob:x:1001:1001::/home/bob:/bin/sh
The /etc/passwd file can be viewed and modified by the root user or by using the useradd, usermod, or userdel commands123. The other files listed in the options do not assign a user to its primary group. The /etc/pgroup file does not exist by default on most Linux systems, and it is not related to the primary group.The /etc/shadow file contains the encrypted passwords and other information for each user account, but not the primary group4.The /etc/group file contains the information for each group on the system, such as the group name, group password, group ID, and group members, but not the primary group of each user5.The /etc/gshadow file contains the encrypted passwords for group accounts.Reference:12345
Which command is used to set the hostname of the local system? (Specify ONLY the command without any path or parameters.)
Answer : A
The hostname command is used to set the hostname of the local system. The hostname command can take a single argument, which is the new hostname to be assigned to the system. For example, to set the hostname to linux, one can run:
hostname linux
The hostname command can also be used without any arguments to display the current hostname of the system. For example, to show the current hostname, one can run:
hostname
The hostname command only changes the hostname temporarily, meaning that the original hostname will be restored after a reboot. To change the hostname permanently, one has to edit the configuration files that store the hostname information, such as /etc/hostname, /etc/hosts, /etc/sysconfig/network, etc. The exact files and commands may vary depending on the Linux distribution and the system initialization process.For more details, please refer to the web search results1or the question answering results2.Reference:
Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)
Answer : B, E
The Bash shell can be configured by various files that affect its behavior, such as setting environment variables, aliases, functions, options, and prompts. Some of these files are global, meaning they apply to all users of the system, and some are local, meaning they apply to individual users.The global files are usually located in the /etc directory, while the local files are usually located in the user's home directory, which is denoted by the tilde (~) symbol1.
The local files that affect the Bash shell are:
~/.bash_profile: This file is executed when a user logs in to the system. It is used to set up the user's environment, such as the PATH, the default editor, the umask, and other variables. It can also run commands that are needed only once per login session, such as ssh-agent or fortune.This file can also source other files, such as ~/.bashrc, to inherit their settings12.
~/.bashrc: This file is executed when a user starts a new interactive shell, such as opening a terminal window or running a script with the shebang #!/bin/bash. It is used to set up the user's shell preferences, such as aliases, functions, options, and prompts.It can also source other files, such as /etc/bashrc, to inherit their settings12.
~/.bash_logout: This file is executed when a user logs out of the system.It is used to perform any cleanup tasks, such as clearing the screen, deleting temporary files, or printing a farewell message1.
The other files listed in the question are not valid Bash configuration files and do not affect the behavior of the shell. Therefore, the correct answer is B. ~/.bashrc and E. ~/.bash_profile.