Prepare for the LPIC-1 System Administrator Exam 102, Part 2 of 2, version 5.0 exam with our extensive collection of questions and answers. These practice Q&A are updated according to the latest syllabus, providing you with the tools needed to review and test your knowledge.
QA4Exam focus on the latest syllabus and exam objectives, our practice Q&A are designed to help you identify key topics and solidify your understanding. By focusing on the core curriculum, These Questions & Answers helps you cover all the essential topics, ensuring you're well-prepared for every section of the exam. Each question comes with a detailed explanation, offering valuable insights and helping you to learn from your mistakes. Whether you're looking to assess your progress or dive deeper into complex topics, our updated Q&A will provide the support you need to confidently approach the LPI 102-500 exam and achieve success.
Which of the following tasks can the date command accomplish? (Choose two.)
The date command is used to display or set the system's date and time. The date command has the following syntax:
date [options] [+format] [time]
The options can modify the behavior of the date command, such as setting the time zone, printing the date in RFC 3339 format, or updating the hardware clock. The +format argument can specify the output format of the date command, using various conversion specifiers that represent different components of the date and time, such as %Y for the year, %m for the month, %d for the day, %H for the hour, %M for the minute, and %S for the second. The time argument can set the system's date and time, using the format MMDDhhmm[[CC]YY][.ss], where MM is the month, DD is the day, hh is the hour, mm is the minute, CC is the century, YY is the year, and ss is the second.
Therefore, the date command can accomplish the following tasks:
A . Set the system's date and time. For example, to set the system's date and time to November 8, 2023, 18:30:00, the command would be:
date 110818302023.00
E . Display time in a specific format. For example, to display the current date and time in the format YYYY-MM-DD HH:MM:SS, the command would be:
date +%Y-%m-%d %H:%M:%S
The other options in the question are not correct for this task. The date command cannot set the system's date but not the time, as the time argument requires both the date and the time components. The date command cannot calculate the time span between two dates, as it can only display or set the current date and time. The date command cannot print a calendar for a month or a year, as that is the function of the cal command.
LPI 102-500 Exam Objectives, Topic 105.1: Customize and use the shell environment
Which file, if present, must contain all users that are allowed to use the cron scheduling system? (Specify the full name of the file, including path.)
What can be specified with useradd? (Choose two.)
The useradd command is used to create new user accounts in Linux. It has many options that can be specified to customize the user creation process. Two of these options are:
Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)
The local files that affect the Bash shell are:
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.
X is running okay but you're concerned that you may not have the right color depth set. What single command will show you the running color depth while in X?
The xwininfo command is a utility for displaying information about windows on an X server. One of the information it displays is the depth of the window, which is the number of bits per pixel used to represent the color of the window. The depth of the root window, which is the background window of the X server, is the same as the color depth of the X server. To display the depth of the root window, one can use the command xwininfo -root and look for the line that says ''depth of root window''. Alternatively, one can use the command xdpyinfo, which displays information about the X server, and look for the line that says ''depths of root window''.Reference:
[LPI Linux Certification/Configure the X Window System, Xorg and ...]
Full Exam Access, Actual Exam Questions, Validated Answers, Anytime Anywhere, No Download Limits, No Practice Limits
Get All 234 Questions & Answers