click below
click below
Normal Size Small Size show me how
midterm 330
Question | Answer |
---|---|
The shell only allows 9 command line parameters: $1, $2, ... $9. | False |
a user can belong to only one group. | False |
Which of the following is NOT and option for the "scp" command ? | -O to prompt before overwrite |
The Linux file manager can access files on remote computers in a graphical user interface. | True |
Which option for the "ssh" command enables X11 forwarding? | -X |
Regular expressions and shell wild cards use the same meta characters with the same meaning. | False |
Which of the following is not a Unix command interpreter? | rash |
Shells typically allow to customize their behavior. Which of the following is NOT a common way of shell customization ? | defaults specified in the /etc/passwd file |
Environment variables hold their values even after the user has logged out. | False |
Some normal Unix commands, e.g. echo, are built into the shell and therefore their applicable description is found on the shell man page. | True |
The first line of a shell script is called: | shebang |
A script can only be run if it has the "x" executable bit set in the file mode. | False |
A shell function must declare all its parameters before they can be used | False |
In awk, strings printed with the "%20s" printf directive will always be left justified | False |
What is the string concatenation operator in awk? | the space |
Every awk program must use the BEGIN and END patterns. | False |
awk can use which character as field seperator? | any character |
Which function in awk is used to divide a string into pieces separated by the field seperator and store the pieces in an array? | split |
What is the meaning of the $0 variable in awk? | entire record |
awk allows strings as array index. | True |
awk reads input lines automatically | True |
What is the command to change permissions on a directory? | chmod |
The "ftp" utility does not allow to use wildcards at all. | false |
Which command does what on a typical UNIX system? | scp - secure copy to/from a remote computer sftp sftp - secure file transfer to/from a remote computer ssh ssh - secure login to a remote computer ftp ftp - file transfer to/from a remote computer |
Which userid is used for anonymous ftp? | ftp |
The commands "ssh" has been superseded by the "telnet" command to allow secure login to another computer. | false |
A script can only be executed if it has the "execute" set in the file mode. | false |
A Here document uses which symbol on the command line ? | << |
The _______ feature is a convenient way to create shorthands for more complicated commands. | alias |
The "-c" option of the history command shows the number of commands in the history buffer | false |
A regular expression can match a word at the beginning of a line. | True |
Variables defined within functions are always local, i.e. their values are only known within the function. | False |
Which of the following is not a correct matching end for a shell keyword that begins the body of a control structure: | endif |
Which of the following is not a looping construct in the shell? | repeat |
Which of the following is a data type that the shell does not allow for its variables? | boolean |
The if statement uses parenthesis to enclose the boolean expression it evaluates. | False |
Variables in awk are initialized how? | to 0 or "" depending on context when first used? |