Introduction to Bash mistake?

Dalen van, Floor 0 Reputation points
2024-04-10T19:15:10.53+00:00

Do I misunderstand or is the highlighted text below a mistake in the 'Introduction to Bash' course?

The rmdir command deletes (removes) a directory, but only if it isn't empty. Fortunately, you can use the rm command to delete directories that aren't empty.

Found on this page: https://learn.microsoft.com/en-us/training/modules/bash-introduction/3-bash-commands

Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
944 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Azar 19,245 Reputation points
    2024-04-10T19:59:32.53+00:00

    Hi Dalen van, Floor

    Thats a good question and thanks for using QandA platform

    I think your observation is correct

    It seems there is a mistake, The rmdir command is used to remove empty directories, not non-empty ones.

    I have taken a note on this and notified the team, thanks for pointing it out. ill get back to you on this with an update

    If this helps kindly accept the answer thanks much.

    1 person found this answer helpful.

  2. AmaranS 2,675 Reputation points Microsoft Vendor
    2024-04-24T04:23:39.4433333+00:00

    Hi Dalen van, Floor

    Thank you for reaching out to us on the Microsoft Q&A forum.

    We've contacted the content author and received confirmation that they have updated the document.

    Screenshot 2024-04-24 094913

    Please feel free to contact us if you have any additional questions.

    If you've found the provided answer helpful, please click the "Accept Answer/Upvote" button. This will be beneficial to other members of the Microsoft Q&A forum community.

    Thank you.

    0 comments No comments