10
you are viewing a single comment's thread
view the rest of the comments
[-] Dave@lemmy.nz 9 points 3 days 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.com 2 points 3 days 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 5 points 3 days 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.com 4 points 3 days 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 4 points 3 days 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.com 1 points 3 days 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

[-] LoveEspresso@retrofed.com 1 points 3 days ago
[-] graycube@lemmy.world 2 points 3 days 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.com 1 points 3 days ago

Thanks. That makes two different rm commands.

[-] LoveEspresso@retrofed.com 1 points 3 days 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.

this post was submitted on 17 Jun 2026
10 points (100.0% liked)

Explain Like I'm Five

21464 readers
6 users here now

Simplifying Complexity, One Answer at a Time!

Rules

  1. Be respectful and inclusive.
  2. No harassment, hate speech, or trolling.
  3. Engage in constructive discussions.
  4. Share relevant content.
  5. Follow guidelines and moderators' instructions.
  6. Use appropriate language and tone.
  7. Report violations.
  8. Foster a continuous learning environment.

founded 3 years ago
MODERATORS