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 |
How can I only see the first 14 lines of a file?
What does uname command do?
how do you configure linux system as a router?
How to recover /etc/passwd file and /etc/shadow file?
what is mean by system calls
How do I run a bash script in linux?
What does touch do in linux?
What is the ipconfig command for linux?
What are linux commands?
What does execute mean in linux?
How do makefiles work?
My linux machine is crashed due to root file system, I need not to bother about the root file system, but i need to take care of /etc, /usr, like that.,, can i recover these file systems?