Which of the following is NOT a valid command for variable declaration? typeset –x ENV_VAR=1 export...
Introduction to Linux II
A new environment variable can be “exported” and assigned a...
A new environment variable can be “exported” and assigned a value with a single command. True or...
Which of the following is NOT a valid variable name?
Which of the following is NOT a valid variable name? _LPIC VAR_1 NEWVARIABLE 2_VAR
Shell variables are case insensitive. True or False?
Shell variables are case insensitive. True or False? True False
Which of the following is a valid variable assignment?
Which of the following is a valid variable assignment? 2=xyz APP_VAR=’zero’ alpha-init=5 MY VAR=...
Command substitution can be used to insert the output of a...
Command substitution can be used to insert the output of a command as another command’s argument...
A user wants to execute a script called test1_script. What type...
A user wants to execute a script called test1_script. What type of permission does she need on the...
Which of the following file test statement conditions is NOT...
Which of the following file test statement conditions is NOT correct? -d filename tests if the file...
The statement if [ -d file ] will be true, if the file:
The statement if [ -d file ] will be true, if the file: Is executable Exists Is writable Is a...
The _ command is used to print a sequence of numbers.
The ___________ command is used to print a sequence of numbers. seq series num list
The output of the command seq 10 10 30 will be:
The output of the command seq 10 10 30 will be: 50 10 10 30 10 20 30 3
What will the following statement do? for name in `cat...
What will the following statement do? for name in `cat /root/users` Get into an infinite loop...
The _ statement is most useful in performing an operation on...
The __________ statement is most useful in performing an operation on multiple items. read for *...
A user wants an email sent when his shell script is executed...
A user wants an email sent when his shell script is executed successfully. Which of the following...
Which of the following will NOT handle bad user input properly:
Which of the following will NOT handle bad user input properly: Checking the value of the $...