[Linux] Touch--Change the time of files after changing your system time

来源:互联网 发布:建筑vr软件 编辑:程序博客网 时间:2024/05/29 02:45

Use command:   touch 

Update the access and modification times of each FILE to the current time.


Format:

           1) find . |  xargs touch

           2) find ./ -type X | xargs touch


File is of type c:

              b      block (buffered) special
              c      character (unbuffered) special
              d      directory
              p      named pipe (FIFO)
              f       regular file
              l       symbolic link
              s      socket
              D     door (Solaris)



原创粉丝点击