netcse
1/7/2016 - 12:37 PM

Useful Commands Linux

Useful Commands Linux

Search Text in Directory Files

>> grep -r "Searching_Text" *

Grep File Name Pattern Search Text

>> grep -r --include "*.txt" texthere .
>> grep -r ----exclude "*.txt" texthere .

Search to Subfolder recursively Text in File

>> grep -R 'string' dir/
>> find dir/ -type f -exec grep -H 'string' {} +

Check Library Architecture Linux

>> objdump -f libfoo.a | grep ^architecture