Linux Essentials Practice Exam Quiz!

40 Questions | Total Attempts: 614

SettingsSettingsSettings
Linux Essentials Practice Exam Quiz! - Quiz

.


Questions and Answers
  • 1. 
    What's the difference between hard disk drives and solid-state drives?
    • A. 

      Hard disks have moving parts and solid state drives do not.

    • B. 

      Hard disk drives can fail. Solid state drives cannot.

    • C. 

      Solid state drives are faster than hard disk drives

    • D. 

      Solid state drives have larger storage capacity and are less expensive than hard disk drives.

  • 2. 
    How is the name for the IP 192.168.2.1 stored on a DNS server when using reverse DNS lookup?
    • A. 

      In the REV record for arpa.in-addr.192.168.2.1

    • B. 

      In the RNAME record for 192-168-2-1.rev.arpa

    • C. 

      In the PTR record for 1.2.168.192.in-addr.arpa

    • D. 

      In the A record for 1.2.168.192.ipv4.arpa

  • 3. 
    Which of the following connects a hard drive to the motherboard?
    • A. 

      SATA

    • B. 

      RAM

    • C. 

      CPU

    • D. 

      NUMA

  • 4. 
    You work for a company that wants to transition all of their servers to Red Hat Enterprise. You have no prior experience using Red Hat and you cannot afford a license. You need a free alternative to learn the new system. What version of Linux could you install?
    • A. 

      CentOS

    • B. 

      Ubuntu LTS

    • C. 

      OpenSUSE

    • D. 

      Debian GNU

  • 5. 
    What command can I use to display running processes order by CPU and RAM consumption?
  • 6. 
    The host command can be used to resolve a DNS name to an IP address.
    • A. 

      True

    • B. 

      False

  • 7. 
    What command will display the following output?
    • A. 

      Ls

    • B. 

      Ln

    • C. 

      Top

    • D. 

      Free

  • 8. 
    What two things are true about the dmesg command?
    • A. 

      It displays the Linux kernel's ring buffer

    • B. 

      It'll send messages to other users logged into the system

    • C. 

      Old information gets replaced by new information

    • D. 

      It will open an email client to send messages to other users across a network

  • 9. 
    What command will display the following output?
    • A. 

      Last

    • B. 

      Pwd

    • C. 

      Passwd

    • D. 

      Whoami

  • 10. 
    A user's UID is 0. What type of user is this?
    • A. 

      Standard

    • B. 

      Guest

    • C. 

      Root

    • D. 

      Superuser

  • 11. 
    You want to change permissions on a regular file to -rw-r-xr--. What command will you use?
    • A. 

      Chown 654

    • B. 

      Chmod 654

    • C. 

      Ls -l

    • D. 

      Chmod 555

  • 12. 
    Every file can be owned by only one user and group.
    • A. 

      True

    • B. 

      False

  • 13. 
    What are the default permissions on the /tmp/ directory?
    • A. 

      Rwx------

    • B. 

      Rwxrwxrw-

    • C. 

      Rx-rx-rx-

    • D. 

      Rwxrwxrwxt

  • 14. 
    You want to create a new user with default configuration files. What command would you use?
    • A. 

      Useradd -m username

    • B. 

      Passwd -a username

    • C. 

      Useradd -o default username

    • D. 

      Lsuser username

  • 15. 
    In what directory will you find the UID, username, and encrypted password?
  • 16. 
    You need to do compression with the tar command. What option will allow you to handle compression?
    • A. 

      -jz

    • B. 

      -g

    • C. 

      -c

    • D. 

      -bz

  • 17. 
    You need to create a loop in a shell script. What argument will allow this?
    • A. 

      Do

    • B. 

      If

    • C. 

      Then

    • D. 

      For

  • 18. 
    You want to create an archive file work.tar from the contents of the ./work/ directory. Type in the complete command to do so.
  • 19. 
    What will the q key do on a less page?
    • A. 

      Next page

    • B. 

      Previous page

    • C. 

      Exit

    • D. 

      Go to the end

  • 20. 
    You need to run a shell script named elog.sh in the root directory. What two commands could be used to execute the shell script?
    • A. 

      Cmd ./elog.sh

    • B. 

      Exe ./elog.sh

    • C. 

      Bash elog.sh

    • D. 

      ./elog.sh

  • 21. 
    Type the script to sort the output of the cat command?
  • 22. 
    Which command will search for the file tux.txt under the /home directory?
    • A. 

      Find /home -name tux.txt

    • B. 

      Search /home -name tux.txt

    • C. 

      Find /home tux.txt

    • D. 

      Search /home tux.txt

  • 23. 
    You try to run a shell script, and the CLI says permission denied. What is the problem?
    • A. 

      The shell script is invalid.

    • B. 

      The script is too long.

    • C. 

      Check the file's extension.

    • D. 

      The execute bit is turned off in the permissions.

  • 24. 
    What is a Linux flavor?
    • A. 

      Bundle of the Linux kernel with specific utilities and other productivity software.

    • B. 

      How the CPU "tastes" Linux when it is installed.

    • C. 

      It tells how that specific version of Linux should be distributed.

    • D. 

      The compatibility factor of a Linux distribution with certain hardware.

  • 25. 
    The Raspberry Pi's operating system is stored on rewritable flash storage built into the system.
    • A. 

      True

    • B. 

      False

Back to Top Back to top