Share this link

This is a quiz to prepare you for the RHCSA exam.
Be careful, it’s not so easy!
You’ve got 5 minutes for 10 questions.

PS: As there are more than 10 questions overall, you will have to come back to test all of them, which will help you to memorize!
If you don’t understand an answer, most of the explanations are available in the website itself.

1 Star2 Stars3 Stars4 Stars5 Stars (60 votes, average: 4.28 out of 5)
30 comments on “RHEL7 RHCSA Quiz
  1. megabiteg says:

    on questions: Which of these commands searches for a package name containing a specific command called restorecon?

    I believe that there aren’t any yum whatprovide option

  2. timlee says:

    Correct me if I am wrong. Based on this question it should be -d instead of -b?

    Which of these commands creates a user member of the supplementary group called team with a home directory called /opt/user?

    Answer provided is:
    useradd -aG -b /opt user

    However from man,
    -b, –base-dir BASE_DIR base directory for the home directory of the
    new account
    -d, –home-dir HOME_DIR home directory of the new account

    • CertDepot says:

      I think both options can be used.

      • matt says:

        I actually had the same questions so I looked into it. In the options given by the questions the -d would not work. I’m pretty sure when you use -d you have to give the full path to the home directory so it would need to be something like:

        useradd -G team user -d /opt/user

        The -b option appends the username to the path in the command. So out of the options given only the -b option will correctly set the home directory to /opt/user.

        • CertDepot says:

          Personally, I find the useradd man page about the -b and -d options not very clear.
          Initially I chose the -b option. Recently, I reread the man page and was not so sure …

  3. arsalan says:

    my exam held on 4 feb .. give me some advice all of you this exam very mean for me ….. :-/

  4. shussan says:

    Can you please explain for me. I can’t understand this.
    $ echo [10-19].txt
    0.txt 9.txt

    Ref: http://unix.stackexchange.com/questions/68941/working-of-rm-ls-with-0-9

    Thank You

    • CertDepot says:

      Create a new directory and go to it: # mkdir test; cd test
      Create the 4 following files: # touch 0.txt 1.txt 2.txt 3.txt
      List the new created files: # ls -> 0.txt 1.txt 2.txt 3.txt
      Now, you can use a filter to select some of these files (here [0-2] specifies a range): # echo [0-2].txt -> 0.txt 1.txt 2.txt
      Here, we select only 2 files: # echo [03].txt -> 0.txt 3.txt
      The expression echo [10-19].txt is a mistake: it should be written echo [019].txt
      [10] represents the characters 1 and 0, [0-1] means [01] because there isn’t any other character between 0 and 1.
      I hope it’s clearer. Also, don’t spend too much time on this, this is not critical!

  5. wiweq05 says:

    Objective: “Change of root password without knowing it”
    I wonder how they will ask this question. Will they ask to setup a lab? In the case if they won’t provide root password and ask us to create one means if I fail to generate one, exam is gone?

    • CertDepot says:

      They will ask you to reboot a virtual machine and change the root password. If you don’t succeed, you will get a zero! And you won’t be the first!

  6. amandel12 says:

    Doing pretty well, about to take the RHCSA on Friday. Hopefully I pass, your site has been a huge help. Thanks

  7. rpattiso says:

    for the question: Which command to remove the user mary from a secondary group called team?

    the answer is wrong: # gpasswd -d user mary

    should be # gpasswd -d mary team

  8. relmoug says:

    Hi certdepot,
    I am new in your website and I want to know where I can find all the tasks of the day.


Leave a Reply

RHCSA7: Task of the day

Allowed time: 5 minutes.
Create a new user account called "bob" with password "redhat" and set expiration in one week.

RHCE7: Task of the day

Allowed time: 10 minutes.
Set up a caching-only DNS server.

Follow me on Twitter

Poll for favorite RHEL 7 book

What is your favorite RHEL 7 book to prepare RHCSA & RHCE exams?

View Results

Loading ... Loading ...

Poll for most difficult RHCSA 7 topic

What do you think is the most difficult RHCSA 7 topic?

View Results

Loading ... Loading ...

Poll for most difficult RHCE 7 topic

What do you think is the most difficult RHCE 7 topic?

View Results

Loading ... Loading ...