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

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...

April 17, 2025 No Comments READ MORE +

Which of the following is the best way to list all defined shell variables?

Which of the following is the best way to list all defined shell variables?A . envB . setC . env -aD . echo $ENVView AnswerAnswer: B Explanation: The set command is used to display or modify the shell variables and functions in the current shell. When used without any arguments,...

April 16, 2025 No Comments READ MORE +

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)?

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"View AnswerAnswer: D Explanation: The LC_MESSAGES environment variable specifies the language...

April 14, 2025 No Comments READ MORE +

How is the file format of /etc/crontab different from a normal crontab file? (Select TWO correct answers)

How is the file format of /etc/crontab different from a normal crontab file? (Select TWO correct answers)A . The /etc/crontab file can specify a year field.B . A normal crontab file must be installed with the crontab command.C . A normal crontab file allows for environment variable substitution.D . The...

April 10, 2025 No Comments READ MORE +

What keyword is missing from this code sample of a shell script?

What keyword is missing from this code sample of a shell script? ____ i in *.txt; do echo $i doneA . forB . loopC . untilD . whileView AnswerAnswer: B Explanation: The set command is used to display or modify the shell variables and functions in the current shell. When...

April 10, 2025 No Comments READ MORE +

The system's timezone may be set by linking /etc/localtime to an appropriate file in which directory? (Provide the full path to the directory, without any country information)

The system's timezone may be set by linking /etc/localtime to an appropriate file in which directory? (Provide the full path to the directory, without any country information)View AnswerAnswer: /usr/share/zoneinfo/ Explanation: The /usr/share/zoneinfo directory contains the binary time zone files that are used by the system to determine the local time...

April 10, 2025 No Comments READ MORE +

Which file would you edit to achieve this?

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/xdm/XsetupB . /etc/X11/xdm.confC . /etc/X11/xdm/DefaultsD . /etc/X11/defaults.confView AnswerAnswer: A Explanation: The file /etc/X11/xdm/Xsetup contains commands that are executed by XDM before displaying the login screen....

April 9, 2025 No Comments READ MORE +

Produce?

After issuing: function myfunction { echo $1 $2 ; } in Bash, which output does: myfunction A B C Produce?A . ABB . ABCC . ACD . BCE . CBAView AnswerAnswer: A Explanation: In Bash, a function is a block of code that can be invoked by its name. A...

April 9, 2025 No Comments READ MORE +

Which of the following configuration files should be modified to set default shell variables for all users?

Which of the following configuration files should be modified to set default shell variables for all users?A . /etc/bashrcB . /etc/profileC . ~/.bash_profileD . /etc/.bashrcView AnswerAnswer: B Explanation: The /etc/profile file is a configuration file that is read by the Bash shell when a user logs in. It contains commands...

April 7, 2025 No Comments READ MORE +

Which command will set the local machine's timezone to UTC?

Which command will set the local machine's timezone to UTC?A . cat UTC > /etc/timezoneB . ln -s /usr/share/zoneinfo/UTC /etc/localtimeC . date --timezone=UTCD . mv /usr/timezone/UTC /etcView AnswerAnswer: B Explanation: The command ln -s /usr/share/zoneinfo/UTC /etc/localtime will create a symbolic link from the file /etc/localtime to the file /usr/share/zoneinfo/UTC, which...

April 7, 2025 No Comments READ MORE +