Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Linux Delete Directory With rmdir Command :
- - rmdir command syntax
- mdir [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
- Remove all directories and subdirectories, use rm command with -r option:
- rm -rf /home/data/2000
- - Please note that rmdir command works with all Linux and Unix like operating systems. For more information read rm and rmdir command man pages:
- man rm
- man rmdir
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement