readyforhires

Beginner Linux test (Beginner)

25 questions · 30 minutes · Free

File system, permissions, processes and packages.

Take the Beginner Linux test

What it covers

Interview format

Earn a certificate

The Beginner Linux test is one of the 7 tests of the DevOps Engineer learning path. Pass it and the other 6 tests at 70% or more and readyforhires issues you a verifiable certificate in your name, with its own code and verify link to share or add to LinkedIn.

Sample learning path certificate for DevOps Engineer, made out to “Your name” and marked SAMPLE
Pass with 70% or more to earn a verifiable certificate. This is a sample: yours carries your name, the date you earned it and its own verify code.

Sample questions

5 sample questions from the Beginner Linux test, with the answers. Samples are taken out of the live test, so you will not meet these when you sit it.

  1. Which directory in the Linux file system is used to store user-specific files and configurations?

    1. /home
    2. /var
    3. /etc
    4. /tmp

    Answer: A. /home

    In Linux, the /home directory is where user-specific files are stored. Each user has their own subdirectory under /home, such as /home/username. This separation ensures that user data is isolated and managed individually, which is a key aspect of the Linux file system hierarchy standards.

  2. What does the 'write' permission allow a user to do in a directory?

    1. The user can execute files in a directory.
    2. The user can rename files but not delete them.
    3. The user can only view the contents of a directory.
    4. The user can create and modify files in a directory.

    Answer: D. The user can create and modify files in a directory.

    Write permission allows a user to create, modify, or delete files within a directory. This is a common misunderstanding, as some may think write permission only allows modification of existing files, but it also includes the ability to add new files.

  3. A system administrator created a new group called 'developers' but noticed that a user named 'alice' is not part of the group. What is the most likely reason for this issue?

    1. The group's GID is not properly configured
    2. The user has incorrect permissions in /etc/passwd
    3. The group does not exist in the system
    4. The user was not added to the group in /etc/group

    Answer: D. The user was not added to the group in /etc/group

    In Linux, adding a user to a group requires modifying the /etc/group file or using the usermod command with the -aG option. If this step is missed, the user will not be part of the group, even if the group exists. Other options refer to incorrect or unrelated methods of group assignment.

  4. Which of the following accurately describes the roles of the /etc/passwd and /etc/shadow files in user login configuration?

    1. The /etc/passwd file stores user account information, including login names, user IDs, and default shells, while the /etc/shadow file securely stores encrypted passwords and password-related details.
    2. The /etc/passwd file stores user account information and encrypted passwords, while the /etc/shadow file is not used for login configuration.
    3. The /etc/passwd file is not used for login configuration, and the /etc/shadow file stores user account information and encrypted passwords.
    4. The /etc/passwd file stores encrypted passwords, and the /etc/shadow file stores user account information such as login names and user IDs.

    Answer: A. The /etc/passwd file stores user account information, including login names, user IDs, and default shells, while the /etc/shadow file securely stores encrypted passwords and password-related details.

    The /etc/passwd file contains essential user account information such as login names, user IDs, and default shells, but it does not store passwords for security reasons. Instead, the /etc/shadow file is used to securely store encrypted passwords and password-related details, ensuring that password information is not accessible to regular users. This separation enhances system security.

  5. A user is running a long-running process in the foreground and wants to switch it to the background to continue using the terminal. Which command should they use to accomplish this?

    1. Use the 'ps' command to switch the process to the background.
    2. Use the 'kill' command to switch the process to the background.
    3. Use the 'bg' command to switch the process to the background.
    4. Use the 'fg' command to switch the process to the background.

    Answer: C. Use the 'bg' command to switch the process to the background.

    The 'bg' command is used to move a suspended or stopped process to the background, allowing the user to continue using the terminal for other tasks. This is a common method to switch a process from the foreground to the background in Linux. Other options are incorrect because they do not relate to this specific task or are not valid commands for this purpose.

Frequently asked questions

How many questions are in the Beginner Linux test?
25 questions (15 multiple choice, 10 multi-answer), with 30 minutes to answer them.
What does the Beginner Linux test cover?
File system hierarchy, Permissions and ownership, Processes, Package managers, Users and groups.
Is the Beginner Linux test free?
Yes. It is free to take with a readyforhires account.
What level is the Beginner Linux test?
Beginner, in DevOps & cloud.

More DevOps & cloud tests

Roles that test these skills

Companies that test these skills

All practice tests · All DevOps & cloud tests

Last updated