What output will the following command sequence produce?
echo '1 2 3 4 5 6' | while read a b c; do echo result: $c $b $a; done
A. result: 3 4 5 6 2 1
B. result: 1 2 3 4 5 6
C. result: 6 5 4
D. result: 6 5 4 3 2 1
E. result: 3 2 1
What word is missing from the following SQL statement?
__________ count(*) from tablename;
(Please specify the missing word using lower-case letters only.)
A. select
When the command echo $$ outputs 12942, what is the meaning of 12942?
A. It is the process ID of the echo command.
B. It is the process ID of the current shell.
C. It is the process ID of the last command executed.
D. It is the process ID of the last command which has been placed in the background.
Which of the following steps prevents a user from obtaining an interactive login session?
A. Run the command chsh -s /bin/false with the user name.
B. Set the UID for the user to 0.
C. Remove the user from the group staff.
D. Add the user to /etc/noaccess.
E. Create a .nologin file in the user's home directory.
Which command can be used to delete a group from a Linux system?
A. groupdel
B. groupmod
C. groups
D. groupedit
Which command is used to add an empty group to the system? (Specify ONLY the command without any path or parameters.)
A. groupadd -or- /usr/sbin/groupadd
Why should a regular user edit his personal crontab by using the command crontab instead of just editing his crontab file manually?
A. Because user specific crontab entries are stored in a common database and must be extracted before editing.
B. Because crontab starts the cron daemon in case it is not running due to no other crontab entries existing.
C. Because user specific crontab entries are stored in a special directory which is maintained by the cron daemon and not writable for regular users.
D. Because crontab collects information about all users crontabs and recommends similar commands used by other users of the system.
What is the purpose of the command mailq?
A. It fetches new emails from a remote server using POP3 or IMAP.
B. It is a multi-user mailing list manager.
C. It is a proprietary tool contained only in the qmail MTA.
D. It queries the mail queue of the local MTA.
E. It is a command-line based tool for reading and writing emails.
Which parameter must be passed to ifconfig to activate a previously inactive network interface? (Specify the parameter only without any command, path or additional options)
A. up
Which file lists which users can execute commands using sudo? (Specify the full name of the file, including path.)
A. /etc/sudoers