DEV Community

loading...
Cover image for Use "touch" command in windows 10.

Use "touch" command in windows 10.

gautham495 profile image Gautham Vijayan ・1 min read

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:

Discussion (2)

pic
Editor guide
Collapse
theorbitadmin profile image
Collapse
gautham495 profile image
Gautham Vijayan Author

Thanku you for reading my post!