Hardest Linux Exam Quiz!

90 Questions | Attempts: 572
Share

SettingsSettingsSettings
Hardest Linux Exam Quiz! - Quiz

.


Questions and Answers
  • 1. 
    Which of the following is a text-mode command that is helpful in identifying CPU information?
    • A. 

      Cat /proc/cpuinfo

    • B. 

      Lscpu

    • C. 

      Lspci

    • D. 

      Cfdis

    • E. 

      Uname -a

  • 2. 
    What program can you use to manually bring up a network interface in Linux?
    • A. 

      Iwlist

    • B. 

      Route

    • C. 

      Telnet

    • D. 

      Ifconfig

    • E. 

      Traceroute

  • 3. 
    In what file are you likely to find the following lines?  
    • domain google.com
    • nameserver  8.8.8.8
    • nameserver 10.10.10.1
    • A. 

      /etc/resolv.conf

    • B. 

      /etc/fstab

    • C. 

      /etc/hosts

    • D. 

      /etc/services

    • E. 

      /etc/group

  • 4. 
    What type of information can netstat provide? (choose all that apply.)
    • A. 

      Network interface information

    • B. 

      Routing table data

    • C. 

      A list of open ports

    • D. 

      Round-trip network travel time

    • E. 

      The identities of broken routers

  • 5. 
    You can configure your power supply by accessing the /dev/power device file.
    • A. 

      True

    • B. 

      False

  • 6. 
    Partitioning a disk can enable you to install multiple OSs on one computer.
    • A. 

      True

    • B. 

      False

  • 7. 
    The _____ filesystem is very old but is supported by almost every OS, making it a good choice for interoperability. (one word)
  • 8. 
    The main filesystem in Linux is referred to as the _____ and is represented with the / symbol.
  • 9. 
    Your network’s hardware interface is called eth0. You want to bring up this interface via DHCP, so you type dhclient eth0 as root.
    • A. 

      True

    • B. 

      False

  • 10. 
    You want to test connectivity to google.com by sending 11 packets to see how many return. To do this, you can type __________ google.com
  • 11. 
    What symbol do you place after a command to run the program in the background?
    • A. 

      &

    • B. 

      +

    • C. 

      >

    • D. 

      |

    • E. 

      #

  • 12. 
    To allow the man pages to be viewed a page at a time, which pager program is used for displaying man pages?
    • A. 

      Apropos

    • B. 

      Grep

    • C. 

      Locate

    • D. 

      Whatis

    • E. 

      Less

  • 13. 
    How many man page sections are there total?
    • A. 

      5

    • B. 

      6

    • C. 

      7

    • D. 

      8

    • E. 

      9

  • 14. 
    To run a GUI program in Linux, you must launch it from a desktop environment’s menus.
    • A. 

      True

    • B. 

      False

  • 15. 
    Pressing the up arrow key in Bash reveals commands you’ve recently typed.
    • A. 

      True

    • B. 

      False

  • 16. 
    To view all your recent commands in the command history, type in the command __________.
  • 17. 
    Which of the following basic commands will change the directory or take the user back to /home?
    • A. 

      Rm

    • B. 

      Cp

    • C. 

      Cd

    • D. 

      Head

    • E. 

      Tail

  • 18. 
    Which basic command will create a symbolic link (shortcut) to a file?
    • A. 

      Cp

    • B. 

      Touch

    • C. 

      Echo

    • D. 

      Ln

    • E. 

      Cat

  • 19. 
    The tail basic command will output the last _____ lines of a file.
    • A. 

      5

    • B. 

      10

    • C. 

      15

    • D. 

      20

    • E. 

      25

  • 20. 
    It is possible to see a list of all the directory paths in your Linux operating system by typing echo $PATH.
    • A. 

      True

    • B. 

      False

  • 21. 
    Which key would you press if you wanted to do a command completion of a longer filename or command?
    • A. 

      Tab

    • B. 

      Spacebar

    • C. 

      Enter

    • D. 

      Shift

    • E. 

      Ctrl

  • 22. 
    Which of the following commands displays the name of the directory in which you're working?
    • A. 

      Wc

    • B. 

      Cat

    • C. 

      Echo

    • D. 

      Cd

    • E. 

      Pwd

  • 23. 
    You type touch afile.txt in a directory that contains no files. What will be the effect?
    • A. 

      The afile.txt file from your home directory will be copied to the current directory.

    • B. 

      The afile.txt file in your home directory will have its time stamps updated.

    • C. 

      Nothing; the command will return without doing anything.

    • D. 

      A new empty file called afile.txt will be created in the current directory.

    • E. 

      The touch command will return a file not found error.

  • 24. 
    You want to copy the contents of the ~/important directory, including all its subdirectories, to /media/usb. What command can you type to accomplish this goal?
    • A. 

      Cp ~/important /media/usb

    • B. 

      Cp -R ~/important /media/usb

    • C. 

      Cp -u ~/important /media/usb

    • D. 

      Cp -i ~/important /media/usb

    • E. 

      Cp -f ~/important /media/usb

  • 25. 
    You want to create a directory called ~/Documents/papers, but you’re not sure that the ~/Documents directory exists. What command can you type to create the desired directory and its parent directory if it doesn’t already exist?
    • A. 

      Mkdir -a ~/Documents/papers

    • B. 

      Mkdir --recursive ~/Documents/papers

    • C. 

      Mkdir -R ~/Documents/papers

    • D. 

      Mkdir -r ~/Documents/papers

    • E. 

      Mkdir -p ~/Documents/papers

Back to Top Back to top
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.