![]() ![]() To change or update the last access and modification times of a file called leena, use the -a option as follows. How to Change File Access and Modification Time For example, the following command will create 3 files named, sheena, meena, and leena. How to Create Multiple Filesīy using the touch command, you can also create more than one single file. The following touch command creates an empty (zero-byte) new file called sheena. -t, creates a file using a specified time.-r, use the access and modification times of the file.-d, update the access and modification times.-c, if the file does not exist, do not create it.The touch command is a standard program for Unix/Linux operating systems, that is used to create, change and modify timestamps of a file.īefore heading up for touch command examples, please check out the following options. In this article, we will cover some useful practical examples of Linux touch commands. So, whenever we create a new file, and access or modify an existing file, the timestamps of that file are automatically updated. In Linux, every single file is associated with timestamps, and every file stores the information of last access time, last modification time, and last change time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |