What's the best way to ripgrep your entire filesystem? #2158
-
Without noisy output like:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use But, it's generally not a great idea to just run a process that touches literally every file. Some files, for example, are virtual and are quite large. Try running, e.g., What I do personally is just create a
Then you can do things like |
Beta Was this translation helpful? Give feedback.
You can use
--no-messages
.But, it's generally not a great idea to just run a process that touches literally every file. Some files, for example, are virtual and are quite large. Try running, e.g.,
wc -c /proc/1/pagemap
or something. (Well, maybe don't, because it might take quite a long time.)What I do personally is just create a
/.ignore
file and ignore the directories that I know are likely uninteresting (or even counter productive):Then you can do things like
rg foo /
. Now, you're still quite likely to get errors, as there are probably lots of files in/var
or even/etc
that require root permissions to even read. That's where-…