RHEL Linux - Red Hat System Administration Practice Exam

Disable ads (and more) with a membership for a one time $4.99 payment

Study for the RHEL Linux - Red Hat System Administration Exam. Enhance your knowledge with flashcards and multiple-choice questions, complete with hints and explanations. Prepare for your certification!

Practice this question and more.


To search for the string "recursive" while in a man page, what should you do?

  1. Press q

  2. Press s until you find recursive

  3. Type /recursive and then press enter

  4. Press i

The correct answer is: Type /recursive and then press enter

To search for the string "recursive" while viewing a man page, the correct action is to type "/recursive" followed by pressing enter. This command initiates a forward search in the current man page for the specified string. In this case, the "/" character is used to denote that a search is being performed, and the text that follows is the string the user intends to find. When you enter this command, the system will highlight the occurrences of "recursive" within the man page, making it easy to navigate directly to relevant sections discussing that term. This method is standard in many pager utilities, including `man`, which primarily uses `less` as its default pager in modern systems. Once you find the string, you can use the "n" key to move to the next occurrence or "N" to return to the previous one, allowing for efficient navigation. Other options provided do not facilitate finding the string effectively within a man page. For instance, pressing "q" would quit the man page entirely, not enabling any search function. Repeating "s" would not yield any meaningful results in most contexts, as it is not a search command in this scenario. Pressing "i" does not initiate a search either and is typically irrelevant