3 FAQ tagged "rmdir command"
Viewing 1-3 of 3 FAQ -- Ubuntu Linux: Delete directory command in Terminal
Q. Can you tell me command to delete a directory in terminal?
A. You need to use the rmdir utility / command. The rmdir utility removes the directory entry specified by each directory argument, provided it is empty. Arguments are processed in the order given. In order to remove both a parent directory [...] - Linux delete directory with rmdir command
Q. I’m new to Linux and I’d like to know how to delete directory? I’m using Cent OS Linux.
A. You need to use command called rmdir. It remove empty directories
rmdir command syntax
rmdir [OPTION] {directory-name}
Delete / remove directory
To delete directory called foo, enter:
rmdir foo
Remove DIRECTORY and its ancestors
For example remove directory structure sales/99/march
rmdir -p sales/99/march
Recursive [...] - Delete or remove a directory Linux command
Q. I am new to Linux and command line. How do I delete or remove a directory?
A. Use rmdir command. This command remove the DIRECTORY(ies), if they are empty. For example type following command to remove /tmp/docs directory:
$ rmdir /tmp/docs
If directory is not empty you will get an error:$ rmdir lettersOutput:rmdir: letters: Directory not empty
You [...]
Viewing 1-3 of 3 FAQ - ( see all popular tags )


Recent Comments
Today ~ 1 Comment
Today ~ 5 Comments
Yesterday ~ 18 Comments
Yesterday ~ 3 Comments
Yesterday ~ 4 Comments