find directory
Hi,
When searching for a directory using: find / pr0n -type d I always end up getting the "find: `pr0n': No such file or directory" even though I know the directory name is correct. What am I doing wrong? |
you have to specify the name with the -name option:
Code:
find / -name pr0n -type d |
Quote:
Thanks |
Please use ***[code][/code]*** tags around your code and data, to preserve the original formatting and to improve readability. Do not use quote tags, bolding, colors, "start/end" lines, or other creative techniques.
The basic syntax of find is this: Code:
find <search dirs> <global opts> <test opts> <actions> It's also a good idea to always give your command an explicit "-print" action. While this is the default anyway when no action is given, in more complex cases it can be necessary. Here are a couple of good links about using find: http://mywiki.wooledge.org/UsingFind http://www.grymoire.com/Unix/Find.html |
@chonk0:
Adding to David's reply, just follow the man page of find cmd here. It has all answers for your question. |
All times are GMT -5. The time now is 12:04 AM. |