reworking content
All checks were successful
learn org at code.softwareshinobi.com/linux.softwareshinobi.com/pipeline/head This commit looks good
All checks were successful
learn org at code.softwareshinobi.com/linux.softwareshinobi.com/pipeline/head This commit looks good
This commit is contained in:
29
landing/docs/.recycle/.recycle2/103-the-rmdir-command.md
Normal file
29
landing/docs/.recycle/.recycle2/103-the-rmdir-command.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# The `rmdir` command
|
||||
|
||||
The **rmdir** command is used to remove empty directories from the filesystem in Linux. The rmdir command removes each and every directory specified in the command line only if these directories are empty.
|
||||
|
||||
### Usage and Examples:
|
||||
|
||||
1. remove directory and its ancestors
|
||||
```
|
||||
rmdir -p a/b/c // is similar to 'rmdir a/b/c a/b a'
|
||||
```
|
||||
2. remove multiple directories
|
||||
```
|
||||
rmdir a b c // removes empty directories a,b and c
|
||||
```
|
||||
|
||||
### Syntax:
|
||||
|
||||
```
|
||||
rmdir [OPTION]... DIRECTORY...
|
||||
```
|
||||
|
||||
### Additional Flags and their Functionalities:
|
||||
|
||||
|**Short Flag** |**Long Flag** |**Description** |
|
||||
|:---|:---|:---|
|
||||
|`-`|`--ignore-fail-on-non-empty`|ignore each failure that is solely because a directory is non-empty|
|
||||
|`-p`|`--parents`|remove DIRECTORY and its ancestors|
|
||||
|`-d`|`--delimiter=DELIM`|use DELIM instead of TAB for field delimiter|
|
||||
|`-v`|`--verbose`|output a diagnostic for every directory processed|
|
||||
Reference in New Issue
Block a user