Outdated Translation

This entry is currently considered outdated and its contents may not be up-to-date with other translations.

Please considering fixing this issue by contributing to the tldr-pages project directly.

View original (English) version Contributing Guidelines


touch

改變檔案的存取與修改時間。 更多資訊:https://manned.org/man/freebsd-13.1/touch.

  • 建立新檔案,或更新現存檔案的存取與修改時間:

touch 檔案名稱

  • 將存取與修改時間設定為指定時刻:

touch -t 西元年份月份日期小時分鐘.秒鐘 檔案名稱

  • 以其中一個檔案的存取與修改時間為基準,設定另一個檔案的存取與修改時間:

touch -r 來源檔案名稱 目標檔案名稱