CompTIA Linux+ Powered by LPI 2 v1.0 (LX0-104)

Page:    1 / 12   
Total 178 questions

To prevent a specific user from scheduling tasks with at, what should the administrator do?

  • A. Add the specific user to /etc/at.allow file.
  • B. Add the specific user to [deny] section in the /etc/atd.conf file.
  • C. Add the specific user to /etc/at.deny file.
  • D. Add the specific user to nojobs group.
  • E. Run the following: atd --deny [user].


Answer : C

Which of the following crontab entries will execute myscript at 30 minutes past every hour on Sundays?

  • A. 0 * * * 30 myscript
  • B. 30 * * * 6 myscript
  • C. 30 0 * * 0 myscript
  • D. 30 0-23 * * 0 myscript
  • E. 0 0-23 * * 30 myscript


Answer : D

Which of the following files assigns a user to its primary group?

  • A. /etc/pgroup
  • B. /etc/shadow
  • C. /etc/group
  • D. /etc/passwd
  • E. /etc/gshadow


Answer : D

Which of the following commands should be added to /etc/bash_profile in order to change the language of messages for an internationalized program to
Portuguese (pt)?

  • A. export LANGUAGE="pt"
  • B. export MESSAGE="pt"
  • C. export UI_MESSAGES="pt"
  • D. export LC_MESSAGES="pt"
  • E. export ALL_MESSAGES="pt"


Answer : D

FILL BLANK -
In which file, if present, must all users be listed that are allowed to use the cron scheduling system? (Specify the full name of the file, including path.)



Answer : /etc/cron.allow

Which commands can be used to change a user's account aging information? (Choose THREE correct answers.)

  • A. usermod
  • B. passwd
  • C. chattr
  • D. chage
  • E. chsh


Answer : ABD

FILL BLANK -
Which command is used to add an empty group to the system? (Specify ONLY the command without any path or parameters.)



Answer : groupadd -or- /usr/sbin/groupadd

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

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


Answer : C

What is true about the file /etc/localtime?

  • A. It is a plain text file containing a string such as Europe/Berlin.
  • B. It is created and maintained by the NTP service based on the geolocation of the system's IP address.
  • C. It is a symlink to /sys/device/clock/ltime and always contains the current local time.
  • D. It is either a symlink to or a copy of a timezone information file such as /usr/share/zoneinfo/Europe/Berlin.


Answer : D

What is true regarding the command userdel --force --remove bob? (Choose TWO correct answers.)

  • A. The user bob is removed from the system's user database.
  • B. The user bob's home directory is removed.
  • C. The locate database is updated to drop files owned by bob.
  • D. All files owned by bob are remove from all mounted filesystems.
  • E. In case bob was the last member of a group, that group is deleted.


Answer : AB

Which of the following fields can be found in the /etc/group file? (Choose THREE correct answers.)

  • A. The list of users that belong to the group.
  • B. The home directory of the group.
  • C. The name of the group.
  • D. The description of the group.
  • E. The password of the group.


Answer : ACE

What is true about groups in a Linux system? (Choose two correct answers.)

  • A. Each user may be a member of several groups. However, only one group is the user’s primary group.
  • B. Groups may have a password that allows users to join that group temporarily.
  • C. Each user can only be a member of one group at a time.
  • D. Group memberships are optional such that there may be users that do not belong to any group.
  • E. Groups can be nested meaning that one group can be a member of another group.


Answer : AB

Why should a regular user edit his personal crontab by using the command crontab instead of just editing his crontab file manually?

  • A. Because user specific crontab entries are stored in a common database and must be extracted before editing.
  • B. Because crontab starts the cron daemon in case it is not running due to no other crontab entries existing.
  • C. Because user specific crontab entries are stored in a special directory which is maintained by the cron daemon and not writable for regular users.
  • D. Because crontab collects information about all users crontabs and recommends similar commands used by other users of the system.


Answer : C

Which of the following details can be found in an entry of a user specific crontab? (Choose two correct answers.)

  • A. The verbal description of the job.
  • B. The syslog facility to where the output of the job should be sent.
  • C. The time when the cron job should run.
  • D. The command that should be started by the cron job.
  • E. The name of the user which should run the job.


Answer : CD

Which of the following commands will convert files from one character encoding to another?

  • A. convert
  • B. enc2utf
  • C. iconv
  • D. transcode


Answer : C

Page:    1 / 12   
Total 178 questions