Tuesday, July 30, 2013

Các lệnh về file

Xóa file và thư mục:
-Xóa file:

$ rm {name file}
$ rm -f {name file}:không hỏi lại có muốn xóa không?

-Xóa thư mục:
$ rm -rf {name folder}

Trong đó
-r : Attempt to remove the file hierarchy rooted in each file argument i.e. recursively remove subdirectories and files from the specified directory
-f : Attempt to remove the files without prompting for confirmation, regardless of the file's permissions