Categories
Linux Tutorial Series

Linux Tutorial Series – 38 – The touch command

Here is the video version, if you prefer it:

The touch command is used for changing file timestamps (or creating new files). (“touch(1) – Linux man page,” n.d.)⁠ It is used as follows:

touch fileName

If the file named fileName does not exist, the file with the name fileName is created. If the file named fileName already exists, then only its modification time is modified to the current time.

I have used the touch command a few times to create new files.

Hope you learned something new!

References

touch(1) – Linux man page. (n.d.). Retrieved January 6, 2020, from https://linux.die.net/man/1/touch

NewsletterUpdates on interesting things I am doing

Subscribe to my newsletter to keep abreast of the interesting things I'm doing. I will send you the newsletter only when there is something interesting. This means 0% spam, 100% interesting content.

Leave a Reply

Your email address will not be published. Required fields are marked *