Quiz
Libro T7 - Administering the System
Erstelle ein kostenloses Konto, um dieses Quiz zu beenden
Speichere deinen Fortschritt und sieh dir dein Endergebnis an.
oder mit deiner E-Mail registrieren
Schon ein Konto? Anmelden
Fragen in diesem Quiz (20)
1When a user account has been locked using the usermod -L command, you will see what in
the /etc/shadow file’s record for that user?- AA. An x in the password field
- BB. An !! in the password field
- CC. A blank password field
- DD. A zero (0) at the front of the password field
- EE. An ! at the front of the password field
2What commands can be used to add user accounts to a Linux system? (Select three)
- AA. useradd username
- BB. adduser username
- CC. useradd -c "full name" username
- DD. usradd username
- EE. passwd username
3An administrator types chage -M 7 time. What is the effect of this command?
- AA. The time account’s password must be changed at least once every seven days.
- BB. All users must change their passwords at least once every seven days.
- CC. All users are permitted to change their passwords at most seven times.
- DD. The time account’s age is set to seven months.
- EE. The account database’s time stamp is set to seven months ago.
4What is wrong with the following /etc/passwd file entry?
sally:x:1029:Sally Jones:/home/myhome:/bin/passwd- AA. The default shell is set to /bin/passwd, which is an invalid shell.
- BB. The username is invalid. Linux usernames can’t be all lowercase letters.
- CC. The home directory doesn’t match the username.
- DD. Either the UID or the GID field is missing.
- EE. The hashed password is missing
5You want sally, who is already a member of the Production group, also to be a member of
the Development group. What is the best way to accomplish this?- AA. Use the groupadd Development sally command.
- BB. Use the groupadd Production sally command.
- CC. Manually edit the /etc/group file, and change the Development group’s record to
Development:501:sally. - DD. Use the usermod -G Development sally command.
- EE. Use the usermod -a -G Development sally command.
6What types of files might you expect to find in /etc/skel? (Select three.)
- AA. A copy of the /etc/shadow file
- BB. An empty set of directories to encourage good file management practices
- CC. A README or similar welcome file for new users
- DD. A starting .bashrc file
- EE. The RPM or Debian package management database
7What would a Linux system administrator type to remove the nemo account and its home
directory?- AA. userdel nemo
- BB. userdel -f nemo
- CC. userdel -r nemo
- DD. rm -r /home/nemo
- EE. usermod -D nemo
8Which of the following system logging codes represents the highest priority?
- AA. info
- BB. warning
- CC. crit
- DD. debug
- EE. emerg
9Which of the following configuration files does the logrotate program consult for its
settings?- AA. /etc/logrotate.conf
- BB. /usr/sbin/logrotate/logrotate.conf
- CC. /usr/src/logrotate/logrotate.conf
- DD. /etc/logrotate/.conf
- EE. ~/.logrotate
10You want to create a log file entry noting that you’re manually shutting down thesystem
to add a new network card. How might you create this log entry, just prior to using
shutdown?- AA. dmesg -l "shutting down to add network card"
- BB. syslog shutting down to add network card
- CC. rsyslogd "shutting down to add network card"
- DD. logger shutting down to add network card
- EE. wall "shutting down to add network card"
11Your manager has asked that you configure logrotate to run on a regular, unattended
basis. What utility/feature should you configure to make this possible?- AA. at
- BB. logrotate.d
- CC. cron
- DD. inittab
- EE. ntpd
12You’ve set your system (software) clock on a Linux computer to the correct time, and now
you want to set the hardware clock to match. What command might you type to accomplish this goal?- AA. date --sethwclock
- BB. ntpdate
- CC. sysclock --tohc
- DD. time --set –hw
- EE. hwclock --systohc
13As root, you type date 12110710. What will be the effect?
- AA. The software clock will be set to 7:10 a.m. on December 11 of the current year
- BB. The software clock will be set to 12:11 p.m. on October 7 of the current year
- CC. The software clock will be set to 7:10 a.m. on November 12 of the current year.
- DD. The software clock will be set to 12:11 p.m. on July 10 of the current y
- EE. The software clock will be set to July 10 in the year 1211
14What will be the effect of a computer having the following two lines in /etc/ntp.conf?
server pool.ntp.org
server tardis.example.org- AA. The local computer’s NTP server will poll a server in the public NTP server pool; the
first server option overrides subsequent server options. - BB. The local computer’s NTP server will poll the tardis.example.org time server; the
last server option overrides earlier server options. - CC. The local computer’s NTP server will poll both a server in the public NTP server pool
and the server at tardis.example.org and use whichever site provides the cleanest
time data. - DD. The local computer’s NTP server will refuse to run because of a malformed server
specification in /etc/ntp.conf. - EE. The local computer’s NTP server will poll a computer in the public NTP server
pool but will fall back on tardis.example.org if and only if the public pool server
is down.
- AA. The local computer’s NTP server will poll a server in the public NTP server pool; the
15You’ve configured one computer (gateway.pangaea.edu) on your five-computer network
as an NTP server that obtains its time signal from ntp.example.com. What computer(s)
should your network’s other computers use as their time source(s)?- AA. You should consult a public NTP server list to locate the best server for you.
- BB. Both gateway.pangaea.edu and ntp.example.com
- CC. Only ntp.example.com
- DD. Only gateway.pangaea.edu
- EE. None. NTP should be used on the Internet, not on small local networks.
16Which of the following tasks are most likely to be handled by a cron job? (Select two.)
- AA. Starting an important server when the computer boots
- BB. Finding and deleting old temporary files
- CC. Scripting supervised account creation
- DD. Monitoring disk partition space status and emailing a report
- EE. Sending files to a printer in an orderly manner
17Which of the following lines, if used in a user cron job, will run /usr/local/bin/cleanup
twice a day?- AA. 15 7,19 * * * tbaker /usr/local/bin/cleanup
- BB. 15 7,19 * * * /usr/local/bin/cleanup
- CC. 15 */2 * * * tbaker /usr/local/bin/cleanup
- DD. 15 */2 * * * /usr/local/bin/cleanup
- EE. 2 * * * * /usr/local/bin/cleanup
18You’re installing Linux on a critical business system. Which of the following programs
might you want to add to ensure that a daily backup job is handled correctly?- AA. tempus
- BB. anacron
- CC. crontab
- DD. ntpd
- EE. syslog-ng
19What do the following commands accomplish? (The administrator presses Ctrl+D after
typing the second command.)
# at teatime
at> /usr/local/bin/system-maintenance- AA. Nothing; these commands aren’t valid.
- BB. Nothing; teatime isn’t a valid option to at.
- CC. Nothing; you may only type valid bash built-in commands at the at> prompt.
- DD. Nothing; at requires you to pass it the name of a script, which teatime is not.
- EE. The /usr/local/bin/system-maintenance program or script is run at 4:00 p.m.
20How might you schedule a script to run once a day on a Linux computer? (Select two.)
- AA. Place the script, or a link to it, in /etc/cron.daily.
- BB. Use the at command to schedule the specified script to run on a daily basis at a time of
your choosing. - CC. Create a user cron job that calls the specified script once a day at a time of your choosing, and install that cron job using crontab.
- DD. Use run-parts to schedule the specified script to run on a daily basis.
- EE. Type crontab -d scriptname, where scriptname is the name of your script.
Informationen
- Beschreibung
- ✓ 107.1 Manage user and group accounts and related system files ✓ 107.2 Automate system administration tasks by scheduling jobs ✓ 108.1 Maintain system time ✓ 108.2 System logging
- Autor
- Victor Rodriguez
- Sprache
- Español
- Aufrufe
- 71
- Schlagwörter
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz