touch遞迴的寫法 - Linux

Elizabeth avatar
By Elizabeth
at 2011-10-01T10:26

Table of Contents

我想要把資料夾之下所有檔案的時間全部更新過一次

touch * 可以更新時間, 但是沒辦法更新在子資料夾的檔案時間

有沒有像是 chmod -R 之類的遞迴方法可以用在touch指令上面的呢?


--
Tags: Linux

All Comments

Thomas avatar
By Thomas
at 2011-10-04T22:12
find 是你的好朋友.
Queena avatar
By Queena
at 2011-10-08T21:56
能否詳細敘述使用方法呢?
Erin avatar
By Erin
at 2011-10-10T09:29
touch `find -type f`
Iris avatar
By Iris
at 2011-10-11T15:22
感謝!
Todd Johnson avatar
By Todd Johnson
at 2011-10-12T21:16
我都會用xargs再吃過一次耶,不然有遇過argument太長的問題
Leila avatar
By Leila
at 2011-10-13T11:03
find -type f -exec touch ######### '{}' \;

client 不正常中斷

Skylar DavisLinda avatar
By Skylar DavisLinda
at 2011-10-01T05:06
我寫了一支client-server的通訊程式,在雙方成功建立連線後, 在通訊的途中如果我把client用ctrl+c強制結束, server居然也被同樣的強制結束了,請問這是怎麼回事? PS.我是開2個終端機分別執行Server,Client - ...

stdout > >>?

Candice avatar
By Candice
at 2011-09-30T23:56
我看鳥哥說 stdout andgt; 或是 andgt;andgt;都是一樣的 可是我剛剛在某一台工作站試的時候 如果是用 andgt; output結果到一個文字檔的時候, 多用幾次 他就會顯示最新跑的那一次的資訊 但如果用 andgt;andgt; output結果到一個文字檔的話, 多用幾次 ...

ubuntu 10.10 server 如何徹底中文化

Faithe avatar
By Faithe
at 2011-09-30T23:34
大家好: 筆者使用的是ubuntu 10.10 server(沒有安裝X-Win), 想請問,如果要整台中文化, 需要安裝什麼呢? 如果未來有需要安裝別的服務,如alpine之類的, 需要特別注意什麼嗎? 感恩大家囉! - ...

請推薦較省電的Linux distro

Megan avatar
By Megan
at 2011-09-30T22:44
※ 引述《Holocaust123 (一步一腳印)》之銘言: : 省電與否跟軟硬體都有關係 : 這篇想討論的是軟體方面 : 我用過的distro不多 : 大概就arch/*buntu/*bsd(非linux) : 以上是指稍微深入過的(常抓很多distro來玩, 不過都沒深入) : 目前是用xubuntu 1 ...

vsftpd 帳戶預設目錄問題

Catherine avatar
By Catherine
at 2011-09-30T22:26
使用vsftpd要如何把使用者鎖在passwd中預設的路徑之下? 目前已經有開啟vsftpd.conf chroot的相關設定 使用瀏覽器(chrome)登入的確成功讓使用者目錄出現在螢幕上且不可觀看預設之外的資料夾 使用filezilla client也是OK 不過,在其他linux主機用sftp ...