Dr. Mark Humphrys

School of Computing. Dublin City University.

Home      Blog      Teaching      Research      Contact

My big idea: Ancient Brain

Search:

CA114      CA170

CA668      CA669      Projects


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?