From: Luigi Semenzato <semenzato@google.com>
To: "Özkan Pakdil" <ozkan.pakdil@gmail.com>
Cc: Linux Memory Management List <linux-mm@kvack.org>
Subject: Re: how can I solve this grep problem
Date: Mon, 14 Sep 2015 08:15:00 -0700 [thread overview]
Message-ID: <CAA25o9Quzq-Kmr47FhKXOR_PHr-5qVH0Che2vFRXeT2vZjAKqw@mail.gmail.com> (raw)
In-Reply-To: <CAEqaY8cE7C2UvQP5x6VswOG46Gn+W+NYzWvFyqwXSjLaaTZBJg@mail.gmail.com>
On Sun, Sep 13, 2015 at 8:20 PM, Özkan Pakdil <ozkan.pakdil@gmail.com> wrote:
> Hello
>
> I was searching some strings in my disk yes I mean whole disk like this
>
> find / -type f -exec grep -sl "access denied" {} \;
This is a bad idea on many levels.
1. This is the wrong list for such requests and you're lucky to get any reply.
2. You were searching for 40 hours. You should optimize the search,
and narrow it down. Do this instead:
find <list-of-directories> -type f | xargs grep -sl "access denied"
where <list-of-directories> excludes /sys, /proc, /dev and other
directories that it might not make sense to search.
Good luck! :)
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
prev parent reply other threads:[~2015-09-14 15:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-14 3:20 Özkan Pakdil
2015-09-14 15:08 ` Michal Hocko
2015-09-14 15:15 ` Luigi Semenzato [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAA25o9Quzq-Kmr47FhKXOR_PHr-5qVH0Che2vFRXeT2vZjAKqw@mail.gmail.com \
--to=semenzato@google.com \
--cc=linux-mm@kvack.org \
--cc=ozkan.pakdil@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox