{"id":1279,"date":"2021-11-29T05:15:49","date_gmt":"2021-11-28T23:45:49","guid":{"rendered":"https:\/\/smarttech101.com\/?p=1279"},"modified":"2022-02-10T19:44:04","modified_gmt":"2022-02-10T14:14:04","slug":"touch-command-in-linux-unix-with-examples","status":"publish","type":"post","link":"https:\/\/smarttech101.com\/touch-command-in-linux-unix-with-examples\/","title":{"rendered":"Touch Command in Linux\/Unix with Examples"},"content":{"rendered":"\n

In Linux\/Unix, the touch command is used to change<\/strong> the “modify-time<\/strong>” and “access-time<\/strong>” of a file without modifying the contents of the file. If the file does not exist, it is created.<\/strong><\/p>\n\n\n\n

But before I start, you should know a little bit about these terms. Modify Time<\/strong> is the last time the content <\/strong>in the file was changed. On the other hand, the access time <\/strong>is the last time the file was read<\/strong>. I will be using the stat command<\/strong> to find these.<\/p>\n\n\n\n

Now, we will understand the application of the touch command using a few examples.<\/p>\n\n\n\n

Table of Contents<\/h2>\n\n\n\n