Skip to content

Instantly share code, notes, and snippets.

@smamran
Last active June 5, 2016 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smamran/d2734060260541e183b2 to your computer and use it in GitHub Desktop.
Save smamran/d2734060260541e183b2 to your computer and use it in GitHub Desktop.
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
@codingaquarium
Copy link

Nice collection.

keep it up

I have some advice

  • add some more commands
  • set them by category.
  • add more description.
    If possible then.
  • add a screen shot with example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment