I did a
How can I view the results meaningfully? For example, I'd like to limit to the result to appear only for, say the top-level (or top 2nd or 3rd level) directories only.
For example,
All I need is just a single line for the same directory:
(with less information, it is easier to understand and I can zoom into each directory to investigate more).
Any creative suggestions would be appreciated?
find / -name 'XXX'
and the output is insane. It lists every file and the list never ends (I had to Ctrl-C to stop it).How can I view the results meaningfully? For example, I'd like to limit to the result to appear only for, say the top-level (or top 2nd or 3rd level) directories only.
For example,
find / -name '*hello*'
and the result will be very long...
Code:
/home/hello/myfile1
/home/hello/myfile2
/home/hello/myfile3
/usr/local/hello/anotherfile1
/usr/local/hello/anotherfile2
/usr/local/hello/anotherfile3
...
Code:
/home/hello/...
/usr/local/hello/...
Any creative suggestions would be appreciated?