Linux+ Networking Chapter 5

20 Questions  I  By Ajeff
Please take the quiz to rate it.

Linux Networking Quizzes & Trivia
Linux+ Networking Chapter 5

  
Changes are done, please start the quiz.


Questions and Answers

Removing question excerpt is a premium feature

Upgrade and get a lot more done!
  • 1. 
    A symbolic link is also known as a soft link and is depicted by an @ appearing at the beginning of the filename when viewed using the ls –l command. True or False?
    • A. 

      True

    • B. 

      False


  • 2. 
    What was created to define a standard directory structure and common file location for Linux?
    • A. 

      FSH

    • B. 

      X.500

    • C. 

      FHS

    • D. 

      Root directory


  • 3. 
    There is no real difference between the “S” and “s” special permissions when displayed using the ls –l command. One just means it is on a file and the other that it is on a directory. True or False?
    • A. 

      True

    • B. 

      False


  • 4. 
    The default permissions given by the system prior to analyzing the umask are ___________for directories, and __________ for files.
    • A. 

      Rw-rw-rw- and rw-rw-rw-

    • B. 

      Rw-rw-rw- and r--r--r--

    • C. 

      Rw-rw-rw- and rwxrwxrwx

    • D. 

      Rwxrwxrwx and rw-rw-rw-

    • E. 

      Rwxrw-rw- and rwx-rw-rw-


  • 5. 
    What must a user do to run cp or mv interactively and be asked if she wants to overwrite an existing file?
    • A. 

      There is no choice as the new file will overwrite the old one by default.

    • B. 

      Type interactive cp or interactive mv.

    • C. 

      Type cp -i or mv -i.

    • D. 

      Type cp --interactive or mv --interactive.

    • E. 

      Just type cp or mv as they run in interactive mode by default.


  • 6. 
    A user utilizes the chgrp command to give ownership of a file to another user. What must the user do to regain ownership of the file?
    • A. 

      Run chgrp again listing himself as the new owner.

    • B. 

      Nothing as this is a one-way, one-time action.

    • C. 

      Have the new owner run chgrp and list the original owner as the new owner.

    • D. 

      Run chown and list himself as the new owner.


  • 7. 
    After typing the ls –F command, you see the following line in the output:  -rw-r-xr--    1 user1    root        0 Apr 29 15:40 file1  What does this mean?
    • A. 

      User1 has read and write, members of the root group have read and execute, and all others have read permissions to the file.

    • B. 

      Members of the root group have read and write, user1 has read and execute, and all others have read permissions to the file.

    • C. 

      All users have read and write, members of the root group have read and execute, and user1 has read permissions to the file.

    • D. 

      User1 has read and write, all others have read and execute, and members of the root group have read permissions to the file.


  • 8. 
    After typing the command umask 731, the permissions on all subsequently created files and directories will be effected. In this case, what will the permissions on all new files be?
    • A. 

      Rw-rw-rw-

    • B. 

      Rwxrw-r--

    • C. 

      ---r--rw-

    • D. 

      ----wx--x


  • 9. 
    When you change the data in a file that is hard-linked to three others, __________.
    • A. 

      Only the data in the file you modified is affected.

    • B. 

      Only the data in the file you modified and any hard linked files in the same directory are affected.

    • C. 

      The data in the file you modified and the data in all hard linked files are modified as they have different inodes.

    • D. 

      The data in the file you modified as well as the data in all hard linked files are modified as they share the same data and all have the same inode and file size.


  • 10. 
    The command chmod 317 file1 would produce which of the following lines in the ls command?
    • A. 

      --w-r--rwx 1 user1 root 0 Apr 29 15:40 file1

    • B. 

      --wx--xrwx 1 user1 root 0 Apr 29 15:40 file1

    • C. 

      -rwxrw-r-x 1 user1 root 0 Apr 29 15:40 file1

    • D. 

      --w-rw-r-e 1 user1 root 0 Apr 29 15:40 file1


  • 11. 
    Which of the following commands will change the user ownership and group ownership of file1 to user1 and root respectively?
    • A. 

      Chown user1:root file1

    • B. 

      Chown user1 : root file1

    • C. 

      This cannot be done because user and group ownership properties of a file must be modified separately.

    • D. 

      Chown root:user1file1

    • E. 

      Chown root : user1file1


  • 12. 
    What does the /var directory contain?
    • A. 

      Various additional programs

    • B. 

      Spools and log files

    • C. 

      Temporary files

    • D. 

      Files that are architecture independant

    • E. 

      Local variance devices


  • 13. 
    What does the mv command do? (Choose all that apply.)
    • A. 

      It makes a volume.

    • B. 

      It makes a directory.

    • C. 

      It moves a directory.

    • D. 

      It moves a file.


  • 14. 
    A file has the following permissions r----x-w-. The command chmod 143 would have the same effect as the command  _______________. (Choose all that apply.)
    • A. 

      Chmod u+x-r,g+r-x,o+w file1

    • B. 

      Chmod u=w,g=rw,o=rx file1

    • C. 

      Chmod u-r-w,g+r-w,o+r-x file1

    • D. 

      Chmod u=x,g=r,o=wx file1

    • E. 

      Chmod u+w,g+r-w,o+r-x file1


  • 15. 
    The which command _________________?
    • A. 

      Can only be used to search for executables

    • B. 

      Searches for a file in all directories starting from the root

    • C. 

      Is not a valid Linux command

    • D. 

      Searches for a file only in directories that are in the PATH variable


  • 16. 
    Hard links need to reside on the same filesystem as the target, whereas symbolic links need not be on the same filesystem as the target. True or False?
    • A. 

      True

    • B. 

      False


  • 17. 
    When applied to a directory, the SGID special permission____________________.
    • A. 

      Causes all new files created in the directory to have the same group membership as the directory and not the entity that created them

    • B. 

      Cannot be done as it is only applied to files

    • C. 

      Allows users the ability to use more than two groups for files that they create within the directory

    • D. 

      Causes users to have their permissions checked before they are allowed to access files in the directory


  • 18. 
    Which command do you use to rename files and directories?
    • A. 

      Cp

    • B. 

      Mv

    • C. 

      Rn

    • D. 

      Rename


  • 19. 
    What are the three standard Linux permissions?
    • A. 

      Full control, read-execute, write

    • B. 

      Read, write, modify

    • C. 

      Execute, read, write

    • D. 

      Read, write, examine


  • 20. 
    Given the following output from the ls command, how many files are linked with file1? drwxr-xr-x    3 root     root         4096 Apr  8 07:12 Desktop -rw-r--r--    3 root     root          282 Apr 29 22:06 file1 -rw-r--r--    1 root     root          282 Apr 29 22:06 file2 -rw-r--r--    4 root     root          282 Apr 29 22:06 file3 -rw-r--r--    2 root     root          282 Apr 29 22:06 file4 -rw-r--r--    1 root     root          282 Apr 29 22:06 file5 -rw-r--r--    1 user1    sys           282 Apr 29 22:06 file6
    • A. 

      One

    • B. 

      Two

    • C. 

      Three

    • D. 

      Four


Back to top

Removing ad is a premium feature

Upgrade and get a lot more done!
Take Another Quiz
We have sent an email with your new password.