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 +

What is the purpose of the iconv command?

What is the purpose of the iconv command?A . It converts bitmap images from one format to another such as PNG to JPEG.B . It verifies that the root directory tree complies to all conventions from the Filesystem Hierarchy Standard (FHS).C . It displays additional meta information from icon files...

March 30, 2025 No Comments READ MORE +

How can the existing environment variable FOOBAR be suppressed for the execution of the script./myscript only?

How can the existing environment variable FOOBAR be suppressed for the execution of the script./myscript only? A. unset -v FOOBAR;./myscript B. set -a FOOBAR="";./myscript C. env -u FOOBAR./myscript D. env -i FOOBAR./myscriptView AnswerAnswer: C Explanation: The env command can be used to run a utility or command in a custom...

March 28, 2025 No Comments READ MORE +