What output will the following command produce?
What output will the following command produce? seq 1 5 20A . 1 6 1 1 1 6B . 1 5 10 15C . 1 2 3 4D . 2 3 4 5E . 5 10 15 20View AnswerAnswer: B Explanation: The seq command in Linux is used to generate...
An administrator wants to determine the geometry of a particular window in X, so she issues the
An administrator wants to determine the geometry of a particular window in X, so she issues the __________ -metric command and then clicks on the window.View AnswerAnswer: /usr/bin/xwininfo, xwininfo Explanation: The xwininfo command is a utility for displaying information about windows in X. It can show various attributes of a...
By default, the contents of which directory will be copied to a new user's home directory when the account is created by passing the -m option to the useradd command? (Specify the full path to the directory.)
By default, the contents of which directory will be copied to a new user's home directory when the account is created by passing the -m option to the useradd command? (Specify the full path to the directory.)View AnswerAnswer: /etc/skel Explanation: The /etc/skel directory contains files and directories that are used...
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.)
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.)View AnswerAnswer: /etc/cron.allow Explanation: The /etc/cron.allow file is a file that contains a list of users who are allowed to use the cron...
In case neither cron.allow nor cron.deny exist in /etc/, which of the following is true?
In case neither cron.allow nor cron.deny exist in /etc/, which of the following is true?A . Without additional configuration, no users may have user specific crontabs.B . Without additional configuration, all users may have user specific crontabs.C . The cron daemon will refuse to start and report missing files in...
Which file contains the date of the last change of a user's password?
Which file contains the date of the last change of a user's password?A . /etc/gshadowB . /etc/passwdC . /etc/pwdlogD . /etc/shadowE . /var/log/shadowView AnswerAnswer: D Explanation: The /etc/shadow file contains the encrypted passwords and other information for each user account on a Linux system. The third field in each line...
How is the content of the section SectionName associated with that section?
The X11 configuration file xorg.conf is grouped into sections. How is the content of the section SectionName associated with that section?A . It is placed in curly brackets as in Section SectionName { ... }.B . It is placed between a line containing Section "SectionName" and a line containing EndSection.C...
When the command echo $ outputs 1, which of the following statements is true?
When the command echo $ outputs 1, which of the following statements is true?A . It is the process ID of the echo command.B . It is the process ID of the current shell.C . It is the exit value of the command executed immediately before echo.D . It is...
Where are user specific crontabs stored?
Where are user specific crontabs stored?A . In the database file /etc/crontab.db which is shared by all users.B . As individual per-user files within /var/spool/cron.C . As individual per-user files in /etc/cron.user.d.D . In the .crontab file in the user's home directory.E . In the file /var/cron/user-crontab which is shared...
Which of the following files assigns a user to its primary group?
Which of the following files assigns a user to its primary group?A . /etc/pgroupB . /etc/shadowC . /etc/groupD . /etc/passwdE . /etc/gshadowView AnswerAnswer: D Explanation: The /etc/passwd file assigns a user to its primary group by specifying the group ID (GID) of the primary group in the fourth field of...