How is it possible that the folder is there yet isnt in the same time?












1















How is it possible that the folder is there yet isnt in the same time?



valo@Castor:~$ cd /home
valo@Castor:/home$ cd /valo
bash: cd: /valo: No such file or directory
valo@Castor:/home$ ls
valo
valo@Castor:/home$ cd /valo
bash: cd: /valo: No such file or directory
valo@Castor:/home$


enter image description here










share|improve this question









New contributor




Valo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1





    Try cd /home/valo

    – user535733
    4 hours ago











  • I did, the result is the same.

    – Valo
    4 hours ago











  • /home is / then home. You could try cd /, cd home, cd valo to get the same effect. cd ~ also can achieve what you're looking for.

    – avisitoritseems
    4 hours ago


















1















How is it possible that the folder is there yet isnt in the same time?



valo@Castor:~$ cd /home
valo@Castor:/home$ cd /valo
bash: cd: /valo: No such file or directory
valo@Castor:/home$ ls
valo
valo@Castor:/home$ cd /valo
bash: cd: /valo: No such file or directory
valo@Castor:/home$


enter image description here










share|improve this question









New contributor




Valo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1





    Try cd /home/valo

    – user535733
    4 hours ago











  • I did, the result is the same.

    – Valo
    4 hours ago











  • /home is / then home. You could try cd /, cd home, cd valo to get the same effect. cd ~ also can achieve what you're looking for.

    – avisitoritseems
    4 hours ago
















1












1








1








How is it possible that the folder is there yet isnt in the same time?



valo@Castor:~$ cd /home
valo@Castor:/home$ cd /valo
bash: cd: /valo: No such file or directory
valo@Castor:/home$ ls
valo
valo@Castor:/home$ cd /valo
bash: cd: /valo: No such file or directory
valo@Castor:/home$


enter image description here










share|improve this question









New contributor




Valo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












How is it possible that the folder is there yet isnt in the same time?



valo@Castor:~$ cd /home
valo@Castor:/home$ cd /valo
bash: cd: /valo: No such file or directory
valo@Castor:/home$ ls
valo
valo@Castor:/home$ cd /valo
bash: cd: /valo: No such file or directory
valo@Castor:/home$


enter image description here







directory






share|improve this question









New contributor




Valo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Valo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 4 hours ago









stumblebee

2,31431123




2,31431123






New contributor




Valo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 4 hours ago









ValoValo

82




82




New contributor




Valo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Valo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Valo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 1





    Try cd /home/valo

    – user535733
    4 hours ago











  • I did, the result is the same.

    – Valo
    4 hours ago











  • /home is / then home. You could try cd /, cd home, cd valo to get the same effect. cd ~ also can achieve what you're looking for.

    – avisitoritseems
    4 hours ago
















  • 1





    Try cd /home/valo

    – user535733
    4 hours ago











  • I did, the result is the same.

    – Valo
    4 hours ago











  • /home is / then home. You could try cd /, cd home, cd valo to get the same effect. cd ~ also can achieve what you're looking for.

    – avisitoritseems
    4 hours ago










1




1





Try cd /home/valo

– user535733
4 hours ago





Try cd /home/valo

– user535733
4 hours ago













I did, the result is the same.

– Valo
4 hours ago





I did, the result is the same.

– Valo
4 hours ago













/home is / then home. You could try cd /, cd home, cd valo to get the same effect. cd ~ also can achieve what you're looking for.

– avisitoritseems
4 hours ago







/home is / then home. You could try cd /, cd home, cd valo to get the same effect. cd ~ also can achieve what you're looking for.

– avisitoritseems
4 hours ago












2 Answers
2






active

oldest

votes


















3














What the comments have suggested, but not said, is that the / character typed before the name valo makes the system look for the directory valo as a subdirectory of / or the root of the file system.



The thing about the cd command to remember is that it will either look for a "relative" path or an "absolute" path based on the path entered. When the path entered begins with a / it looks for an absolute path, meaning it starts from the root of the file system. When the character is anything else, it looks for the path to begin in the current location.



In your example, when you are in /home and type cd /valo it looks for an absolute path of / (filesystem root) valo, which does not exist. If you type cd valo it looks for valo in the current directory. If that is in the /home directory, it will find it.






share|improve this answer































    0














    Some basic commands that you can use to navigate directories on the terminal:



    cd and cd ~ will both take you to the same place - your users's home directory



    pwd will print the current directory and this is also listed at the command line prompt.



    If you are in the directory /home and you type ls and see



    valo@Castor:/home$ ls 
    valo


    Then you know valo is a subdirectory of the current directory. To change to that directory, type the command:



    cd valo


    Some equivalent commands are cd ./valo and cd /home/valo



    Sometimes these other ways of specifying the subdirectory are needed.






    share|improve this answer























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "89"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });






      Valo is a new contributor. Be nice, and check out our Code of Conduct.










      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1121286%2fhow-is-it-possible-that-the-folder-is-there-yet-isnt-in-the-same-time%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      3














      What the comments have suggested, but not said, is that the / character typed before the name valo makes the system look for the directory valo as a subdirectory of / or the root of the file system.



      The thing about the cd command to remember is that it will either look for a "relative" path or an "absolute" path based on the path entered. When the path entered begins with a / it looks for an absolute path, meaning it starts from the root of the file system. When the character is anything else, it looks for the path to begin in the current location.



      In your example, when you are in /home and type cd /valo it looks for an absolute path of / (filesystem root) valo, which does not exist. If you type cd valo it looks for valo in the current directory. If that is in the /home directory, it will find it.






      share|improve this answer




























        3














        What the comments have suggested, but not said, is that the / character typed before the name valo makes the system look for the directory valo as a subdirectory of / or the root of the file system.



        The thing about the cd command to remember is that it will either look for a "relative" path or an "absolute" path based on the path entered. When the path entered begins with a / it looks for an absolute path, meaning it starts from the root of the file system. When the character is anything else, it looks for the path to begin in the current location.



        In your example, when you are in /home and type cd /valo it looks for an absolute path of / (filesystem root) valo, which does not exist. If you type cd valo it looks for valo in the current directory. If that is in the /home directory, it will find it.






        share|improve this answer


























          3












          3








          3







          What the comments have suggested, but not said, is that the / character typed before the name valo makes the system look for the directory valo as a subdirectory of / or the root of the file system.



          The thing about the cd command to remember is that it will either look for a "relative" path or an "absolute" path based on the path entered. When the path entered begins with a / it looks for an absolute path, meaning it starts from the root of the file system. When the character is anything else, it looks for the path to begin in the current location.



          In your example, when you are in /home and type cd /valo it looks for an absolute path of / (filesystem root) valo, which does not exist. If you type cd valo it looks for valo in the current directory. If that is in the /home directory, it will find it.






          share|improve this answer













          What the comments have suggested, but not said, is that the / character typed before the name valo makes the system look for the directory valo as a subdirectory of / or the root of the file system.



          The thing about the cd command to remember is that it will either look for a "relative" path or an "absolute" path based on the path entered. When the path entered begins with a / it looks for an absolute path, meaning it starts from the root of the file system. When the character is anything else, it looks for the path to begin in the current location.



          In your example, when you are in /home and type cd /valo it looks for an absolute path of / (filesystem root) valo, which does not exist. If you type cd valo it looks for valo in the current directory. If that is in the /home directory, it will find it.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 4 hours ago









          Gypsy SpellweaverGypsy Spellweaver

          2331213




          2331213

























              0














              Some basic commands that you can use to navigate directories on the terminal:



              cd and cd ~ will both take you to the same place - your users's home directory



              pwd will print the current directory and this is also listed at the command line prompt.



              If you are in the directory /home and you type ls and see



              valo@Castor:/home$ ls 
              valo


              Then you know valo is a subdirectory of the current directory. To change to that directory, type the command:



              cd valo


              Some equivalent commands are cd ./valo and cd /home/valo



              Sometimes these other ways of specifying the subdirectory are needed.






              share|improve this answer




























                0














                Some basic commands that you can use to navigate directories on the terminal:



                cd and cd ~ will both take you to the same place - your users's home directory



                pwd will print the current directory and this is also listed at the command line prompt.



                If you are in the directory /home and you type ls and see



                valo@Castor:/home$ ls 
                valo


                Then you know valo is a subdirectory of the current directory. To change to that directory, type the command:



                cd valo


                Some equivalent commands are cd ./valo and cd /home/valo



                Sometimes these other ways of specifying the subdirectory are needed.






                share|improve this answer


























                  0












                  0








                  0







                  Some basic commands that you can use to navigate directories on the terminal:



                  cd and cd ~ will both take you to the same place - your users's home directory



                  pwd will print the current directory and this is also listed at the command line prompt.



                  If you are in the directory /home and you type ls and see



                  valo@Castor:/home$ ls 
                  valo


                  Then you know valo is a subdirectory of the current directory. To change to that directory, type the command:



                  cd valo


                  Some equivalent commands are cd ./valo and cd /home/valo



                  Sometimes these other ways of specifying the subdirectory are needed.






                  share|improve this answer













                  Some basic commands that you can use to navigate directories on the terminal:



                  cd and cd ~ will both take you to the same place - your users's home directory



                  pwd will print the current directory and this is also listed at the command line prompt.



                  If you are in the directory /home and you type ls and see



                  valo@Castor:/home$ ls 
                  valo


                  Then you know valo is a subdirectory of the current directory. To change to that directory, type the command:



                  cd valo


                  Some equivalent commands are cd ./valo and cd /home/valo



                  Sometimes these other ways of specifying the subdirectory are needed.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 4 hours ago









                  Charles GreenCharles Green

                  13.7k73858




                  13.7k73858






















                      Valo is a new contributor. Be nice, and check out our Code of Conduct.










                      draft saved

                      draft discarded


















                      Valo is a new contributor. Be nice, and check out our Code of Conduct.













                      Valo is a new contributor. Be nice, and check out our Code of Conduct.












                      Valo is a new contributor. Be nice, and check out our Code of Conduct.
















                      Thanks for contributing an answer to Ask Ubuntu!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1121286%2fhow-is-it-possible-that-the-folder-is-there-yet-isnt-in-the-same-time%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Knooppunt Holsloot

                      Altaar (religie)

                      Gregoriusmis