mkdir and rm command options
learning target
- Delete files can say there is information about the command options
1. mkdir command options
Command Options | Explanation |
---|---|
-p | Create a folder depends |
mkdir command options renderings:
2. rm command options
Command Options | Explanation |
---|---|
-i | Interactive prompts |
-r | Recursively delete the directory and its contents |
-f | Force delete, ignore the file does not exist, without prompting |
-d | Delete empty directories |
rm -i command options renderings:
rm -r command options renderings:
rm -f command options renderings:
rm -d command option renderings:
3. Summary
- Create nested folders using "mkdir -p" nested directories
- Delete empty directory using the "rmdir directory name" or "rm -d directory name"
- To delete a non-empty directory using the "rm -r directory name"