Create, delete files and directories command
Article Directory
learning target
- You can create folders using the Linux command
1. Create, delete files and directories using the command
command | Explanation |
---|---|
touch filename | Create a file designated |
mkdir directory name | Create a directory (folder) |
rm filename or directory name | Delete a file or directory |
rmdir directory name | Delete empty directories |
FIG Effect touch command:
FIG mkdir command Effect:
rm command renderings:
rm delete the directory renderings
Description:
rm command you want to delete the directory need to add -r option , -r recursively remove the directory and its contents represent
FIG rmdir command Effect:
2. Summary
- touch means creating a file
- Create a directory mkdir representation
- rm means to delete a file or directory, delete the directory if need to use the -r option, -r recursively remove the directory and its contents represent
- means to delete empty directories rmdir