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}"
Which of the following are requirements in order to run a shell script like a regular command from anywhere in the filesystem? (Choose THREE correct answers.)
A. The user issuing the command must be in the group script.
B. The script file must be found in the $PATH.
C. The script file must have the executable permission bit set.
D. The script must begin with a shebang-line (#!) that points to the correct interpreter.
E. The file system on which the script resides must be mounted with the option scripts.
On a system running the KDE Display Manager, when is the /etc/kde4/kdm/Xreset script automatically executed?
A. When KDM starts
B. When a user's X session exits
C. When KDM crashes
D. When X is restarted
E. When X crashes
What is true about the ntpdate command?
A. It is the primary management command for the NTP time server.
B. It updates the local system's date (i.e. day, month and year) but not the time (i.e. hours, minutes, seconds).
C. It queries one or more NTP time servers and adjusts the system time accordingly.
D. It sends the local system time to one or many remote NTP time servers for redistribution.
E. It can be used by any user to set the user clock independently of the system clock.
On a dual boot system, every time the system is booted back into Linux the time has been set backward by one day. Which of the following commands will correct the problem?
A. date -d '+ 1 day'
B. hwclock --systohc --localtime
C. ntpdate pool.ntp.org
D. time hwclock
Which of the following details is NOT provided in any output from the netstat utility?
A. broadcast services
B. interface statistics
C. masquerading connections
D. network connections
E. routing tables
Which of the following commands can be used to display the local routing table? (Choose TWO correct answers.)
A. ifconfig
B. dig
C. netstat
D. route
E. trackroute
Which command is used to add an empty group to the system? (Specify ONLY the command without any path or parameters.)
A. groupadd
B. /usr/sbin/groupadd
C. PlaceHolder
D. PlaceHolder