102-500 Exam Dumps, 102-500 Practice Test Questions [Q101-Q122]

Share

102-500 Exam Dumps, 102-500 Practice Test Questions

PDF (New 2021) Actual Lpi 102-500 Exam Questions


Topic 3: Administrative Tasks

  • Automation of system administration tasks by scheduling jobs – The examinees should have some underlying knowledge and skills in using systemmd and cron timer units to easily run jobs at specific times and also at regular intervals;
  • Manage group and user accounts as well as related system files – The learners should know how to suspend, change, add, and remove user accounts;
  • Localisation and internationalisation – You need to know about the importance of LANG=C and how it can be useful during scripting. Besides that, you should understand how to localize a system in a language other than English.

 

NEW QUESTION 101
FILL BLANK
What command enables a network interface according to distribution-specific configuration, such as /etc/ network/interfaces or /etc/sysconfig/network-scripts/ifcfg-eth0? (Specify only the command without any path or parameters.)

Answer:

Explanation:
up

 

NEW QUESTION 102
Which of the following commands displays all environment and shell variables?

  • A. lsenv
  • B. getargs
  • C. env
  • D. lsshell
  • E. ls

Answer: C

 

NEW QUESTION 103
What entry can you add to syslog.conf file to have all syslog messages generated by your system go to virtual console 12?

  • A. /var/log/messages | /dev/tty12
  • B. mail.* /dev/tty12
  • C. syslog tty12
  • D. | /dev/tty12
  • E. *.* /dev/tty12

Answer: E

 

NEW QUESTION 104
What output is produced by the following command sequence?
echo '1 2 3 4 5 6' | while read a b c; do
echo result $c $b $a;
done

  • A. result: 6 5 4
  • B. result: 3 2 1
  • C. result: 3 4 5 6 2 1
  • D. result: 1 2 3 4 5 6
  • E. result: 6 5 4 3 2 1

Answer: C

Explanation:
Explanation/Reference:

 

NEW QUESTION 105
Where are user specific crontabs stored?

  • A. In the .crontab file in the user's home directory.
  • B. In the file /var/cron/user-crontab which is shared by all users.
  • C. As individual per-user files in /etc/cron.user.d.
  • D. In the database file /etc/crontab.db which is shared by all users.
  • E. As individual per-user files within /var/spool/cron.

Answer: E

 

NEW QUESTION 106
Which of the following commands configure network interfaces based on the system's existing distributionspecific configuration files? (Choose two.)

  • A. ifconf
  • B. ifdown
  • C. ifstart
  • D. ifpause
  • E. ifup

Answer: B,E

 

NEW QUESTION 107
The X11 configuration file xorg.conf is grouped into section. How is the content of the section SectionName represented?

  • A. It is placed between a line containing Section "SectionName" and a line containing EndSection.
  • B. It is placed in curly brackets as in Section SectionName { ... }.
  • C. It is placed after an initial unindented Section "SectionName" and must be indented by exactly one tab character.
  • D. It is placed after the row [SectionName].
  • E. It is placed between the tags <Section name="SectionName" > and </Section>.

Answer: A

 

NEW QUESTION 108
What output will the following command sequence produce?
echo '1 2 3 4 5 6' | while read a b c; do
echo result: $c $b $a;
done

  • A. result: 6 5 4
  • B. result: 3 2 1
  • C. result: 3 4 5 6 2 1
  • D. result: 1 2 3 4 5 6
  • E. result: 6 5 4 3 2 1

Answer: C

 

NEW QUESTION 109
Of the ways listed, which is the best way to temporarily suspend a single user's ability to interactively login?

  • A. Use change to expire the user account.
  • B. Place the command logout in the user's profile.
  • C. Change the user's password.
  • D. Change the user name in /etc/passwd.
  • E. Add the user name to /etc/nologin.

Answer: A

 

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

  • A. They are reserved for the system admin accounts.
  • B. They are used to match with GIDs in grouping users.
  • C. They are unused, aside from 0, because they are targets of exploits.
  • D. They are reserved for system accounts.
  • E. They are reserved for super user accounts.

Answer: D

 

NEW QUESTION 111
What is NOT contained in the locale setting of the operating system?

  • A. currency symbol
  • B. thousands separator
  • C. language
  • D. timezone

Answer: D

 

NEW QUESTION 112
Which of the following can the chage command NOT change?

  • A. The number of days since January 1, 1970 after which the password can change.
  • B. The number of days since January 1, 1970 since the password was last changed.
  • C. The maximum number of days during which a password is valid.
  • D. The number of days of inactivity after a password has expired before the account is locked.
  • E. The number of days since January 1, 1970 after which the user's account will no longer be accessible.

Answer: A

 

NEW QUESTION 113
What is true regarding the file ~/.forward?

  • A. Using ~/.forward, root may configure any email address whereas all other users may configure only their own addresses.
  • B. As ~/.forward is owned by the MTA and not writable by the user, it must be edited using the editaliases command.
  • C. By default, only ~/.forward files of users in the group mailq are processed while all other user's ~/
    .forward files are ignored.
  • D. When configured correctly ~/.forward can be used to forward each incoming mail to one or more other recipients.
  • E. After editing ~/.forward the user must run newaliases to make the mail server aware of the changes.

Answer: D

 

NEW QUESTION 114
With X11 forwarding in ssh, what environment variable is automatically set in the remote host shell that is not set when X11 forwarding is not enabled? (Specify only the environment variable without any additional commands or values.)

Answer:

Explanation:
DISPLAY, $DISPLAY

 

NEW QUESTION 115
Which command, available with all MTAs, is used to list the contents of the MTA's mail queue? (Specify ONLY the command without any path or parameters.)

Answer:

Explanation:
mailq, /usr/bin/mailq, sendmail -bp, /usr/sbin/sendmail -bp, /usr/lib/sendmail -bp, sendmail,
/usr/sbin/sendmail, /usr/lib/sendmail

 

NEW QUESTION 116
Which environment variable should be set in order to change the time zone for the commands run from within the environment variable's scope? (Specify the variable name only.)

Answer:

Explanation:
TZ

 

NEW QUESTION 117
Which of the following entries in /etc/syslog.confwrites all mail related events to the file /var/log/ maillogand sends all critical events to the remote server logger.example.com?
mail.* /var/log/maillog

  • A. mail.crit @logger.example.org
    mail * /var/log/maillog
  • B. mail.crit @logger.example.org
    mail.* /var/log/maillog
  • C. mail.crit syslog://logger.example.org
    mail /var/log/maillog
  • D. mail crit @logger.example.org
  • E. mail,crit @logger.example.org
    mail.* /var/log/maillog

Answer: A

 

NEW QUESTION 118
Which character in the password field of /etc/passwd is used to indicate that the encrypted password is stored in /etc/shadow?

  • A. -
  • B. *
  • C. s
  • D. x

Answer: D

 

NEW QUESTION 119
What is the main difference between the batch and at commands?

  • A. The batch command will run when system load is low. The at command runs at a specific time.
  • B. The batch command will run multiple times.The at command will only run once.
  • C. The at command e-mails results to the user. The batch command logs results to syslog.
  • D. The at command reads commands from standard input. The batch command requires a command line argument.

Answer: A

 

NEW QUESTION 120
Which of the following details is NOT provided in any output from the netstat utility?

  • A. network connections
  • B. masquerading connections
  • C. interface statistics
  • D. broadcast services
  • E. routing tables

Answer: D

 

NEW QUESTION 121
Your senior administrator asked you to change the default background of his machine, which uses XDM.
Which file would you edit to achieve this?

  • A. /etc/X11/defaults.conf
  • B. /etc/X11/xdm.conf
  • C. /etc/X11/xdm/Defaults
  • D. /etc/X11/xdm/Xsetup

Answer: D

 

NEW QUESTION 122
......

Updated Dec-2021 Pass 102-500 Exam - Real Practice Test Questions: https://www.validtorrent.com/102-500-valid-exam-torrent.html

Dumps Moneyack Guarantee - 102-500 Dumps UpTo 90% Off: https://drive.google.com/open?id=1sv2MPiqkmfELwa6Ss9dEmqdntWaRemF5