Linux下使用touch批量修改文件夹和文件的时间
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
下面只有两个参数存在差别,d与f,d表示文件夹,f表示文件。
查找当前目录下,所有的文件夹以及子文件夹,并把所有的文件夹及子文件夹设置成755,包括当前目录
find ./ -type d -exec touch {} \;
查找当前目录下,所有的文件以及子文件夹下的文件,并把所有的文件设置成644
find ./ -type f -exec touch {} \;
修改全部文件包括文件夹,文件
find ./* -exec touch {} \;
修改单个文件的时间为
touch 文件名




A beautiful web dashboard for Linux
最近提交(Master分支:11 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)