Reply
Thread Tools
nokiabot's Avatar
Posts: 1,974 | Thanked: 1,834 times | Joined on Mar 2013 @ india
#81
i dont know how i landed on this post
 

The Following User Says Thank You to nokiabot For This Useful Post:
pichlo's Avatar
Posts: 6,447 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#82
Originally Posted by nokiabot View Post
i dont know how i landed on this post
And you woke up a 4 years old thread to say that!???

But now that the cat is out of the bag, I'd like to point out that...

Originally Posted by RenaldoTT View Post
find / = search for a file or folder in the complete system

find /home/user = search for a file or folder in /home/user

| grep <name> = what you're looking for e.g."dpkg -l |grep zen" lists all files in the system starting with "zen"
...the -name or -iname argument of find combines find and grep in one command and, in my experience, is about 10 to 20% faster than find | grep.

E.g.:
Code:
find <start_path> -name <string>
find /home/user -iname "*config*"
Note1: All of the above is documented.
Note2: Possibly even in this thread, I have not read it all.
 

The Following 3 Users Say Thank You to pichlo For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 20:34.