Dr. Mark Humphrys

School of Computing. Dublin City University.

Home      Blog      Teaching      Research      Contact

Search:

CA216      CA249      CA318

CA400      CA651      CA668


Linux Quiz 2

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. What is the meaning of a directory called '.'?

  2. What is the meaning of a directory called '..'?

  3. $PATH is what?

  4. Show me the value of $PATH

  5. Two programs, in different directories, have the same name. One is a system program. The other is a script that you wrote. What happens when you type that name?

  6. In the previous, if you find the system program is running when you type that name, how can you make sure that your program runs instead?

  7. On Windows, C:\ is the equivalent of what on UNIX/Linux?

  8. On Windows, C:\Users\me is the equivalent of what on UNIX/Linux?

  9. On Windows, C:\Windows\System32 is the equivalent of what on UNIX/Linux?

  10. Issuing the command gedit will do what?

  11. Issuing the command gedit & will do what?

  12. What is the effect of the following Linux command? ls -al > myfile

  13. What will this do?
    cd 
    ls -alR 
    

  14. What will this do?
    cd /
    ls -alR 
    

  15. What will this do?
    cd /
    ls -al > outputfile.log
    

  16. What will this do?
    cd /
    ls -al > $HOME/outputfile.log
    

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

  18. What does the command "find . -type f" do?