Take Another Quiz

Linux+ Networking Chapter 11

20 Questions
Linux Networking Quizzes & Trivia

Linux+ Networking Chapter 11

Questions and Answers
  • 1. 
    The process of sending print jobs from the print queue to the printer is called?
    • A. 

      Spooling

    • B. 

      Queuing

    • C. 

      Redirecting

    • D. 

      Printing

  • 2. 
    You can clear a log file simply by redirecting nothing in to it. True or False?
    • A. 

      True

    • B. 

      False

  • 3. 
    When a printer is disabled, ___________.
    • A. 

      The print queue does not accept jobs and sends a message to the user noting that the printer is unavailable

    • B. 

      The print queue does accept jobs into the print queue and holds them there until the printer is enabled again

    • C. 

      The printer appears as off-line when a lp request is sent

    • D. 

      The print queue redirects all print jobs sent to it to /dev/null

  • 4. 
    What is the name used to describe a user providing a user name and password to log in to a system?
    • A. 

      Validation

    • B. 

      Authorization

    • C. 

      Login

    • D. 

      Authentication

  • 5. 
    Which command can you use to lock a user account?
    • A. 

      Lock username

    • B. 

      Secure username

    • C. 

      Usermod –L username

    • D. 

      Useradd –L username

  • 6. 
    Which command can be used to alter the primary group associated with a given user temporarily?
    • A. 

      Usermod

    • B. 

      Chggrp

    • C. 

      Gpasswd

    • D. 

      Newgrp

  • 7. 
    Which command can be used to send a print job to the default printer named Printer1? (Choose all that apply.)
    • A. 

      Lp –d Printer1 file

    • B. 

      Lp Printer1 file

    • C. 

      Lp file

    • D. 

      Lp –m Printer1 file

  • 8. 
    What is the name of the file that contains a listing of all users on the system and their home directories?
    • A. 

      /etc/passwd

    • B. 

      /etc/users

    • C. 

      /etc/shadow

    • D. 

      /etc/password

  • 9. 
    UIDs and GIDs are unique to the system and once used can never be reused. True or False?
    • A. 

      True

    • B. 

      False

  • 10. 
    What is the name of the utility used to rotate log files?
    • A. 

      Syslog

    • B. 

      Jetpack

    • C. 

      Logrotate

    • D. 

      Logbackup

  • 11. 
    You can lock a user account by changing the default login shell to an invalid shell in /etc/passwd. True or False?
    • A. 

      True

    • B. 

      False

  • 12. 
    When a printer is rejecting requests,____________.
    • A. 

      The print queue does not accept jobs and sends a message to the user noting that the printer is unavailable

    • B. 

      The print queue does accept jobs into the print queue and holds them there until the printer is accepting requests again

    • C. 

      The printer appears as off-line when a lp request is sent

    • D. 

      The print queue redirects all print jobs sent to it to /dev/null

  • 13. 
    When referring to the /etc/syslog.conf file, __________ specifies information from a certain area of the system, whereas _________ is the level of importance of that information.
    • A. 

      Section, priority

    • B. 

      Service, precedents

    • C. 

      Process, degree

    • D. 

      Facility, priority

  • 14. 
    Most log files on the system are found in which directory?
    • A. 

      /etc/logfiles

    • B. 

      /etc/log

    • C. 

      /var/log

    • D. 

      /dev/log

  • 15. 
    Which file contains default information such as UID and GID ranges and minimum password length to be used at user creation?
    • A. 

      /etc/skel

    • B. 

      /etc/passwd

    • C. 

      /etc/login.defs

    • D. 

      /etc/default/useradd

  • 16. 
    What is the background process responsible for printing on Red Hat Fedora Linux?
    • A. 

      Lp

    • B. 

      Cupsd

    • C. 

      Lpd

    • D. 

      Lpstat

  • 17. 
    Which command would you use to unlock a user account?
    • A. 

      Unlock username

    • B. 

      Open username

    • C. 

      Usermod –U username

    • D. 

      Useradd –U username

  • 18. 
    Along with a listing of user accounts,  the /etc/passwd file also contains information on account expiry. True or False?
    • A. 

      True

    • B. 

      False

  • 19. 
    You use lpstat and determine that a user named User1 has placed two large print jobs in the queue for Printer1 that have yet to start printing. They have print job IDs of Printer1-17 and Printer1-21, respectively. Which command would you use to remove these two jobs from the print queue?
    • A. 

      Cancel Printer1-17 Printer1-21

    • B. 

      Cancel –u Printer1-17 Printer1-21

    • C. 

      Cancel –a Printer1-17 Printer1-21

    • D. 

      Cancel 17 21

  • 20. 
    Which command is used to delete a user account?
    • A. 

      Usermod –d username

    • B. 

      Del username

    • C. 

      Userdel username

    • D. 

      Rm username

Related Topics