Quiz: How Much Do You Know Linux?

50 Questions | Total Attempts: 65

SettingsSettingsSettings
Please wait...
Quiz: How Much Do You Know Linux?

Linux is an open source operating system (OS) that is a good alternative of Windows. If you are an expert of this OS, why not test your knowledge? Take our online quiz to show us how much you know and learn more along the way.


Questions and Answers
  • 1. 
    (Linux) Which of the following commands can be used to read the manual for your applications?
    • A. 

      Help

    • B. 

      Help

    • C. 

      ?

    • D. 

      Man

  • 2. 
    (Linux) Which of the following commands is NOT used in the management of files and directories?
    • A. 

      Ping

    • B. 

      Mkdir

    • C. 

      Touch

    • D. 

      Chmod

  • 3. 
    (Linux) Which of the following files contains hashes of user passwords on most modern Linux distributions?
    • A. 

      /etc/passwd

    • B. 

      /etc/sshd_config

    • C. 

      /etc/shells

    • D. 

      /etc/shadow

  • 4. 
    (Linux) What is the UID of the root user?
    • A. 

      0

    • B. 

      100

    • C. 

      1

    • D. 

      10

  • 5. 
    (Linux) What would the permissions be after running command "chmod 754 file"?
    • A. 

      -r-xr-xr--

    • B. 

      -rwxr-xr--

    • C. 

      -rwxrwxrw-

    • D. 

      -rwxr--r--

  • 6. 
    (Linux) Which command will set the permission of a file to read only for all users?
    • A. 

      Chmod 111

    • B. 

      Chmod 222

    • C. 

      Chmod 777

    • D. 

      Chmod 444

  • 7. 
    (Linux) Which command will copy a file?
    • A. 

      Cp orig.txt copy.txt

    • B. 

      Mv orig.txt copy.txt

    • C. 

      Cd orig.txt copy.txt

    • D. 

      Rm orig.txt copy.txt

  • 8. 
    (Linux) This command will change the current location to the user's home directory?
    • A. 

      Cd ..

    • B. 

      Cd *

    • C. 

      Cd ~

    • D. 

      Cd &

  • 9. 
    (Linux) Which of the following is NOT a standard I/O stream in Linux?
    • A. 

      STDIN

    • B. 

      STDOUT

    • C. 

      STDERR

    • D. 

      STDREAD

  • 10. 
    (Linux) True/False the sudo command lets users switch to a full shell as a different  user.
    • A. 

      True

    • B. 

      False

  • 11. 
    (Linux) Which directory contains configuration files?
    • A. 

      /usr

    • B. 

      /bin

    • C. 

      /var

    • D. 

      /etc

  • 12. 
    (Linux) When multiple commands to be executed are on one line they must be seperated by what symbol?
    • A. 

      |

    • B. 

      \

    • C. 

      !

    • D. 

      ;

  • 13. 
    (Linux) Which of the following commands can be used to grab portions of text out of a string?
    • A. 

      Cut

    • B. 

      Grep

    • C. 

      Delimit

    • D. 

      Find

  • 14. 
    (Linux) Which of the following commands will search for a particular file in specified directory?
    • A. 

      Search

    • B. 

      Find

    • C. 

      Look

    • D. 

      Hunt

  • 15. 
    (Linux) Which symbol represents comments in a BASH script?
    • A. 

      !

    • B. 

      #

    • C. 

      $

    • D. 

      *

  • 16. 
    (Linux) What will the following command in a BASH script output to the screen? echo "$#"
    • A. 

      All parameters are printed

    • B. 

      The  number of parameters  is printered

    • C. 

      The first parameter is printed

    • D. 

      The first comment is printed

  • 17. 
    (Linux) True/False An environment variable is used by the system and applications to read settings from the system.
    • A. 

      True

    • B. 

      False

  • 18. 
    (Linux) True/False  The operator -ne  can be used to compare strings.
    • A. 

      True

    • B. 

      False

  • 19. 
    (Linux) What are the two types of loops used in BASH scripting?
    • A. 

      For, then

    • B. 

      For, else

    • C. 

      For, while

    • D. 

      While, else

  • 20. 
    (Linux) Which of the following regular expressions would find Orville or Wilbur Wright on a line by itself?
    • A. 

      $(Orville | Wilbur) Wright^

    • B. 

      ^(Orville or Wilbur) Wright$

    • C. 

      ^(Orville | Wilbur) Wright$

    • D. 

      $(Orville | Wilbur) Wright$^

  • 21. 
    (Networking) What would the subnet mask be for the IP range 172.16.0.0/8?
    • A. 

      255.0.0.0

    • B. 

      255.255.0.0

    • C. 

      255.255.248.0

    • D. 

      255.255.255.0

  • 22. 
    (Networking) True or False: In order to communicate with devices on the same subnet, a computer must communicate with its Default Gateway.
    • A. 

      True

    • B. 

      False

  • 23. 
    (Networking) Fragmentation occurs at which layer(s) of the OSI Model?
    • A. 

      Fragmentation occurs at Layer 3 only

    • B. 

      Fragmentation occurs at Layer 2, and Layer 4

    • C. 

      Fragmentation occurs at Layer 2, Layer 3, and Layer 4

  • 24. 
    (Networking) Which of the following network IP addresses must use NAT to access resources on the internet?
    • A. 

      10.5.4.2

    • B. 

      172.16.52.4

    • C. 

      192.168.1.4

    • D. 

      All of the above

  • 25. 
    (Networking) You want to configure your firewall to allow people inside your network to ping anyone, but not allow anyone outside your network to traceroute anything behind your firewall, How should you configure it?
    • A. 

      Block all ICMP

    • B. 

      Block all ICMP Echo responses

    • C. 

      Block all out bound ICMP

    • D. 

      Block all outbound ICMP Time Exceeded In Transit

Back to Top Back to top