rmdir command in Linux
The rmdir command is used to delete permanently an empty directory. To perform this command the user running this command must be having sudo privileges in the parent directory.
Command:
Output:
Here we used the ls command to check the directories present there and used rmdir <directory name> to delete the directory and again the ls command to view the directories after deleting the same.
25 Basic Linux Commands For Beginners
While performing a task, we all need shortcuts. Shortcuts help us to complete a task quickly. Linux comes with such commands which are one to two words, using that commands, you can perform several operations in no time. As a beginner, you must be aware of those basic Linux commands to complete an operation in a short time in the Linux-based operating system.
In this article, you’ll be going through some of the basic Linux commands which beginners can use to complete their tasks very quickly. Let’s go through each, but before that have a short idea on Linux.