Docsity

Linux Power - Introduction to Visual Effects Programming – Exam 2 | VSFX 160, Exams of Typography

Toggle sidebar
bg1
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
pf3
pf4

Partial preview of the text

Download Linux Power - Introduction to Visual Effects Programming – Exam 2 | VSFX 160 and more Exams Typography in PDF only on Docsity!

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
  1. How do you make a symbolic link? a. ln –s dirName LinkName b. ln dirName LinkName c. ln linkName dirName d. ln dirName LinkName -s e. b & d f. c & d
  2. How do you copy a directory to the / folder? a. cp –r dirName / b. cp –d dirName / c. cp dirName / d. cp dirName / -r e. none of the above
  3. How do you list only directories? a. ls –al | grep ^d b. ls –al | awk ^d c. ls –al | sed ^d d. ls –al | awk -d e. ls –al | grep -d
  4. How do I count the number of items that begin with g or k? a. ls | grep –c ^[gk] b. ls | grep –c ^gk c. ls | grep –c -[gk] d. ls | awk –c -[gk] e. ls | awk –c *[gk]
  5. How do I find out what type of file shazam.exe is? a. find shazam.exe b. file shazam.exe c. apropos shazam.exe d. whatis shazam.exe e. whois shazam.exe f. df –k shazam.exe
  6. How do I print only the sizes of files in a directory.? a. ls –al –h | awk ‘{print $7}’ b. ls –al –h | awk ‘{echo $7}’ c. ls –al –h | grep ‘{echo $7}’ d. ls –al –h | sed ‘{echo $7}’ e. ls –al –h | sed ‘{print $7}’ f. ls –al –h | grep ‘{print $7}’
  7. The directory contains the following files: a4a a5a a6a - What does ls a?a return? a. nothing b. a4a a5a c. a4a d. a4a a5a a6a e. b, c & d f. b & c only