Which of the following configuration files should be modified to globally set shell variables for all users?
A. /etc/bashrc
B. /etc/profile
C. ~/.bash_profile
D. /etc/.bashrc
What is the main difference between the batch and at commands?
A. The batch command will run multiple times. The at command will only run once.
B. The commands of a batch job run sequentially one after another while the commands in at jobs may run in parallel.
C. The at command reads commands from standard input. The batch command requires a command line argument.
D. The at command e-mail results to the user. The batch command logs results to syslog.
Which of the following actions prevents a specific user form scheduling tasks using at or batch?
A. Add the specific user to the /etc/ at.allow file.
B. Add the specific user to the [deny] section in the /etc/std.conf file.
C. Add the specific user to the /etc/at.deny file.
D. Add the specific user to the nojobs group.
E. Run atd --deny followed by the name of the specific user.
What is true regarding the statement beginning with #! That is found in the first line of a script?
A. It prevents the script from being executed until the ! is removed.
B. It specifies the path and the arguments of the interpreter used to run the script.
C. It is a comment that is ignored by the script.
D. It specifies the character encoding of the script.
Which of the following are operators used for comparison by the test command? (Choose two correct answers.)
A. equals
B. =
C. –is
D. –eq
E. null
Which of the following commands creates a function in Bash that outputs the sum of two numbers?
A. function sumitup { echo $(($1 + $2)) ; }
B. command sumitup { echo $(($1 + $2)) ; }
C. function sumitup { echo $1 + $2 ; }
D. method sumitup { echo $1 + $2 ; }
E. command sumitup { echo $1 + $2 ; }
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. SELECT AUTO_COUNT FROM orders COUNT order_type;
What is the purpose of the file /etc/profile?
A. It contains the welcome message that is displayed after login.
B. It contains security profiles defining which users are allowed to log in.
C. It contains environment variables that are set when a user logs in.
D. It contains default application profiles for users that run an application for the first time.
What command displays all aliases defined in the current shell? (Specify the command without any path information)
A. alias -or- alias -p
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.
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only CompTIA exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your LX0-104 exam preparations and CompTIA certification application, do not hesitate to visit our Vcedump.com to find your solutions here.