Article 6K1HH How to find out if you have ~/source already as a directory?

How to find out if you have ~/source already as a directory?

by
linux-man
from LinuxQuestions.org on (#6K1HH)
I need to find out if I already have a directory called ~/source. What am I doing wrong below? Thanks in advance.

Code:$find /path/to/search -type d -name ~/source
find: warning: i-namei matches against basenames only, but the given pattern contains a directory separator (i/i), thus the expression will evaluate to false all the time. Did you mean i-wholenamei?
find: i/path/to/searchi: No such file or directory

$find $HOME -type d -name ~/source
find: warning: i-namei matches against basenames only, but the given pattern contains a directory separator (i/i), thus the expression will evaluate to false all the time. Did you mean i-wholenamei?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments