We don't use the `touch` command to create empty files in Linux

Updated: Jul 31

There is a misconception in the market that in Linux if you want to create an empty file you can use the `touch` command. Well, we can indeed make but that's not the real use of the `touch` command in Linux. Let's see what it is:


In Linux, if we need to update a file's timestamp to the current, here `touch` comes into play.


In Operating System File Management, mostly there are two things in terms of file/folder time: Access & Modification


Access is when the file is first accessed on the current device.

Modification is when the file was last modified.


Related Posts

See All

I always say "Don't Panic" Do you really think Data Structure & Algorithm is a very difficult thing, very complex as your Girlfriend (in case you have)? Well, it's not difficult as you think, it's one

Hi, I'm Shobhit Sharma

  • Facebook
  • Twitter
  • LinkedIn
  • Instagram

I'm a Software Engineer, Technology Writer & Researcher.

Check out 

GitHub-Mark-120px-plus.png

for Resources

Subscribe

Thanks for submitting!