In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. The metadata of a file refers to the attribute, size, creation time, access time, belonging to the master group and other information of the file.
two。 Three timestamps:
Access time: access time, abbreviated atime, read and write file content
Modify time: modification time, mtime, change file content (data)
Change time: change time, ctime, metadata change
3. Timestamp of the modified file: touch
Touch-change file timestamps
Touch [OPTION]... FILE...
-an or-- time=atime or-- time=access or-- time=use only changes the access time.
-c or-- no-create does not create any documentation.
-d uses the specified date time instead of the current time.
-f this parameter is ignored and not processed, and is only responsible for resolving the compatibility issue of the BSD version of the touch directive.
-m or-- time=mtime or-- time=modify only changes the time of change.
-r set the date and time of the specified document or directory to the same date and time as the reference document or directory.
-t uses the specified date time instead of the current time.
[[CC] YY] MMDDhhmm [.ss]
(1) modify the ATime of the file using the touch instruction
Touch-a file touch-a "20180808 08:08:37" filename
(2) modify the MTime of the file using the touch instruction
Touch-m file
Touch-m "20180808 08:08:37" filename
(3) modify the CTime of the file by using touch instruction
Touch-c file touch-c "20180808 08:08:37" filename
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.