DEV Community

Cover image for Use "touch" command in windows 10.
Gautham Vijayan
Gautham Vijayan

Posted on

Use "touch" command in windows 10.

Unix commands like touch will not work in windows system so people have gotten smart and have figured out a way to touch(create) a file in the terminal in windows.

There is a npm package called touch-cli which will allow us to use touch command.

Open up your terminal and paste the following code.

npm install touch-cli -g

We install the touch-cli globally so we can use it in any folder.

Now below we can see the touch-cli in action.

Screen Recording 2020-11-20 at 08.44.53.16 PM

Thank you for reading!

If you like this article, Unicorn this one! Heart/Like this one and save it for reading it later.

My Other Articles:

Top comments (3)

Collapse
 
theorbitadmin profile image
theorbitadmin

Thanks!

Collapse
 
gautham495 profile image
Gautham Vijayan

Thanku you for reading my post!

Collapse
 
sweedalgharshi profile image
Sweedal Gharshi

Thanks...It helped alot!