Timedora
Free Practice Quiz Question List

Linux Account, Package, and Permission Basics Online Quiz Questions

Use this free practice quiz with 20 questions to review Linux Account, Package, and Permission Basics, test your knowledge, and prepare for your next test or exam.

20 questions
01
Choose one
1 point

A team needs shared access to project files without granting access to everyone. Which approach best fits this goal?

  1. A

    Create separate user accounts for everyone who needs the shared files, without using a group.

  2. B

    Create a group for the project and add the users who need access.

  3. C

    Add every user to the sudo group.

  4. D

    Lock the password of each user who needs access.

02
Choose all
1 point

Select all statements that correctly describe APT package management on Ubuntu/Debian.

  1. A

    Run sudo apt update before installing or upgrading so APT can use current repository information.

  2. B

    Run sudo apt remove package-name to remove the package and ensure that all its configuration files are also removed.

  3. C

    Run sudo apt purge package-name to remove the package and its package configuration files.

  4. D

    Run sudo apt remove package-name to uninstall a package that may leave its system configuration files.

03
True or false
1 point

For a Linux directory, execute permission allows traversal into it; it does not mean the same thing as running a file.

  1. A

    True

  2. B

    False

04
Written response
1 point

Which APT subcommand uninstalls a package but may leave its system configuration files?

05
Fill in the blank
1 point

On Ubuntu, membership in the group grants administrative capability.

06
Open ended
1 point

Explain what numeric permission mode 640 allows for the owner, the group, and other users of a file.

07
Choose one
1 point

For a file with permission mode 640, what access does the group have?

  1. A

    The group can read and write the file.

  2. B

    The group can read and execute the file.

  3. C

    The group can read the file but cannot write or execute it.

  4. D

    The group has no access to the file.

08
Choose all
1 point

Select all accurate cautions for managing Ubuntu user accounts.

  1. A

    Locking an account's password does not necessarily prevent sign-in using SSH keys.

  2. B

    Decide separately whether to retain or delete an account's home directory and data when removing the account.

  3. C

    Adding a user to the sudo group is a safe way to grant ordinary shared-file access.

  4. D

    An unfamiliar account might be used by a service, so do not remove it solely because it is unfamiliar.

09
True or false
1 point

Running sudo apt remove package-name deletes a user's documents and other application data associated with the package.

  1. A

    True

  2. B

    False

10
Written response
1 point

Which command checks the account IDs and groups for the user named sam?

11
Fill in the blank
1 point

Before installing or upgrading software, run sudo apt . To uninstall a package while potentially leaving its system configuration files, run sudo apt .

12
Choose one
1 point

For a file with permission mode 640, what access do other users have?

  1. A

    Others can read the file.

  2. B

    Others have no access.

  3. C

    Others can read and execute the file.

  4. D

    Others can read, write, and execute the file.

13
True or false
1 point

On Ubuntu, deleting a user account automatically deletes that account’s home directory and data.

  1. A

    True

  2. B

    False

14
Written response
1 point

Which APT subcommand removes a package’s configuration files as well as the package itself?

15
Choose one
1 point

Which command changes the owner or associated group of a file?

  1. A

    chmod

  2. B

    ls -l

  3. C

    chown

  4. D

    id

16
True or false
1 point

Running sudo apt remove package-name deletes users’ documents and other application data.

  1. A

    True

  2. B

    False

17
Written response
1 point

Which command checks a user’s IDs and group memberships? Enter the command name, without a username or options.

18
Choose one
1 point

What does execute (x) permission allow for a directory?

  1. A

    It allows traversal into the directory.

  2. B

    It allows anyone to change the directory’s owner.

  3. C

    It means the directory is run as a program.

  4. D

    It grants read and write access to everyone.

19
Written response
1 point

On Ubuntu, which group grants its members administrative capability?

20
Choose one
1 point

Which command refreshes APT’s package index before installing or upgrading software?

  1. A

    sudo apt upgrade

  2. B

    sudo apt update

  3. C

    sudo apt remove package-name

  4. D

    sudo apt purge package-name