Updated: 2012-03-15 07:06 EDT
Here is a version of Midterm Test #1 (PDF) ordered with the most difficult questions first and including the count of people who answered the question correctly. The questions with the most wrong answers are at the beginning. Questions that are poorly answered often re-appear on subsequent tests. 87 people wrote the test.
echo one "two three" four 'five "six" seven' eight
echo " * " ; echo ' * ' ; echo '' * '' ; echo "" * ""
echo ?nosuchfile ; ls ?nosuchfile ; echo "?nosuchfile" ; ls "?nosuchfile"
echo hi >a ; cp a b >file
echo hi >a ; ln a b >file
echo hi >a ; mv a b >file
echo hi >a ; rm a >file
head x >x ; tail x >x ; sort x >x ; wc x >x ; ls x >x
echo hi >.a ; echo * ; echo ?? ; echo [.]*
echo hi | cat /etc/passwd
echo hi >a ; cp a b | head
echo hi >"?abc" ; rm \?abc ; rm ./'?abc' ; rm ./././\?abc
echo a b c >out ; echo a b >out c ; echo >out a b c ; >out echo a b c
echo hi >a ; ls a ??? >out 2>errfile ; ls a ??? >out 2>&1
umask 111 ; echo hi >foo ; ls -l foo
umask 022 ; echo hi >foo ; ls -l foo
umask 033 ; echo hi >foo ; ls -l foo
echo hi >foo ; chmod 277 foo ; ls -l foo ; cat foo
Author:
| Ian! D. Allen - idallen@idallen.ca - Ottawa, Ontario, Canada
| Home Page: http://idallen.com/ Contact Improv: http://contactimprov.ca/
| College professor (Free/Libre GNU+Linux) at: http://teaching.idallen.com/
| Defend digital freedom: http://eff.org/ and have fun: http://fools.ca/
Plain Text - plain text version of this page in Pandoc Markdown format
Author Ian! D. Allen