ExamGecko
Home Home / LPI / 102-500

LPI 102-500 Practice Test - Questions Answers, Page 8

Question list
Search
Search

Question 71

Report
Export
Collapse

On a system using shadowed passwords, the most correct permissions for /etc/passwd are ___ and the most correct permissions for /etc/shadow are _________.

A.
-rw-r-----, -r--------
A.
-rw-r-----, -r--------
Answers
B.
-rw-r--r--, -r--r--r--
B.
-rw-r--r--, -r--r--r--
Answers
C.
-rw-r--r--, -r--------
C.
-rw-r--r--, -r--------
Answers
D.
-rw-r--rw-, -r-----r--
D.
-rw-r--rw-, -r-----r--
Answers
E.
-rw-------, -r--------
E.
-rw-------, -r--------
Answers
Suggested answer: C
asked 18/09/2024
Debaparna Bandyopadhyay
39 questions

Question 72

Report
Export
Collapse

A French user has installed the French language pack, but currencies are still being displayed with a leading '$' sign in his spreadsheets. What must be done to fix this?

A.
Alter the locale.
A.
Alter the locale.
Answers
B.
Set the timezone correctly.
B.
Set the timezone correctly.
Answers
C.
Edit /etc/currency.
C.
Edit /etc/currency.
Answers
D.
Reinstall the French language pack.
D.
Reinstall the French language pack.
Answers
Suggested answer: A
asked 18/09/2024
Pedram Habibi
37 questions

Question 73

Report
Export
Collapse

Which of the following can the chage command NOT change?

A.
The number of days since January 1, 1970 after which the user's account will no longer be accessible.
A.
The number of days since January 1, 1970 after which the user's account will no longer be accessible.
Answers
B.
The number of days since January 1, 1970 after which the password can change.
B.
The number of days since January 1, 1970 after which the password can change.
Answers
C.
The number of days since January 1, 1970 since the password was last changed.
C.
The number of days since January 1, 1970 since the password was last changed.
Answers
D.
The maximum number of days during which a password is valid.
D.
The maximum number of days during which a password is valid.
Answers
E.
The number of days of inactivity after a password has expired before the account is locked.
E.
The number of days of inactivity after a password has expired before the account is locked.
Answers
Suggested answer: B
asked 18/09/2024
Alex Tzibosnik
38 questions

Question 74

Report
Export
Collapse

What command will display the group names and GIDs to which a user belongs? (Provide only the command name with or without path information)

A.
id,/usr/bin/id
A.
id,/usr/bin/id
Answers
Suggested answer: A
asked 18/09/2024
Javier Rodriguez
33 questions

Question 75

Report
Export
Collapse

Of the ways listed, which is the best method to temporarily suspend a user's ability to interactively login?

A.
Use passwd -d username to give the user an empty password.
A.
Use passwd -d username to give the user an empty password.
Answers
B.
Use chage to expire the user account.
B.
Use chage to expire the user account.
Answers
C.
Change the user's password.
C.
Change the user's password.
Answers
D.
Add the command exit to the user's .login file.
D.
Add the command exit to the user's .login file.
Answers
Suggested answer: B
asked 18/09/2024
Martin Gucký
51 questions

Question 76

Report
Export
Collapse

What is the conventional purpose of Linux UIDs that are lower than 100?

A.
They are reserved for super user accounts.
A.
They are reserved for super user accounts.
Answers
B.
They are reserved for the system admin accounts.
B.
They are reserved for the system admin accounts.
Answers
C.
They are reserved for system accounts.
C.
They are reserved for system accounts.
Answers
D.
They are unused, aside from 0, because they are targets of exploits.
D.
They are unused, aside from 0, because they are targets of exploits.
Answers
E.
They are used to match with GIDs in grouping users.
E.
They are used to match with GIDs in grouping users.
Answers
Suggested answer: C
asked 18/09/2024
Nigel Choji
45 questions

Question 77

Report
Export
Collapse

How is the file format of /etc/crontab different from a normal crontab file? (Select TWO correct answers)

A.
The /etc/crontab file can specify a year field.
A.
The /etc/crontab file can specify a year field.
Answers
B.
A normal crontab file must be installed with the crontab command.
B.
A normal crontab file must be installed with the crontab command.
Answers
C.
A normal crontab file allows for environment variable substitution.
C.
A normal crontab file allows for environment variable substitution.
Answers
D.
The /etc/crontab file has a user field for commands.
D.
The /etc/crontab file has a user field for commands.
Answers
Suggested answer: B, D
asked 18/09/2024
Bartosz Szewczyk
37 questions

Question 78

Report
Export
Collapse

What is the main difference between the batch and at commands?

A.
The batch command will run multiple times.The at command will only run once.
A.
The batch command will run multiple times.The at command will only run once.
Answers
B.
The batch command will run when system load is low. The at command runs at a specific time.
B.
The batch command will run when system load is low. The at command runs at a specific time.
Answers
C.
The at command reads commands from standard input. The batch command requires a command line argument.
C.
The at command reads commands from standard input. The batch command requires a command line argument.
Answers
D.
The at command e-mails results to the user. The batch command logs results to syslog.
D.
The at command e-mails results to the user. The batch command logs results to syslog.
Answers
Suggested answer: B
asked 18/09/2024
soliman sallam
40 questions

Question 79

Report
Export
Collapse

The correct crontab entry to execute the script chklog three times per month between 3 p.m. and 5 p.m.:

A.
* 3,4,5 1 * * chklog
A.
* 3,4,5 1 * * chklog
Answers
B.
3 3,4,5 1 * * chklog
B.
3 3,4,5 1 * * chklog
Answers
C.
3 15,16,17 * * * chklog
C.
3 15,16,17 * * * chklog
Answers
D.
0 15,16,17 1 * * chklog
D.
0 15,16,17 1 * * chklog
Answers
E.
* 15,16,17 1 * * chklog
E.
* 15,16,17 1 * * chklog
Answers
Suggested answer: C

Explanation:

The correct crontab entry to execute the script chklog three times per month between 3 p.m.and 5 p.m. is:3 15,16,17 * * * chklogThe crontab entry has five fields that specify the time and frequency of the job, followed by thecommand or script to be executed. The fields are:Minute: the minute of the hour when the job should run, from 0 to 59Hour: the hour of the day when the job should run, from 0 to 23 (in 24-hour format)Day of month: the day of the month when the job should run, from 1 to 31Month: the month of the year when the job should run, from 1 to 12Day of week: the day of the week when the job should run, from 0 to 6 (where 0 and 7 areSunday)The asterisk (*) means any value, and the comma (,) means a list of values. Therefore, thecrontab entry above means:Run the job at the 3rd minute of the hourRun the job at the 15th, 16th, and 17th hour of the day (which are 3 p.m., 4 p.m., and 5 p.m.)Run the job on any day of the monthRun the job on any month of the yearRun the job on any day of the weekThis will execute the script chklog three times per day, every day of the month, and every
month of the year, which is equivalent to three times per month.The other options are incorrect because:A . This will run the job at any minute of the hour, but only at the 3rd, 4th, and 5th hour of theday (which are 3 a.m., 4 a.m., and 5 a.m.), and only on the 1st day of the month.B . This will run the job at the 3rd minute of the hour, but only at the 3rd, 4th, and 5th hour ofthe day (which are 3 a.m., 4 a.m., and 5 a.m.), and only on the 1st day of the month.D . This will run the job at the 0th minute of the hour (which is the top of the hour), but only atthe 15th, 16th, and 17th hour of the day (which are 3 p.m., 4 p.m., and 5 p.m.), and only on the1st day of the month.E . This will run the job at any minute of the hour, but only at the 15th, 16th, and 17th hour ofthe day (which are 3 p.m., 4 p.m., and 5 p.m.), and only on the 1st day of the month.Crontab Explained in Linux [With Examples]'crontab' in Linux with Examples - GeeksforGeeksLinux Crontab Command Help and Examples - Computer HopeCrontab in Linux with 20 Useful Examples to Schedule Jobs - TecAdminLinux crontab tutorial with Examples - Linux Tutorials - Learn Linux ..

asked 18/09/2024
Michael Madamba
34 questions

Question 80

Report
Export
Collapse

The ________ command is used to add a group to the system.

A.
groupadd,/usr/sbin/groupadd
A.
groupadd,/usr/sbin/groupadd
Answers
Suggested answer: A
asked 18/09/2024
Michael Love
27 questions
Total 235 questions
Go to page: of 24