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 +

Which of the following commands puts the output of the command date into the shell variable mydate?

Which of the following commands puts the output of the command date into the shell variable mydate?A . mydate="$(date)"B . mydate="exec date"C . mydate="$((date))"D . mydate="date"E . mydate="${date}"View AnswerAnswer: A Explanation: ∗∗ ∗∗ (date)" Comprehensive Thecorrectwaytoputtheoutputofthecommanddateintotheshellvariablemy dateistousecommandsubstitutionwiththesyntax(command). This will execute the command in a subshell and replace the expression with...

April 4, 2025 No Comments READ MORE +

Of the ways listed, which is the best way to temporarily suspend a single user's ability to interactively login?

Of the ways listed, which is the best way to temporarily suspend a single user's ability to interactively login?A . Add the user name to /etc/nologin.B . Change the user's password.C . Change the user name in /etc/passwd.D . Use change to expire the user account.E . Place the command...

April 4, 2025 No Comments READ MORE +

Fill in Blanks

Fill in Blanks The ________ command is used to add a group to the system.View AnswerAnswer: groupadd, /usr/sbin/groupadd Explanation: The groupadd command creates a new group using the options specified on the command line and the default values from the /etc/login.defs file. It adds an entry for the new group...

April 1, 2025 No Comments READ MORE +