The two MCQs relate to finding things with the Unix Shell. Question One relates to lesson http://swcarpentry.github.io/shell-novice/01-filedir.html
###Question One### Which command shows you all items in the current directory and flag the items which are directories?
- ls
- ls .
- ls -a
- ls -a -f
- ls -a -F
The second MCQ deals with finding things within a file and is related to lesson [https://swcarpentry.github.io/shell-novice/06-find.html] (https://swcarpentry.github.io/shell-novice/06-find.html)
###Question Two### Which command returns the first line of the file haiku.txt?
- echo 1 haiku.txt
- cat 1 haiku.txt
- grep 1 haiku.txt
- head 1 haiku.txt
- none of the above
###Answers to Question Two###
- Student has confused echo command to return content within a file, which it doesn’t. Echo returns exactly the arguments you give it.
- Student misunderstood cat command, probably since cat with just one filename returns all the lines of that one file.
- Student misunderstood the use of grep. The command as written looks for occurrences of the character “1” in the file haiku.txt, not line 1.
- Close… head needs a hyphen before the 1 to indicate a flag.
- Correct answer.