Which of the following commands puts the output of the command date into the shell variable mydate?
What output will the following command produce?
seq 1 5 20
Which of the following SQL queries counts the number of occurrences for each value of the field order_type in the table orders?
What word is missing from the following SQL statement?
__________ count(*) from tablename;
(Please specify the missing word using lower-case letters only.)
When the command echo $ outputs 1, which of the following statements is true?
What is the purpose of the file /etc/profile?
Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)
By default, the contents of which directory will be copied to a new user's home directory when the account is created by passing the -m option to the useradd command? (Specify the full path to the directory.)
What command displays all aliases defined in the current shell? (Specify the command without any path information)
Which command allows you to make a shell variable visible to subshells?
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
What is the difference between the commands test -e path and test -f path?
Which of the following configuration files should be modified to set default shell variables for all users?
Which directory in /etc is used to keep a sample copy of files and directories for when a new user has a home directory created? (Please provide the full path)
Which of the following commands lists all defined variables and functions within Bash?
Which of the following words is used to restrict the records that are returned from a SELECT SQL query based on a supplied criteria for the values in the records?
You are looking into a new script you received from your senior administrator. In the very first line you notice a #! followed by a file path. This indicates that:
Which of the following SQL statements will select the fields name and address from the contacts table?
What keyword is missing from this code sample of a shell script?
____ i in *.txt; do
echo $i
done
How can the existing environment variable FOOBAR be suppressed for the execution of the script./myscript only?
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.)
What benefit does an alias in bash provide?
What output will the command seq 10 produce?
Which command makes the shell variable named VARIABLE visible to subshells?
Which of the following is the best way to list all defined shell variables?
When the command echo $$ outputs 12942, what is the meaning of 12942?
After issuing:
function myfunction { echo $1 $2 ; }
in Bash, which output does:
myfunction A B C
Produce?
What word is missing from the following SQL statement?
insert into tablename ________(909, 'text');
(Please specify the missing word using lower-case letters only.)
Which of the following words is used to restrict the records that are returned from a SELECT query based on a supplied criteria for the values in the records?
For accessibility assistance, which of the following programs is an on-screen keyboard?
Which file used by XDM specifies the default wallpaper?
On a system running the KDE Display Manager, when is the /etc/kde4/kdm/Xreset script automatically executed?
An administrator wants to determine the geometry of a particular window in X, so she issues the __________ -metric command and then clicks on the window.
Which of the following commands shows the current color depth of the X Server?
What is the default name of the configuration file for the Xorg X11 server? (Specify the file name only without any path.)
How is a display manager started?
What is the purpose of the Sticky Keys feature in X?
What is the name of the simple graphical login manager that comes with a vanilla X11 installation? (Specify ONLY the command without any path or parameters.)
Your senior administrator asked you to change the default background of his machine, which uses XDM. Which file would you edit to achieve this?
Why is the xhost program considered dangerous to use?
What is the purpose of a screen reader?
Which of the following are tasks handled by a display manager like XDM or KDM? (Choose TWO correct answers.)
X is running okay but you're concerned that you may not have the right color depth set. What single command will show you the running color depth while in X?
Which command can be used to investigate the properties for a particular window in X by clicking that window? (Specify ONLY the command without any path or parameters.)
The X11 configuration file xorg.conf is grouped into sections. How is the content of the section SectionName associated with that section?
Which of the following lines is an example of a correct setting for the DISPLAY environment variable?
Which command should be added to /etc/bash_profile to change the language of messages from an internationalised program to Portuguese (pt)? (Select TWO correct answers)
Which of the following fields can be found in the /etc/group file? (Choose THREE correct answers.)
Which TWO statements about crontab are true?
In which file, if present, must all users be listed that are allowed to use the cron scheduling system? (Specify the full name of the file, including path.)
What is the purpose of the iconv command?
Which of the following steps prevents a user from obtaining an interactive login session?
The correct crontab entry to execute the script chklog three times per month between 3 p.m. and 5 p.m.:
Of the ways listed, which is the best method to temporarily suspend a user's ability to interactively login?
Which of the following commands should be added to /etc/bash_profile in order to change the language of messages for an internationalized program to Portuguese (pt)?
How is the file format of /etc/crontab different from a normal crontab file? (Select TWO correct answers)
Where are user specific crontabs stored?
Which file specifies the user accounts that can NOT submit jobs via at or batch? (Provide the full path and filename)
A user was not given permission to use the CRON scheduling system. What file needs to be modified to provide that access? (Please specify the full path to the file)