Linux+ Networking Chapter 11

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Ajeff
A
Ajeff
Community Contributor
Quizzes Created: 39 | Total Attempts: 53,533
Questions: 19 | Attempts: 676

SettingsSettingsSettings
Linux Plus 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

    Correct Answer
    D. Printing
    Explanation
    The correct answer is "spooling". Spooling is the process of sending print jobs from the print queue to the printer. It involves temporarily storing the print jobs in a buffer or a spool file before they are sent to the printer for printing. This allows multiple print jobs to be queued and processed in the order they were received, improving efficiency and preventing print jobs from being lost or overwritten.

    Rate this question:

  • 2. 

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

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    Explanation
    Redirecting nothing into a log file means that there is no input being sent to the log file, effectively clearing its contents. Therefore, the statement is true.

    Rate this question:

  • 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

    Correct Answer
    B. The print queue does accept jobs into the print queue and holds them there until the printer is enabled again
    Explanation
    When a printer is disabled, the print queue still accepts jobs and holds them in the queue until the printer is enabled again. This means that even though the printer is not currently available to print, the print jobs are still being accepted and stored for later printing.

    Rate this question:

  • 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

    Correct Answer
    B. Authorization
    Explanation
    Authorization is the correct answer because it refers to the process of granting or denying access to a user based on their provided credentials, such as a username and password. This step occurs after the user has been authenticated, which confirms their identity. Authorization determines the level of access and permissions the user has within the system once they have successfully logged in.

    Rate this question:

  • 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

    Correct Answer
    C. Usermod –L username
    Explanation
    The correct answer is "usermod –L username". This command is used to lock a user account. By adding the "-L" option followed by the username, the user's account will be locked, preventing them from logging in.

    Rate this question:

  • 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

    Correct Answer
    D. Newgrp
    Explanation
    The command "newgrp" can be used to alter the primary group associated with a given user temporarily. This command allows the user to switch to a different group, making it their primary group for the duration of the session. This can be useful when a user needs temporary access to files or resources that are only accessible by a specific group.

    Rate this question:

  • 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

    Correct Answer(s)
    A. Lp –d Printer1 file
    C. Lp file
    Explanation
    The command "lp -d Printer1 file" can be used to send a print job to the default printer named Printer1. The "-d" option is used to specify the printer name. The command "lp file" can also be used to send a print job without specifying a printer, which will send the job to the default printer.

    Rate this question:

  • 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

    Correct Answer
    A. /etc/passwd
    Explanation
    The correct answer is /etc/passwd. This file is a system file in Unix-like operating systems that contains a listing of all users on the system and their home directories. It stores essential information about each user, such as their username, user ID, group ID, home directory, and default shell. It is used by the system for user authentication and to determine various user properties and permissions.

    Rate this question:

  • 9. 

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

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
    Explanation
    False. UIDs and GIDs are unique identifiers assigned to users and groups in a system. While it is generally true that they are unique and should not be reused, there are cases where UIDs and GIDs can be recycled. For example, when a user or group is deleted, their UID or GID may become available for reuse in the future. Therefore, it is not accurate to say that UIDs and GIDs can never be reused.

    Rate this question:

  • 10. 

    What is the name of the utility used to rotate log files?

    • A.

      Syslog

    • B.

      Jetpack

    • C.

      Logrotate

    • D.

      Logbackup

    Correct Answer
    C. Logrotate
    Explanation
    Logrotate is the name of the utility used to rotate log files. This utility is commonly used in Linux systems to manage log files by automatically compressing, removing, and renaming them to prevent them from becoming too large or taking up too much disk space. Logrotate allows for the efficient management of log files, ensuring that they are organized and easily accessible for troubleshooting and analysis purposes.

    Rate this question:

  • 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

    Correct Answer
    A. True
    Explanation
    By changing the default login shell to an invalid shell in the /etc/passwd file, it is possible to lock a user account. This means that when the user tries to log in, the system will not be able to find a valid shell to execute, effectively preventing access to the account. Therefore, the statement is true.

    Rate this question:

  • 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

    Correct Answer
    A. The print queue does not accept jobs and sends a message to the user noting that the printer is unavailable
    Explanation
    When a printer is rejecting requests, the print queue does not accept jobs and sends a message to the user noting that the printer is unavailable. This means that any print jobs sent to the printer will not be processed and the user will be notified of the printer's unavailability.

    Rate this question:

  • 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

    Correct Answer
    D. Facility, priority
    Explanation
    In the /etc/syslog.conf file, the "facility" specifies information from a certain area of the system, while the "priority" is the level of importance of that information.

    Rate this question:

  • 14. 

    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

    Correct Answer
    C. /etc/login.defs
    Explanation
    The file /etc/login.defs contains default information such as UID and GID ranges and the minimum password length to be used at user creation. This file is used by the system to set the default values for these parameters when a new user is created. It provides a centralized location for managing these default settings, allowing for consistent configuration across the system.

    Rate this question:

  • 15. 

    What is the background process responsible for printing on Red Hat Fedora Linux?

    • A.

      Lp

    • B.

      Cupsd

    • C.

      Lpd

    • D.

      Lpstat

    Correct Answer
    B. Cupsd
    Explanation
    cupsd is the correct answer because it stands for Common Unix Printing System Daemon, which is responsible for managing the printing process on Red Hat Fedora Linux. It is a background process that handles print requests, manages print queues, and communicates with the printer to ensure successful printing. lp, lpd, and lpstat are not the correct answers as they are either specific commands or other components related to printing, but not the main background process responsible for printing.

    Rate this question:

  • 16. 

    Which command would you use to unlock a user account?

    • A.

      Unlock username

    • B.

      Open username

    • C.

      Usermod –U username

    • D.

      Useradd –U username

    Correct Answer
    C. Usermod –U username
    Explanation
    The correct answer is "usermod -U username". This command is used to unlock a user account. The "-U" option is used to unlock the account, and "username" is the name of the user account that needs to be unlocked.

    Rate this question:

  • 17. 

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

    • A.

      True

    • B.

      False

    Correct Answer
    B. False
    Explanation
    The statement is false. The /etc/passwd file does not contain information on account expiry. It only contains a listing of user accounts and their associated information such as user ID, group ID, home directory, and login shell. Account expiry information is typically stored in a separate file or database.

    Rate this question:

  • 18. 

    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

    Correct Answer
    A. Cancel Printer1-17 Printer1-21
    Explanation
    The correct answer is "cancel Printer1-17 Printer1-21". This command is used to cancel or remove specific print jobs from the print queue. By specifying the job IDs "Printer1-17" and "Printer1-21", the command will only cancel these two jobs and not any others in the queue.

    Rate this question:

  • 19. 

    Which command is used to delete a user account?

    • A.

      Usermod –d username

    • B.

      Del username

    • C.

      Userdel username

    • D.

      Rm username

    Correct Answer
    C. Userdel username
    Explanation
    The correct answer is "userdel username". This command is used to delete a user account in a Linux system. By using this command, the specified username will be removed from the system, along with their home directory and any other associated files.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 22, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Jul 05, 2009
    Quiz Created by
    Ajeff
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.