Explain how you would find a specific string in a file.
You can use the 'grep' program to locate a certain string in a file. 'grep "search_string" filename', for instance, will look for'search_string' inside 'filename' and show the lines that match.
An ideal applicant will be aware of extra options like 'grep -i' for case-insensitive searches and 'grep -r' for recursive directory searches. This indicates a deeper comprehension of the proper use of 'grep'.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the command to list ALL (hidden also) files of current directory & it’s subdirectories?
Compare between SYS V launched processes and Xinetd processes in Linux.
What is the purpose of the 'ps' command?
Explain trap command of linux?
What does the command env do?
Which command would you use to create a file system on a new hard drive?
What does sh do in linux?
What is the purpose of the "top" command?
How do I get to root in linux?
What is $$ in shell script?
What is command to check ports running/used over local machine
What is devops model?