Author: 汪治平
Date: 2004.10.26
Unix 系統在管理上較為嚴謹,如果檔案設為唯讀,就必須先解除唯讀才能刪除。在 Windows 裡,系統會警告你,但仍然讓你刪除。因此,如果將 Windows 的唯讀檔拷貝到 Unix ,就不能隨便刪除了,因為管轄權已經屬於 Unix 系統。很多軟體的原始檔案都是唯讀。
你必須以 telnet 或 ssh 登入系統,在 Unix 系統下刪除。 (開始-->執行: telnet ltl.iams.sinica.edu.tw )
你會用到指令:
例如:
cd /home/bulletin/Users/To\ Your\ Name (replace space by \space)
chmod -R 777 some\ garbage (the folder or file you want to remove is called "some garbage")
rm -rf some\ garbage
但是如果唯讀檔案的擁有者不是你,例如是別人放到你的 folder 去的,你就得找擁有者或系統管理員來改變 mode 。以下的指令會告訴你很多資料,包括擁有者。
ls -las (list information about the current directory)