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.
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
There is a yum whatprovides option but no yum whatprovide.
yum whatprovides */restorecon
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
I think both options can be used.
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.
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 …
assalam-0-alikum
my exam held on 4 feb .. give me some advice all of you this exam very mean for me ….. :-/
Practice, practice, practice … and good luck.
which topic i prefer lot of practice ??
– NFS client configuration with Autofs
– LDAP client configuration
– LVM physical/logical volume creation/resizing
– Change of root password without knowing it
– Access Control List management
– User and group management
– Repository creation and management
– File system creation and management
– SELinux troubleshooting
– Firewalld management
These are the main areas in which you need to practice.
thanks Bro i’m every thankful for you :-*
You’re welcome.
@CertDepot Is this still valid for the current EX200 RHEL 7 exam? If not, can you link to it. Thanks for the great site!
Yes, I think this is still valid.
Hi,
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
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!
Thank You CertDepot.
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?
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!
Doing pretty well, about to take the RHCSA on Friday. Hopefully I pass, your site has been a huge help. Thanks
You’re welcome!
I passed on the 30th! Thanks again, I’ll be utilizing your RHCE resources as well now.
Congratulations!
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
You are perfectly right. I just changed the answers.
Normally I take extra care to double-check all the answers, because providing wrong answers is worse than providing no answers.
But this time, two answers were awfully written. I apologize for this.
Thanks again for letting me know.
Thank you for making quiz. I went through it many times to study and also learned some handy shortcuts from it.
It was done for this purpose!
Hi certdepot,
I am new in your website and I want to know where I can find all the tasks of the day.
Regards.
There is nothing like this. You only have to refresh your browser to get the various tasks of the day.