A user jamie already exists in the system. The command grep jamie /etc/passwd displays one user...
Introduction to Linux II
The return status from a command is 1. What does this indicate?
The return status from a command is 1. What does this indicate? Calculation done by the command...
In shell scripts, the conditional statement if must always end...
In shell scripts, the conditional statement if must always end with: then elif fi False condition
When will the condition test -n STRING be true?
When will the condition test -n STRING be true? If the length of STRING is nonzero If the length of...
Conditional statements CANNOT be used to determine which of the...
Conditional statements CANNOT be used to determine which of the following? System runlevel If the...
The command read –p will capture the current position of the...
The command read –p will capture the current position of the mouse pointer. True or False? True...
The _ statement can be used to gather information from the user...
The __________ statement can be used to gather information from the user running the script. read...
Which of the following commands will produce the same result as...
Which of the following commands will produce the same result as start=`date`? start=date...
A user has written a few scripts for private use. Which of the...
A user has written a few scripts for private use. Which of the following commands should be used so...
Use of SETUID permission on scripts is the best way to specify...
Use of SETUID permission on scripts is the best way to specify permissions. True or False? True...
An ideal place for a regular user (not a super user), to place...
An ideal place for a regular user (not a super user), to place their shell scripts would be: /sbin...
Instead of specifying the current directory, it is better to...
Instead of specifying the current directory, it is better to place the script in a location that is...
Which of the following is placed before a script name to execute...
Which of the following is placed before a script name to execute it from the current directory? #! ...
The command bash script_file can be used to directly execute a...
The command bash script_file can be used to directly execute a shell script. True or False? True...
The first line in a shell script reads:#!/bin/bashWhat does it...
The first line in a shell script reads:#!/bin/bashWhat does it signify? It is a comment The...