Removing Directories (rmdir)
Có thể bạn quan tâm

- Previous: Copying Directories
- Next: Viewing Differences Between Files (diff)
Removing Directories (rmdir)
To remove an empty directory, use the rmdir command as follows:
| $ rmdir veggies3 $ |
If the directory still contains files or subdirectories, the rmdir command does not remove the directory.
To remove a directory and all its contents, including any subdirectories and files, use the rm command with the recursive option, -r.
| $ rm -r veggies3 $ |
Directories that are removed with the rmdir command cannot be recovered, nor can directories and their contents removed with the rm -r command.
- Previous: Copying Directories
- Next: Viewing Differences Between Files (diff)
- © 2010, Oracle Corporation and/or its affiliates
Từ khóa » Xóa Rm
-
Cách Dùng Lệnh Rm Trong Linux - Freetuts
-
Tổng Hợp Các Lệnh Xóa Thư Mục Trong Linux Mới Nhất 2020
-
Lệnh Rm Trong Linux Với Các Ví Dụ - Xóa Một Tệp Trong Linux Terminal
-
Hướng Dẫn Xoá File Hoặc Thư Mục Trên Linux Bằng Lệnh RM
-
Rm: Cách Xóa Tệp Và Thư Mục Bằng Lệnh Terminal Này - Linux Adictos
-
Deleting Files (rm Command) - IBM
-
Linux Delete All Files In Directory Using Command Line - NixCraft
-
Rm Or Delete Command
-
Python Delete File - W3Schools
-
The Rm Command | Computing - Faculty Of Mathematics
-
Docker Image Rm
-
Docker Network Rm
-
Remove Directory In Linux: How To Delete Files And Folders