#find . -name '*.rpm' -exec ls -l {} \;
-rw-r--r-- 1 root root 771236 12月 12 2015 ./123/lftp-4.0.9-1.el6.x86_64.rpm
-rw-rw-r-- 1 root root 771236 12月 12 2015 ./lftp-4.0.9-1.el6.x86_64.rpm
-rw-rw-r-- 1 root root 154392 12月 12 2015 ./vsftpd-2.2.2-11.el6.x86_64.rpm

# find . -name '*.rpm' -exec touch {} \;

find . -name '*.rpm' -exec ls -l {} \;
-rw-r--r-- 1 root root 771236 7月  20 16:28 ./123/lftp-4.0.9-1.el6.x86_64.rpm
-rw-rw-r-- 1 root root 771236 7月  20 16:28 ./lftp-4.0.9-1.el6.x86_64.rpm
-rw-rw-r-- 1 root root 154392 7月  20 16:28 ./vsftpd-2.2.2-11.el6.x86_64.rpm

 

问题:找出目录下的所有软连接并删除

find . -type -l -exec rm {} \;

find . -maxdepth 1 -type l -exec ls -l {} \;

查找特定文件,修改为当前系统时间

查找特定文件,修改为当前系统时间

 

相关文章:

  • 2022-12-23
  • 2022-01-27
  • 2021-12-19
  • 2021-07-23
  • 2021-08-12
  • 2022-12-23
  • 2022-02-15
猜你喜欢
  • 2022-02-08
  • 2022-02-08
  • 2022-12-23
  • 2021-07-22
  • 2022-02-08
  • 2021-10-29
  • 2021-06-30
相关资源
相似解决方案