Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

RedHat EX200 Exam - Topic 3 Question 43 Discussion

Part 1 (on Node1 Server)Task 9 [Managing Files from the Command Line]Search the string nologin in the /etc/passwd file and save the output in /root/strings
A) Explanation: * [root@node1 ~]# cat /etc/passwd | grep nologin > /root/strings [root@node1 ~]# cat /root/strings bin:x:1:1:bin:/bin:/sbin/nologin daemon:x:2:2:daemon:/sbin:/sbin/nologin adm:x:3:4:adm:/var/adm:/sbin/nologin lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin mail:x:8:12:mail:/var/spool/mail:/sbin/nologin

RedHat EX200 Exam - Topic 3 Question 43 Discussion

Actual exam question for RedHat's EX200 exam
Question #: 43
Topic #: 3
[All EX200 Questions]

Part 1 (on Node1 Server)

Task 9 [Managing Files from the Command Line]

Search the string nologin in the /etc/passwd file and save the output in /root/strings

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Candra
8 months ago
Is it really safe to mess with /etc/passwd?
upvoted 0 times
...
Nikita
8 months ago
Nice, I didn't know nologin was listed like that!
upvoted 0 times
...
Destiny
9 months ago
Wait, why are we saving it in /root? Seems risky.
upvoted 0 times
...
Lashawnda
9 months ago
Totally agree, easy peasy!
upvoted 0 times
...
Jamal
9 months ago
Just a simple grep command!
upvoted 0 times
...
Melodie
9 months ago
I recall we practiced something like this, but I can't remember if we needed to check permissions for the /root directory before writing the output.
upvoted 0 times
...
Ryan
9 months ago
I’m a bit confused about the output redirection part. Is it just the '>' symbol that we use to save the output?
upvoted 0 times
...
Tamesha
9 months ago
This seems similar to a practice question we did on searching user accounts. I feel confident about using cat and grep together.
upvoted 0 times
...
Armanda
9 months ago
I think I remember using grep to search through files, but I'm not entirely sure about the syntax for redirecting the output.
upvoted 0 times
...
Sherill
9 months ago
Whoa, this is a lot of steps! I'm feeling a bit overwhelmed trying to remember all the different commands. Maybe I should jot down some notes to refer to during the exam.
upvoted 0 times
...
Winfred
9 months ago
Hmm, I'm a bit unsure about this one. I'll need to closely examine the code in each option to determine which one will display the correct message.
upvoted 0 times
...

Save Cancel