UC3M

Telematic/Audiovisual Syst./Communication Syst. Engineering

Systems Architecture

September 2017 - January 2018

13.8.  Self-assessment questions

Check with these questions that you understand basic assumptions of the Linux environment.

  1. If I want to obtain information about how the application manual works, which command would you use?

    • man man

    • man -k man

    • ls man

    • man pwd

    • None above.

  2. What task does command ls -a?:

    • List current directory file contents, excluding directory entries.

    • List current directory contents, showing a long listing format (more detailed) for every entry.

    • List current directory contents with the size for every entry.

    • List current directory contents, including entries starting with .

    • None above.

  3. Select the correct option regarding paths:

    • A given absolute path can refer to more than one different file.

    • An absolute path starts with the symbol ..

    • If I want to change the location to the root directory, wherever I am, I have to type the command cd .

    • Command mv is used not only for moving files from one location to another, but also to rename them.

    • None above.

  4. File Notes.txt has the following access modes:

     -rw-r--r-- 1 teleco teleco 7 2011-09-07 14:18
            Notes.txt 

    I want my group to be allowed to write it, but not other users. Which is the correct option?

    • chmod +gw Notes.txt

    • chmod group +w Notes.txt

    • chmod +gw-ow Notes.txt

    • chmod group +w other -w Notes.txt

    • chmod g+w Notes.txt

    • chmod g+w o+w Notes.txt

    • None above.

  5. File Notes.txt has the following access modes:

     -rw-r--r-- 1 teleco teleco 7 2011-09-07 14:18
            Notes.txt 

    What does the first dash of the access modes mean?

    • There is always a first dash in the access modes list, it does not mean anything.

    • It means that user teleco does not have access to write.

    • It means that the entry is a common file, not a directory.

    • None above.

  6. I have just executed a command that I want to execute again. However, the command is large and, to save time, I don't want to type it again, so I'm going to use the command list previously written in the session. How can I access to that command in that list?

    • Up key

    • CTRL-A

    • Tab key

    • Any of the above.

    • None above.