Dr. Mark Humphrys

School of Computing. Dublin City University.

Home      Blog      Teaching      Research      Contact

Search:

CA216      CA249      CA318

CA400      CA651      CA668


Linux Quiz B

NOT for marks. Just for practice.
I give this in the style of a form in which you can organise your answers. But N.B. There is nowhere to "submit" to. Your answers are lost when you log out.
If you want to keep your answers, save them in a text file.


  1. Typing the command man does what?

  2. Typing the command man man does what?

  3. Typing the command man man > man does what?

  4. Typing the command man man | man does what?

  5. What does the command "find . -type d" do?

  6. The hidden .* files are what?

  

Shakespeare files

  1. Show all lines where the string "Ireland" appears in Shakespeare. (Search only the files called complete.html to avoid double-counting.)

  2. Count the number of lines where the string "Ireland" appears in Shakespeare. (Use either "grep" or "wc".)

  3. In the previous, show the lines with "Ireland" except for the lines with "for Ireland".

  4. In the previous, count the lines with "Ireland" except for the lines with "for Ireland".

  5. How many times does the string "Scotland" appear in Act 3 of a Shakespeare play?