The usage of touch Command parameters in linux
This article mainly explains "the use of touch command parameters in linux", the explanation content in the article is simple and clear, easy to learn and understand, please follow the idea of Xiaobian slowly in-depth, together to study and learn "the use of touch command parameters in linux"!
Linux touch command parameters function description: change the document or directory time.
touch command parameter syntax in linux: touch [-acfm][-d ][-r ][-t ][--help] [--version][document or directory...] or touch [-acfm][--help][--version][datetime][document or directory...]
Linux touch command parameters supplementary note: use linux touch command parameters can change the date and time of documents or directories, including access time and change time.
touch command parameters in linux:
-a or--time=atime or--time=access or--time=use changes only the access time.
-c or--no-create does not create any documents.
-d Use the specified datetime instead of the current time.
-f This parameter is ignored and only addresses compatibility issues with the BSD version of the touch command.
-m or--time=mtime or--time=modify Changes only the change time.
-r Sets the date and time of the specified document or directory to be the same as the date and time of the reference document or directory.
-t Use the specified datetime instead of the current time.
--help Online help.
--version Displays version information.
Thank you for reading, the above is the "linux touch command parameters usage" content, after the study of this article, I believe we have a deeper understanding of the linux touch command parameters usage, the specific use of the situation also needs to be verified. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!