Get the App
SLTechnology News&Howtos  ›  Servers  › 

Modify the time of all files in the directory under linux

Shulou Source: shulou.com Published: 2022-06-03 01:12:11 10月01日 Update

Time to view the file:

Sata test.txt

Time to update all files under the directory:

Find. / *-type f-exec touch {}\

Time to update all directories under the directory:

Find. / *-type d-exec touch {}\

Date and time when a file was modified:

Touch-d "2020-11-11 11:00:00" test.txt

Tags: Time file directory update date Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Shulou Tech Info Docker Apple Microsoft