Thursday, May 2, 2024
73
rated 0 times [  73] [ 0]  / answers: 1 / hits: 318531  / 2 Years ago, sun, march 20, 2022, 10:55:26

I have a directory somewhere on my server wth the name "exampledocs". I tried to find it's location using:



ls -d */ | grep -E 'exampledocs'


and



find * -regextype posix-extended -regex 'exampledocs' -type d


and



grep "exampledocs" * --recursive


Nothing worked. How can I do this from the command line? I'm using Ubuntu Server 11.0.


More From » command-line

 Answers
0
find / -xdev 2>/dev/null -name "exampledocs" 


Note: This is from Debian, but it should work.


[#39210] Tuesday, March 22, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
horicgly

Total Points: 36
Total Questions: 126
Total Answers: 104

Location: Iceland
Member since Thu, Dec 1, 2022
1 Year ago
;