Commands And Permissions In Linux: Quiz!

21 Questions | Total Attempts: 516

SettingsSettingsSettings
Please wait...
Commands And Permissions In Linux: Quiz!

.


Questions and Answers
  • 1. 
    What is the symbolic representation of this numeric permission: 644?
    • A. 

      Rwxr-xr-x

    • B. 

      Rw-r--r--

    • C. 

      Rw-------

    • D. 

      R--rw-rw-

  • 2. 
    Given a file with permission 755, what commands would change the permission to r-xr--r--?
    • A. 

      Chmod 544 filename

    • B. 

      Chmod u+w,go+x filename

    • C. 

      Chmod u-rx,go-r filename

    • D. 

      Chgrp 544 filename

  • 3. 
    In linux, how many types of way we have?
    • A. 

      4

    • B. 

      3

    • C. 

      2

    • D. 

      1

  • 4. 
    In which directory the booting file is save?
    • A. 

      Dev

    • B. 

      Home

    • C. 

      Var

    • D. 

      Boot

  • 5. 
    The user specific document save in the /usr directory?
    • A. 

      True

    • B. 

      False

  • 6. 
    What command should we use to show the all hidden directory contents?
    • A. 

      Ls -i

    • B. 

      Ls -a

    • C. 

      Ls -s

    • D. 

      Ls /a

  • 7. 
    To list the directory contents with permissions the command is...........
    • A. 

      Ls -Z

    • B. 

      Ls -z

    • C. 

      Ls -/Z

    • D. 

      Ls -/z

  • 8. 
    To shut down the machine which command should we use?
    • A. 

      Shut down

    • B. 

      Shutdown -h now

    • C. 

      Power off

    • D. 

      Poweroff

  • 9. 
    To check the history we used _____________ command.
  • 10. 
    All the logs and variables install in which directory?
    • A. 

      /etc

    • B. 

      /usr

    • C. 

      /var

    • D. 

      /log

  • 11. 
    What is LINUX SHELL?
    • A. 

      Linux shell is a user interface used for executing the commands.

    • B. 

      Linux shell is a free shell for UNIX.

    • C. 

      Linux shell the default working directory.

    • D. 

      Linux shell is a administrator interface used for executing the commands.

  • 12. 
    Bob Armstrong, who has a username of boba, calls to tell you he forgot his password. What command should you use to reset his command?
    • A. 

      Password boba

    • B. 

      Password -boba

    • C. 

      Passwd /boba

    • D. 

      Passwd boba

  • 13. 
    What command is used to remove the password assigned to a group?
    • A. 

      Passwd -rm

    • B. 

      Passwd -r group

    • C. 

      Gpasswd -r

    • D. 

      Grouppasswd -rm

  • 14. 
    You are covering for another system administrator and one of the users asks you to restore a file for him. You locate the correct tarfile by checking the backup log but do not know how the directory structure was stored. What command can you use to determine this?
    • A. 

      Tar fx tarfile dirname

    • B. 

      Tar ctf tarfile

    • C. 

      Tar tvf tarfile filename

    • D. 

      Tar tvf tarfile

  • 15. 
    What type of server is used to remotely assign IP addresses to machines during the installation process?
    • A. 

      SMB

    • B. 

      NFS

    • C. 

      DHCP

    • D. 

      HTTP

    • E. 

      FT

  • 16. 
    Which password package should you install to ensure that the central password file couldn't be stolen easily?
    • A. 

      PAM

    • B. 

      Tcp_wrappers

    • C. 

      Securepass

    • D. 

      Shadow

    • E. 

      Ssh

  • 17. 
    When using useradd to create a new user account, which of the following tasks is not done automatically.
    • A. 

      Assign a UID.

    • B. 

      Assign a default shell.

    • C. 

      Create the user's home directory.

    • D. 

      Define the user's home directory.

  • 18. 
    You attempt to use shadow passwords but are unsuccessful. What characteristic of the /etc/passwd file may cause this?
    • A. 

      The login command is missing.

    • B. 

      The username is too long.

    • C. 

      The password field is prefaced by an asterisk.

    • D. 

      The password field is blank.

  • 19. 
    There are seven fields in the /etc/passwd file. Which of the following lists all the fields in the correct order?
    • A. 

      Username, UID, GID, home directory, command, comment

    • B. 

      Username, UID, GID, comment, home directory, command

    • C. 

      UID, username, GID, home directory, comment, command

    • D. 

      Username, UID, group name, GID, home directory, comment

  • 20. 
    Which file defines all users on your system?
    • A. 

      /etc/passwd

    • B. 

      /etc/users

    • C. 

      /etc/password

    • D. 

      /etc/user.conf

  • 21. 
    Which two commands can you use to delete directories?
    • A. 

      Rm

    • B. 

      Rm -rf

    • C. 

      Rmdir

    • D. 

      Rd

    • E. 

      Rd -rf

Back to Top Back to top