查看文件的时间:
sata test.txt
更新目录下面所有文件的时间:
find ./* -type f -exec touch {} \;
更新目录下面所有目录的时间:
find ./* -type d -exec touch {} \;
修改一个文件的日期时间:
touch -d "2020-11-11 11:00:00" test.txt
查看文件的时间:
sata test.txt
更新目录下面所有文件的时间:
find ./* -type f -exec touch {} \;
更新目录下面所有目录的时间:
find ./* -type d -exec touch {} \;
修改一个文件的日期时间:
touch -d "2020-11-11 11:00:00" test.txt
一、文件屬性 下文中,“文件”一詞默認代指廣義的數據類型,跟“目錄”等詞對比使用時,則專指普通文件(File)這一特定數據類型。 Linux系統中,我們可以使用命令“ls -al”來查看當前目錄