
EXAM 2: LINUX POWER
IF YOU KNOW THE MATERIAL IN THIS 2ND EXAM YOU WILL KNOW EVEN MORE LINUX, MORE THAN
ALMOST ALL ANIMATORS!
1. What does * mean?
a. wildcard
b. everything except 1st character
c. the last character of text
d. a single character
e. any character excluding numbers
f. b & e
g. none of the above
2. What will ls [fFv]ile produce if you have vile, file, Vile, and File in the folder?
a. All of the files
b. File,vile,file
c. File, Vile
d. Vile, vile
e. File
f. None of the above
3. What does the flag –a mean in read –a answer?
a. Answer is put into the a variable
b. Answer is an array
c. Answer is placed in all variables
d. Overwrite the non-existant variable
e. none of the above
f. a & b
4. How do you count the number of files and directories in a folder?
a. ls –al | grep –c .
b. ls –al | awk –c .
c. ls –al | awk –t .
d. ls –al | grep –t .
e. b & d
f. a & c
g. none of the above
5. What does cd – mean?
a. Goes to root directory
b. Goes 2 directories back
c. Goes to your last directory
d. goes to /tmp
e. None of the above
f. b & c
6. How do you remove a folder?
a. rm –g folder
b. rm –* folder
c. rm –r folder
d. rm folder
e. None of the above
f. a & b