102-500 : LPI Level 1 : Part 04
-
What is the systemd journal stored?
-
/var/jlog/ and /var/jlogd/
-
/proc/log/ and /proc/klog/
-
/run/log/journal/ or /var/log/journal/
-
/var/log/syslog.bin or /var/log/syslog.jrn
-
/etc/systemd/journal/ or /usr/lib/systemd/journal/
-
-
Which of the following is true regarding the command
sendmail?
- With any MTA, the
sendmail
command must be run periodically by the cron daemon. - When using systemd,
sendmail
is an alias torelayctl.
- The
sendmail
command prints the MTA’s queue history of which mails have been sent successfully. - It is only available when the
sendmail
MTA is installed. - All common MTAs, including Postfix and Exim, provide a
sendmail
command.
- With any MTA, the
-
Which file inside the CUPS configuration directory contains the settings of the printers?
-
cups-devices.conf
-
snmp.conf
-
printers.conf
-
printcap.conf
-
cupsd.conf
-
-
FILL BLANK
Which file is processed by
newaliases?
(Specify the full name of the file, including path.)-
/etc/mail/aliases
-
-
Which of the following are syslog facilities? (Choose two.)
-
local5
-
accounting
-
mail
-
postmaster
-
remote
-
-
Which of the following parameters are used for
journalctl
to limit the time frame of the output? (Choose two.)-
--since=
-
--from=
-
--until=
-
--upto=
-
--date=
-
-
What is true regarding the file
~/.forward?
- When configured correctly
~/.forward
can be used to forward each incoming mail to one or more other recipients. - After editing
~/.forward
the user must runnewaliases
to make the mail server aware of the changes. - Using
~/.forward,
root may configure any email address whereas all other users may configure only their own addresses. - As
~/.forward
is owned by the MTA and not writable by the user, it must be edited using theeditaliases
command. - By default, only
~/.forward
files of users in the groupmailq
are processed while all other user’s~/.forward
files are ignored.
- When configured correctly
-
Which of the following commands display a list of jobs in the print queue? (Choose two.)
-
cups --list
-
lprm -l
-
lpstat
-
lpr -q
-
lpq
-
-
On a system using systemd-journald, which of the following commands add the message Howdy to the system log? (Choose two.)
-
append Howdy
-
logger Howdy
-
systemd-cat echo Howdy
-
echo Howdy > /dev/journal
-
journalctl add Howdy
-
-
Which of the following options in the chrony configuration file define remote time sources? (Choose two.)
-
source
-
clock
-
remote
-
pool
-
server
-
-
FILL BLANK
Which command is used to sync the hardware clock to the system clock? (Specify only the command without any path or parameters.)
-
hwclock
-
-
Which of the following situations is observed and corrected by an NTP client?
- The skew in time between the system clock and the computer’s hardware clock.
- The physical location and the timezone configuration.
- Changes in the time zone of the current computer’s location.
- Adjustment needed to support Daylight Saving Time.
- The skew in time between the system clock and the reference clock.
-
If an alias ls exists, which of the following commands updates the alias to point to the command ls -l instead of the alias’s current target?
-
set ls=’ls -l’
-
alias ls=’ls -l’
-
alias --force ls=’ls -l’
-
alias --update ls ls=’ls -l’
-
realias ls=’ls -l’
-
-
Which of the following commands puts the output of the command date into the shell variable mydate?
-
mydate=”date”
-
mydate=”exec date”
-
mydate=”$((date))”
-
mydate=”$(date)”
-
mydate=”${date}”
-
-
What information is shown by the
echo $?
command?- The process ID of the
echo
command. - The exit value of the command executed immediately before
echo.
- The process ID which will be used for the next command.
- The exit value of the
echo
command. - The process ID of the current shell.
- The process ID of the
-
Which of the following files is not read directly by a Bash login shell?
-
~/.bashrc
-
~/.bash_profile
-
~/.bash_login
-
~/.profile
-
/etc/profile
-
-
What is true about the file
.profile
in a user’s home directory?- It must be executable.
- It must call the binary of the login shell.
- It must use a valid shell script syntax.
- It must start with a shebang.
- It must be readable for its owner only.
-
What is true regarding the statement beginning with
#!
that is found in the first line of script? (Choose two.)- It prevents the scripts from being executed until the ! is removed.
- it triggers the installation of the script’s interpreter.
- It specifies the path and the arguments of the interpreter used to run the script.
- It defines the character encoding of the script.
- It is a comment that is ignored by the script interpreter.
-
What output does the command
seq 1 5 20
produce?- 1
5
10
15 - 1
6
11
16 - 1
2
3
4 - 2
3
4
5 - 5
10
15
20
- 1
-
Which of the following commands lists all defines variables and functions within Bash?
-
env
-
export
-
env -a
-
set
-
echo $ENV
-
Subscribe
0 Comments
Newest