You can see in the above snippet that test1 is deleted and not listed in the directory. To remove the directories, use the following command syntax with the -r option. The rm command can delete any directory, unlike the rmdir command which only works for empty directories. Otherwise, it will give the following error output. Note: The rmdir command will only delete the empty directories. To delete the directory, run the following command. List down all the directories and files in your current directory and verify the deleted directories after every with the following command. List Down Directories/Files in Your Current Directory In case you do not know your current directory, run the following command in the terminal to find out your directory path. Find Your Current Working Directoryįirst of all, you will need your directory name/path to follow this tutorial. Note: All the methods used in this tutorial will remove the directory and its files permanently and can not be recovered, so make sure to back up the important files and directories before proceeding. Linux system, I'll use Linux Mint 20 here.In this article, you will learn how to remove your directories to organize your file system. An organized file system will save you or the system administrator a lot of headaches in the long run. Spring cleaning is not only necessary for homes, Your Linux Mint 20 file system also needs to be decluttered regularly.
0 Comments
Leave a Reply. |