8 Practical Examples of Linux “Touch” Command

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

24 Responses

  1. Michael says:

    In example 6, you forgot to include the MM portion of the timestamp.


    So, 201912311200 would be 12:00 on 12/31/2019, for example.

  2. Shillpa says:

    How to create 100 text files by using single command in Linux

    • Ravi Saive says:


      You can create 100 text files using touch command as shown.

      # touch shilpa{1..100}.txt

      The above command will create files in following order.

  3. Alan says:

    @srikanth tummala:

    touch -c allows you to touch a file, but not create a new one if one does not already exist.

  4. srikanth tummala says:

    what is the use of touch -c option it doesn’t create a file what is the use of it please explian

  5. Aashish Kumar says:

    Got an error that.

    touch: inavild option -- 'R'

    how to resolve this??

Leave a Reply to Ravi Saive Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.