Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
General Discussions
Switcher Hangout (Windows to Mac)
Why do some simple commands in terminal end up with Cannot Find File or Directory?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="yamber.harrison" data-source="post: 1725469" data-attributes="member: 381019"><p>So I am new to Terminal, new to anything on the developer side of things. Starting out learning the common line, with that said I am learning basic commands and find when I test these commands in the Terminal I sometime am getting 'No such file or directory' which doesn't make sense as I am sure that I am doing everything properly. My latest example, I am playing around with making multiple intermediate directories, then going to verify that said directory and subfolder were created with the find command. </p><p></p><p>So this is what I was going off of:</p><p></p><p>To quickly double-check that all directories were built and that everything worked as intended by using the ‘find’ command like so:</p><p>find (parent directory) -type d -print</p><p>Using the above example again, the find command would be like so: find ~/Create/ -type d -print</p><p>The output of this command would look something like the following, recursively listing out from the parent directory to all child folders:</p><p>$ find ~/Create -type d -print</p><p>/Create</p><p>/Create/These</p><p>/Create/These/Folders</p><p>/Create/These/Folders/Within</p><p>/Create/These/Folders/Within/Each</p><p>/Create/These/Folders/Within/Each/Other</p><p></p><p>And this it my terminal from following the same example:</p><p></p><p>amberflexhaug$ mkdir -p Make/These/Folders/Within/Each/Other</p><p>amberflexhaug$ find ~/Create/ -type d -print</p><p>find: /Users/amberflexhaug/Create/: No such file or directory</p><p></p><p>I don't get it...Please help!!!</p><p></p><p>Thanks in advance</p></blockquote><p></p>
[QUOTE="yamber.harrison, post: 1725469, member: 381019"] So I am new to Terminal, new to anything on the developer side of things. Starting out learning the common line, with that said I am learning basic commands and find when I test these commands in the Terminal I sometime am getting 'No such file or directory' which doesn't make sense as I am sure that I am doing everything properly. My latest example, I am playing around with making multiple intermediate directories, then going to verify that said directory and subfolder were created with the find command. So this is what I was going off of: To quickly double-check that all directories were built and that everything worked as intended by using the ‘find’ command like so: find (parent directory) -type d -print Using the above example again, the find command would be like so: find ~/Create/ -type d -print The output of this command would look something like the following, recursively listing out from the parent directory to all child folders: $ find ~/Create -type d -print /Create /Create/These /Create/These/Folders /Create/These/Folders/Within /Create/These/Folders/Within/Each /Create/These/Folders/Within/Each/Other And this it my terminal from following the same example: amberflexhaug$ mkdir -p Make/These/Folders/Within/Each/Other amberflexhaug$ find ~/Create/ -type d -print find: /Users/amberflexhaug/Create/: No such file or directory I don't get it...Please help!!! Thanks in advance [/QUOTE]
Verification
Post reply
Forums
General Discussions
Switcher Hangout (Windows to Mac)
Why do some simple commands in terminal end up with Cannot Find File or Directory?
Top