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 |
Which command would you use to create a file system on a new hard drive?
What is ps command in linux?
How do you check which file consuming more space in linux?
In /boot/grub/grub.conf file there is a line kernel /vmlinuz-version ro root=/dev/sda2, What is the meaning of "/" before vmlinuz? Pls explain?
What does in makefile do?
Explain about lpr filename?
What is the command to see on which port which service is running?
Why is unix used?
How do you create a text file in linux terminal?
Why ms dos is used?
difference between Tcp and udp
script is like x=10; y=20; [$x-ne$y]; echo $ please give me output.