this post was submitted on 17 Jun 2026
-7 points (36.0% liked)

Explain Like I'm Five

21449 readers
92 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] Legianus@programming.dev 6 points 11 hours ago (1 children)

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 3 points 11 hours ago (1 children)

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 11 hours ago (2 children)

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 0 points 11 hours ago (1 children)

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 0 points 11 hours ago (1 children)
[–] graycube@lemmy.world 2 points 10 hours ago (1 children)

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 0 points 10 hours ago

Thanks. That makes two different rm commands.

[–] LoveEspresso@retrofed.com 0 points 11 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.