• Dave@lemmy.nz
    link
    fedilink
    English
    arrow-up
    9
    ·
    23 hours ago

    I am not sure I have understood your question, but I will try to answer anyway.

    Your console window is in a certain directory. This is like if you open your file browser and go to a certain directory (folder).

    You typed “pwd”, asking it to print the current working directory (where you are). It told you that you are in your Home folder.

    Then you asked it to list out what is in that directory. It gave you a list. Those blue ones ending in / are directories inside your home folder. The white ones are files in your home folder. Is that the list you are referring to?

    If you open a file browser and go to your home directory, you would see those files and folders there (assuming the system you are on has a GUI and file browser).

    Does that answer your question?

    • LoveEspresso@retrofed.comOP
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      22 hours ago

      So, the blue ones are folders while the white ones are files. Thanks. That’s the only list i have.

      That means Odin and Projects are two separate folders ?? But my intention was to create one single folder called, “Odin Project”.

      I am learning, actually.

      • Legianus@programming.dev
        link
        fedilink
        English
        arrow-up
        6
        ·
        22 hours ago

        If you use mkdir 'Odin Projects' it will creste one folder/directory, without the ‘’ it will create individual directories for all inputs (e.g. Odin and Projects), which is what I think happened?

        • LoveEspresso@retrofed.comOP
          link
          fedilink
          English
          arrow-up
          4
          arrow-down
          1
          ·
          22 hours ago

          You’re absolutely right. That’s the command i had typed precisely.

          Now how to merge the two folders into one ??

          I am learning the command line actually.

          • Legianus@programming.dev
            link
            fedilink
            English
            arrow-up
            4
            ·
            22 hours ago

            If they are empty, I would just delete them with rm -r Odin and do the same for Projects, otherwise you coul d for instance move all content of Projects to Odin with mv Projects/* Odin and then rename Odin with the same command mv Odin 'Odin Projects' and then delete the remaining Projects folder

            • LoveEspresso@retrofed.comOP
              link
              fedilink
              English
              arrow-up
              1
              arrow-down
              1
              ·
              22 hours ago

              I removed the two folders using the command that you’ve taught me, but when i am trying to remove yet another folder, this is what it’s showing.

              image

                • graycube@lemmy.world
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  ·
                  21 hours ago

                  Files have a concept of ownership and have permissions on them. Some permissions can stop you from deleting them. If you own the file you can add a “-f” option to the rm to force it to delete. You can also change the permissions and ownership on files.

            • LoveEspresso@retrofed.comOP
              link
              fedilink
              English
              arrow-up
              1
              arrow-down
              1
              ·
              22 hours ago

              Thanks. I apply the rm command, and create a new folder afresh.

              Actually, the course that i am doing has got many steps missing.