102 M/C Questions -1- 102 M/C Questions -2- 6. If my current directory is /bin, which of these pathnames is equivalent to the file PRINT Name: LAB Section: name /bin/ls? Test Version: 030 One-Answer Multiple Choice 102 Questions a. ls/. b. ../bin/ls/. c. ../../bin/ls d. ./bin/ls e. /root/bin/ls ☞ Read all the words of these instructions and both sides (back and front) of all pages. 7. In an empty directory, how many files are created by this command: ☞ Use your full, unabbreviated name on the mark-sense form. Do not abbreviate your name. touch a "b c" ' ' d e ☞ Put the three-digit Test Version above into NO. OF QUESTIONS and NO. OF STUDENTS ☞ Fill in the bubbles with pencil only, no pen. Enter your NAME, Test Version, and answers. a. 7 b. 6 c. 4 d. 3 e. 5 ☞ Manage your time. Answer questions you know, first. One Answer per question. 8. What is the output on your screen of this command sequence: echo pig >one ; echo bat | tail one a. bat b. an error message 1. Given my directory dir and my file dir/bar owned by me, which permissions c. bat followed by pig d. pig allow me to delete the file dir/bar from the directory, but not change the content e. pig followed by bat (data) in the file? 9. Which command below removes only this four-character file name containing a a. Permissions 300 on directory dir and 400 on file dir/bar. special character (and no others): abc* b. Permissions 100 on directory dir and 300 on file dir/bar. a. rm abc/* b. rm abc* c. rm abc\* c. Permissions 300 on directory dir and 200 on file dir/bar. d. rm abc\\* e. rm abc//* d. Permissions 100 on directory dir and 500 on file dir/bar. 10. Which of the following regular expressions would match lines that contain one or e. Permissions 500 on directory dir and 500 on file dir/bar. more alphanumeric characters only? 2. What is the output of this command sequence: a. [a-z0-9][a-z0-9]* echo bat >one ; echo sky | head -2 one b. [[:alnum:]][[:alnum:]]* a. bat followed by sky b. bat c. ^[[:alnum:]][[:alnum:]]*$ c. sky d. sky followed by bat d. ^[[:alnum:]]*$ e. an error message e. [[:alnum:]]* 3. What is the output of this sequence of three shell commands: 11. If the file foo in the current directory contains just the line 123, what is the output echo hi >hi ; head hi >hi ; wc hi of the following command: grep '[[:alpha:]]' foo a. 1 1 3 hi b. no output c. 2 2 4 hi a. 123 b. an error message c. foo d. 1 1 2 hi e. 0 0 0 hi d. dbd e. no output 4. What is the bash shell output of this two-command sequence if run in a directory 12. If you type the command grep pattern containing 765 files with names that are all the numbers from 1 to 765 inclusive: which key sequence will send an EOF and take you immediately back to the foo="*" ; echo $foo command prompt? a. * a. [CTRL-R] b. [CTRL-D] c. [CTRL-C] b. $foo d. [CTRL-L] e. [CTRL-U] c. an asterisk (’*’) and the file names 1 through 765 13. What is the output of this successful command line? d. the file names 1 through 765 cd /home/myhome ; mkdir foo ; mkdir bar ; pwd e. all the file names that start with an asterisk (’*’) a. /home/myhome/foo/bar b. /home/myhome/foo 5. What is the output on your screen of the following sequence of commands: c. /bar d. /home/myhome a=9 ; b=9 ; [ $a -le $b ] ; echo $? e. /home/myhome/bar a. the number 1 or 0 followed by another 1 or 0 on a new line b. no output c. 0 d. 1 e. test: $a: integer expression expected CST 8177 − Winter 2015 − Practice Pool #1 Wenjuan Jiang and Ian Allen CST 8177 − Winter 2015 − Practice Pool #1 Wenjuan Jiang and Ian Allen 102 M/C Questions -3- 102 M/C Questions -4- 14. Which of the following is true, given this long directory listing from ls: 21. If x=8 and y=9 then which of the following bash command lines outputs only 755 drwxr-x--x 256 ian user 512 May 30 12:35 dir the word foobar (and nothing else)? a. The number 256 is the octal permissions of this directory. a. [x!=x] || echo foobar b. The number 755 is the count of links (names) this directory has. b. [ x = x ] && echo foobar c. The number 512 is the count of links (names) this directory has. c. [ x -ne y ] && echo foobar d. The number 256 is the inode number of this directory. d. [!x = y] && echo foobar e. The number 512 is the size of this directory. e. [x -ne y] || echo foobar 15. What is in file cow after running this bash shell command line? 22. What is the result of this exact command line: echo one two >cow three echo /etc/passwd hello a. one two three b. echo one two a. the contents of the files "/etc/passwd" and "hello" will be displayed c. no output (empty file) d. one two cow three b. all the files under "/etc/passwd" with the name "hello" will be displayed e. one two c. a list of file names matching "/etc/passwd" and "hello" will be displayed 16. If I am in my home directory named /home/me and x is an empty sub-directory, d. file "/etc/passwd" will be copied to "hello"; the names will be displayed as well what is true after this command line: e. the text "/etc/passwd" and "hello" will be displayed touch ./x/fil ; mv x/./fil x/../../me/./y 23. Which command line would show the inode number of a file? a. the directory x now contains only a file named y a. ps -l file b. ls -i file c. ls -l file b. the command fails because the path x/./fil does not exist d. cat -l file e. cat -i file c. the directory x is still empty 24. What would you type to change the permissions on a file to --x-wx-w-? d. there is a second copy of the file fil in the file named y a. chmod 121 file b. chmod 122 file e. the command fails because the path x/../../me does not exist c. chmod 132 file d. chmod 654 file 17. If file ./a contains thirty lines, and file ./b contains fifty lines, then how many e. chmod 322 file lines are output by this command: cat ./a | sort ./b 25. What is the output on your screen of the following sequence of commands: a. 20 b. no lines (empty file) x=1 ; y=2 ; test $x -le $y ; echo $? c. 80 d. 50 a. the number 0 or 1 followed by another 0 or 1 on a new line e. 30 b. test: $x: integer expression expected 18. What is the output on your screen of the following command sequence: c. 0 echo hi >wc ; wc wc >hi ; cat hi d. no output a. 1 1 3 wc b. 1 1 2 wc c. no output e. 1 d. hi e. 0 0 0 wc 26. What is the correct syntax to redirect both standard output and standard error into 19. What minimal permissions must you have on a directory to be able to execute the same output file? successfully the command ls . from inside the directory? a. command 2>1 >out b. command >out 2>&1 a. --x b. r-- c. r-x d. rw- e. -wx c. command >out 2>1 d. command 2>&1 >out 20. If the file foo in the current directory contains just two lines dbd, and 123, what is e. command 2>out >out the output of the following command: grep '[:alnum]' foo 27. If file bar contains the line a=abc then what is the bash output of this sequence a. foo b. dbd c. 123 of three commands: d. no output e. an error message a=123 ; source bar ; echo "I see '$a' here." a. I see 'abc' here. b. "I see abc here." c. I see '$a' here. d. I see $a here. e. I see '123' here. CST 8177 − Winter 2015 − Practice Pool #1 Wenjuan Jiang and Ian Allen CST 8177 − Winter 2015 − Practice Pool #1 Wenjuan Jiang and Ian Allen 102 M/C Questions -5- 102 M/C Questions -6- 28. Which line below puts the count of the number of lines in the password file into the 34. What is the output of the following sequence of bash commands: variable foo? a=1 ; b=2 ; test $a -ge $b ; echo $? a. foo=$( wc -l foo b. cat foo > grep bar d. Either single or double quotes will stop shell glob (wildcard) patterns from c. grep foo bar d. grep bar foo expanding. e. grep cat foo bar e. Typing ./script and bash script always give identical results. 37. What is the bash shell output of this two command sequence: 31. If bar is an executable script containing the line cow=pig then what is the bash PATH=/bin/ls:/bin/cat:/bin/sh ; cat nosuchfile output of this sequence of three commands: a. bash: cat: command not found cow=cat ; ./bar ; echo "the '$cow' ate" b. bash: /bin/sh: No such file or directory a. the $cow ate b. the 'cow' ate c. ls: /bin/cat: command not found c. the 'pig' ate d. the 'cat' ate d. bash: /bin/ls: command not found e. the '$cow' ate e. cat: nosuchfile: No such file or directory 32. If dog is an executable script containing the line: umask 0002 38. Given the following bash shell command line: read xx yy zz what is the output of the following sequence of commands: which user keyboard input line below will assign the text 22 to the shell variable umask 0077 ; ./dog ; umask named yy? a. 0075 b. 0079 a. 11,22,33 b. 11 22 33 c. 0002 d. no output on screen c. 11;22;33 d. 11:22:33 e. 0077 e. xx=11 yy=22 zz=33 33. In a directory that contains only the file single, what happens after this 39. What Unix command line will show you all of the processes currently running? command: mv single double a. which ps b. whereis ps c. ps all a. the command fails because "single" is not a directory d. finger ps e. ps aux b. an empty file named "double" is created 40. Which command sequence creates a directory into which anyone can put a file, but c. the command fails because the name "double" does not exist in which nobody can see the names of the files that are there? d. there is only the file named "double" in the directory now a. mkdir protected ; chmod 777 . e. there is a second copy of the file "single" in the file named "double" b. mkdir protected ; cd protected ; chmod go+wx . c. mkdir protected ; cd protected ; chmod go-x . d. mkdir protected ; chmod 333 protected e. mkdir protected ; chmod 777 protected CST 8177 − Winter 2015 − Practice Pool #1 Wenjuan Jiang and Ian Allen CST 8177 − Winter 2015 − Practice Pool #1 Wenjuan Jiang and Ian Allen 102 M/C Questions -7- 102 M/C Questions -8- 41. What is true about this output from ls -il foo bar 48. What would you type to change the permissions on a file to rw-r--r--? 23 -rwxr----- 3 root root 2 Jul 31 12:33 foo a. chmod 344 file b. chmod 311 file 24 -rwxr----- 3 root root 2 Jul 31 12:33 bar c. chmod 211 file d. chmod 644 file a. foo and bar are names for the same file e. chmod 244 file b. this output is not possible 49. If my current working directory is /home, and my home directory is /home/me, c. foo and bar each have two names (four names total) which of the following commands copies the Unix password file into my home d. foo and bar are two of three names for this file directory under the name foo? e. foo and bar are names for different files a. cp ../etc/passwd ./me/foo 42. What command can you use to delete a directory? b. cp ../etc/passwd ../me/foo a. erase b. mvdir c. deldir c. cp ../home/me/../etc/passwd ./me/./foo d. delete e. rmdir d. cp ./me/../etc/passwd ../home/me/foo 43. What is the output on your screen of the following sequence of commands: e. cp ../../etc/passwd /me/foo i=00 ; [ $i = 0 ] ; echo $? 50. Which of these statements is true? a. 0 a. You can make a hard link to a directory. b. the number 0 or 1 followed by another 0 or 1 on a new line b. You only need "r--" permission on directory "foo" for "ls -l foo" to c. 1 work. d. no output c. If you give me write permission on a file owned by you, I can then use chmod e. test: $i: integer expression expected to change its permissions. 44. If the file foo in the current directory contains just the line dbd, what is the output d. The "ln" command takes two arguments, so the maximum number of hard links of the following command: grep '[b1]' foo a file can have is two. a. foo b. no output c. dbd e. To make a hard link to file "foo" named "bar", file "foo" must exist. d. 123 e. an error message 51. In an empty directory, what is the shell output of these three commands: 45. If ./foo/bar were a file of text, what would be the output of this exact command touch .1 .2 .3 11 12 ; b='.1* .2*' ; echo '$b' line: diff ./foo/bar ./foo/bar a. '.1* .2*' b. 11 .1 12 .2 c. .1* .2* a. no output d. $b e. .1 .2 b. an error message because diff doesn´t allow the same file name twice 52. If a=aaa and b=bbb then what is the output of the following sequence of bash c. an error message because diff only allows one file name commands: if $a = $b ; then echo $a ; fi d. several lines, which are the lines that are different between the two files a. test: $a: integer expression expected e. the contents of file ./foo/bar would be displayed twice b. test: aaa: integer expression expected 46. Which command below removes only this five-character file name containing a c. aaa special character (and no others): yy?yy d. bash: aaa: command not found a. rm yy\?yy b. rm yy/?yy c. rm yy\\?yy e. no output d. rm yy?yy e. rm yy//?yy 53. What is the output of the following sequence of bash commands: 47. Which command line shows just the count of lines in the file? date='Friday March 12' ; test date = date a. wc file | awk '{print 1}' a. 0 b. wc file | awk '{print $1}' b. test: too many arguments c. wc file | awk '{print #1}' c. 1 d. wc file | awk '[print $1]' d. no output e. wc file | awk '[print #1]' e. Fri Mar 12 10:20:39 EST 2004 CST 8177 − Winter 2015 − Practice Pool #1 Wenjuan Jiang and Ian Allen CST 8177 − Winter 2015 − Practice Pool #1 Wenjuan Jiang and Ian Allen 102 M/C Questions -9- 102 M/C Questions -10- 54. What is the output on your screen of the following command sequence: 60. Given this sequence of commands: i=0 ; test $i = 00 ; echo $? echo foo >a ; ln a b ; echo bar >>b ; ln a c ; rm a a. 0 What is contained in file c? b. the number 0 or 1 followed by another 0 or 1 on a new line a. no such file (nonexistent) b. nothing - empty file - no data c. test: $i: integer expression expected c. foo d. bar d. 1 e. foo followed by bar e. no output 61. Which of these command lines will make file cow contain all of the content of file 55. What is the output on your screen of the following sequence of commands: one followed by all of the content of file two? x=pig ; y=bat ; touch $x ; [ -z $x ] ; echo $? a. echo one two >cow b. cat one two >cow a. test: $x: integer expression expected c. cp one >cow two >cow d. cp one two >cow b. no output e. mv one two >cow c. the number 0 or 1 followed by another 0 or 1 on a new line 62. What is the bash output of this sequence of two commands: d. 1 x=';' ; echo one $x date e. 0 a. one ; Mon Sep 30 08:00:00 EDT 2002 56. Which of the following regular expressions would match lines that contain no white b. one $x date space? c. one followed by Mon Sep 30 08:00:00 EDT 2002 on a new line a. [^[:space:]]* b. [^[:space:]]*$ d. one ';' date c. [^:space:]* d. ^[[:space:]]*$ e. one ; date e. ^[^[:space:]]*$ 63. In the output of the command ls -a, a dot that begins a name signifies what? 57. If the current directory contains files abc, bbc, cbc, and bbc contains just the line a. A name that is hidden. dbd, what is the output of the following command: grep bb* bbc b. A current file. a. bbc b. an error message c. dbd c. The parent directory. d. cbc e. no output d. A name with an unprintable character. 58. Given my directory ./a/b and my file ./a/b/c owned by me, which e. The current directory. permissions allow me to change or create new content (data) in the file ./a/b/c 64. A shell script named bar is executed as follows: but not delete the file? ./bar "a b" "c d e" f a. Permissions 400 on directory ./a/b and 400 on file ./a/b/c. Inside the script is the line: echo "$2" b. Permissions 100 on directory ./a/b and 100 on file ./a/b/c. What is the output on your screen from this line? c. Permissions 600 on directory ./a/b and 700 on file ./a/b/c. a. b" b. c d e c. a b d. Permissions 200 on directory ./a/b and 200 on file ./a/b/c. d. b e. $2 e. Permissions 100 on directory ./a/b and 200 on file ./a/b/c. 65. If the current directory contains files abc, bbc, cbc, and bbc contains just the line 59. If directory foo contains only these three three-character file names: .11, .12, dbd, what is the output of the following command: grep "bb*" bbc ..., then what is the output of the following bash shell command line: a. bbc b. dbd c. no output echo foo/??? d. cbc e. an error message a. foo/??? 66. Which of the following regular expressions would match lines that contain exactly b. foo/... one character of any kind? c. foo/.11 foo/.12 foo/... a. ^\?$ b. ^?$ c. ^.*$ d. ^*$ e. ^.$ d. no output 67. What appears on your screen after this bash shell command line? e. foo/.11 foo/.12 echo hi >out ; wc -c out a. 3 out b. 2 out c. no output d. 5 out e. 4 out CST 8177 − Winter 2015 − Practice Pool #1 Wenjuan Jiang and Ian Allen CST 8177 − Winter 2015 − Practice Pool #1 Wenjuan Jiang and Ian Allen 102 M/C Questions -11- 102 M/C Questions -12- 68. If /etc/passwd is a file name, which of the following pathnames always leads to 76. How do I search for the string xyz in the text display output from the man the same file? command? a. /etc/passwd/../.. b. /etc/passwd/. a. use the mouse to select "Search" in the menu c. /etc/../../passwd d. /../etc/passwd b. /xyz e. ./etc/passwd c. search xyz 69. If directory ./a contains these seven two-character file names: aa, ab, ac, ad, d. find xyz a*, a?, ??, then which shell command below will remove only the single name e. @xyz a? from the directory? 77. How many command arguments does the shell pass to this echo command: a. rm ./a/?\? b. rm "./a?" c. rm ./a\? echo 'It's a bird! No! It's a plane!' d. rm ./a/a? e. rm './a/a?' a. Four arguments. b. One argument. c. Two arguments. 70. Which command below removes only this five-character file name containing a d. Three arguments. e. Five arguments. special character (and no others): *test 78. If the current directory contains files abc, bbc, cbc, and bbc contains just the line a. rm ''*test'' b. rm ./\\*test c. rm ./*test dbd, what is the output of the following command: grep 'bb*' bbc d. rm \\*test e. rm "*test" a. dbd b. an error message c. no output 71. Who is the owner of file bar after you execute this sequence of commands in your d. bbc e. cbc home directory: 79. If your PATH contained only the file names /bin/sh, /bin/cat, and ln /etc/passwd foo ; ln foo one ; ln one two ; ln two bar /bin/ls, then what would be the bash shell output of this command: a. the file is owned by root cat /etc/passwd b. you cannot execute the given commands; no file will be created a. bash: /bin/sh: command not found c. you own the file bar b. cat: /etc/passwd: command not found d. the file is owned by home c. cat: bash: no such file or directory e. the file is owned by passwd d. bash: /bin/cat: no such file or directory 72. In an empty directory, what is the bash shell output of this three-command e. bash: cat: command not found sequence: touch aa .a ab .b .c ; x='.a* .b*' ; echo '$x' 80. If ./a/b were a readable empty file, what would be the bash shell output of this a. aa .a ab .b b. .a* .b* c. '.a* .b*' two command sequence: d. .a .b e. $x PATH=/etc/passwd:/bin/ls:/bin/cat ; /bin/cat ./a/b 73. What is the output of this command sequence if run in an empty directory: a. bash: ls: command not found touch A a ; echo * ">*" b. bash: cat: command not found a. No output b. A a >A a c. * >* c. /bin/cat: ./a/b: No such file or directory d. A a e. A a >* d. no output 74. If a bash shell script named foo contains the line: e. bash: /bin/cat: command not found if [ "$1" = '$2' ] ; then echo SAME ; fi 81. What is the output of the following sequence of bash commands: then which of the following command lines will produce SAME as output? false && echo "foo bar $?" a. ./foo $2 $2 b. ./foo "bar" 'bar' a. foo bar 0 b. no output c. ./foo "$1" '$2' d. ./foo '$2' bar c. foo bar 1 d. foo bar 0 e. ./foo bar bar e. foo bar 1 75. If foo is a script containing the line TERM=new ; export TERM, what is the 82. In an empty directory, what appears on your screen after this bash command line? output of the following sequence of bash commands that use foo: touch a ; ls | wc -l TERM=bar ; ./foo ; echo $TERM a. no output b. 3 c. 2 a. $TERM b. new c. foo d. 0 e. 1 d. TERM e. bar CST 8177 − Winter 2015 − Practice Pool #1 Wenjuan Jiang and Ian Allen CST 8177 − Winter 2015 − Practice Pool #1 Wenjuan Jiang and Ian Allen 102 M/C Questions -13- 102 M/C Questions -14- 83. In an empty directory, what appears on your screen after this bash command line? 89. Which command line lists all possible utilities available for sorting files? ls 1>/dev/null nosuchfile a. grep /etc/passwd sort b. man sort a. ls: nosuchfile: No such file or directory c. man | grep sort d. grep sort /etc/passwd b. ls: /dev/null: No such file or directory e. man -k sort c. no output 90. Which of these commands makes a file owned by me, also executable by me? d. nosuchfile a. chmod u+x ./myfile b. chmod x=u ./myfile e. ls: 1>/dev/null nosuchfile: No such file or directory c. umask 111 myfile d. umask 777 myfile 84. If a=cow and b=dog then what is the output on your screen of the following e. chmod x+u myfile sequence of commands: [ $a = cow -a $b = cow ] ; echo $? 91. When doing an ls -a, the output pathname that is a double dot (..) signifies a. test: $a: integer expression expected what? b. 1 a. The root directory. c. no output b. The current directory. d. the number 1 or 0 followed by another 1 or 0 on a new line c. A file or directory with double links. e. 0 d. A hidden file. 85. Which bash command sequence correctly compares the two numbers and prints e. The parent directory. OK? 92. What appears on your screen after this bash shell command line? a. if [ 4 > 3 ] ; then echo OK ; fi echo hi >a ; cat a | wc -c b. if ( let 4 < 3 ) ; then echo OK ; fi a. no output b. 2 c. 1 c. if [ 4 -gt 3 ] ; then echo OK ; fi d. 4 e. 3 d. if [ ! 4 <= 3 ] ; then echo OK ; fi 93. In an empty directory, how many files will be created using the following bash e. if ( ! 4 < 3 ) ; then echo OK ; fi shell two-command sequence: 86. In an empty directory, what is the length of the longest file name created by the x="one 'two two'two three four" ; touch $x following two-command sequence: a="1234 123 12 1" ; touch '$a' a. 5 files b. 3 files c. 1 file d. 4 files e. 2 files a. 3 characters b. 4 characters c. 13 characters 94. What is the output of this sequence of three shell commands: d. 2 characters e. 1 character umask 547 ; mkdir newdir ; ls -ld newdir 87. If cow is a sub-directory that contains only the file dog, what happens after this a. dr-xr--rwx 1 me me 0 Feb 20 07:55 newdir command: mv cow/dog cow/././cat b. d-w--w---- 1 me me 0 Feb 20 07:55 newdir a. the directory cow now contains only a file named cat c. d-w--wx--- 1 me me 0 Feb 20 07:55 newdir b. the command fails because the name cow/././cat does not exist d. d-w--wxrwx 1 me me 0 Feb 20 07:55 newdir c. the command fails because the name cat does not exist e. dr--r--rw- 1 me me 0 Feb 20 07:55 newdir d. the directory cow is now empty 95. What appears on your screen after this sequence of commands: e. there is a second copy of the file dog in the file named cat echo 1 >x ; ln x y ; echo 2 >>y ; sort x 88. What is the output of this sequence of three shell commands: a. empty file - no output on the screen umask 762 ; touch newfile ; ls -l newfile b. 1 followed by 2 a. ------xr-x 1 me me 0 Oct 1 1:12 newfile c. 1 b. -------r-- 1 me me 0 Oct 1 1:12 newfile d. 2 followed by 1 c. -rw-rw--w- 1 me me 0 Oct 1 1:12 newfile e. 2 d. -rwxrw--w- 1 me me 0 Oct 1 1:12 newfile e. --------wx 1 me me 0 Oct 1 1:12 newfile CST 8177 − Winter 2015 − Practice Pool #1 Wenjuan Jiang and Ian Allen CST 8177 − Winter 2015 − Practice Pool #1 Wenjuan Jiang and Ian Allen 102 M/C Questions -15- 102 M/C Questions -16- 96. The -v option to the grep command does what? This page intentionally left blank. a. turns on the translation of unprintable characters b. selects lines that do not contain unprintable characters c. prints the version number of the grep command d. selects lines that do not contain a match for the supplied pattern e. turns off the translation of unprintable characters 97. Which command line below outputs only lines 10-15 of the 16-line file named cow? a. tail -16 cow | head -10 b. head -15 cow | tail -6 c. head -15 | tail -6 cow d. head -16 cow | tail -5 cow e. tail -10 cow | head -6 cow 98. What is the output on your screen if a user signals an end-of-file from the keyboard during this command sequence? read input && echo $? a. an error message b. $? c. 1 d. no output on screen e. 0 99. Which Unix command line deletes a directory and everything inside it? a. rmdir -r dir b. rmdir -all dir c. rm -r dir d. deltree -all dir e. rm -all dir 100. If the file foo in the current directory contains just the line dbd, what is the output of the following command: grep '[[:alpha:]]' foo a. dbd b. 123 c. an error message d. no output e. foo 101. Given an existing file of yours named ./a/b/x, what is the output of this sequence of three shell commands: echo hi >./a/b/x ; wc ./a/b/x >./a/b/x ; cat ./a/b/x a. 1 1 1 ./a/b/x b. 0 0 0 ./a/b/x c. no output d. 1 1 3 ./a/b/x e. 1 1 2 ./a/b/x 102. Which of the following programs uses file globbing expressions rather than regular expressions for matching: a. sed b. vi c. find d. awk e. grep CST 8177 − Winter 2015 − Practice Pool #1 Wenjuan Jiang and Ian Allen CST 8177 − Winter 2015 − Practice Pool #1 Wenjuan Jiang and Ian Allen