linux中touch命令參數(shù)詳解
linux中touch命令參數(shù)功能說明:改變文檔或目錄時(shí)間。
linux中touch命令參數(shù)語法:touch [-acfm][-d ][-r ][-t ][--help] [--version][文檔或目錄...] 或 touch [-acfm][--help][--version][日期時(shí)間][文檔或目錄...]
linux中touch命令參數(shù)補(bǔ)充說明:使用linux中touch命令參數(shù)可更改文檔或目錄的日期時(shí)間,包括存取時(shí)間和更改時(shí)間。
linux中touch命令參數(shù)參數(shù):
-a或--time=atime或--time=access或--time=use 只更改存取時(shí)間。
-c或--no-create 不建立任何文檔。
-d 使用指定的日期時(shí)間,而非現(xiàn)在的時(shí)間。
-f 此參數(shù)將忽略不予處理,僅負(fù)責(zé)解決BSD版本touch指令的兼容性問題。
-m或--time=mtime或--time=modify 只更改變動(dòng)時(shí)間。
-r 把指定文檔或目錄的日期時(shí)間,統(tǒng)統(tǒng)設(shè)成和參考文檔或目錄的日期時(shí)間相同。
-t 使用指定的日期時(shí)間,而非現(xiàn)在的時(shí)間。
--help 在線幫助。
--version 顯示版本信息。
以上是linux中touch命令參數(shù)詳解。
【編輯推薦】