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 +

Which of the following SQL queries counts the number of occurrences for each value of the field order_type in the table orders?

Which of the following SQL queries counts the number of occurrences for each value of the field order_type in the table orders?A . SELECT order_type,COUNT(*) FROM orders WHERE order_type=order_type;B . SELECT order_type,COUNT(*) FROM orders GROUP BY order_type;C . COUNT(SELECT order_type FROM orders);D . SELECT COUNT(*) FROM orders ORDER BY order_type;E...

March 27, 2025 No Comments READ MORE +

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

Of the ways listed, which is the best method to temporarily suspend a user's ability to interactively login?A . Use passwd -d username to give the user an empty password.B . Use chage to expire the user account.C . Change the user's password.D . Add the command exit to the...

March 24, 2025 No Comments READ MORE +

On a system using shadowed passwords, the most correct permissions for /etc/passwd are ___ and the most correct permissions for /etc/shadow are _________.

On a system using shadowed passwords, the most correct permissions for /etc/passwd are ___ and the most correct permissions for /etc/shadow are _________.A . -rw-r-----, -r--------B . -rw-r--r--, -r--r--r--C . -rw-r--r--, -r--------D . -rw-r--rw-, -r-----r--E . -rw-------, -r--------View AnswerAnswer: C Explanation: The /etc/passwd file stores local accounts of the system....

March 24, 2025 No Comments READ MORE +

Which of the following fields are available in both the global /etc/crontab file as well as in user-specific crontab files? (Select TWO correct answers)

Which of the following fields are available in both the global /etc/crontab file as well as in user-specific crontab files? (Select TWO correct answers)A . YearB . MinuteC . UsernameD . CommandView AnswerAnswer: B, D Explanation: The crontab file format consists of six fields: minute, hour, day of month, month,...

March 23, 2025 No Comments READ MORE +