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.
Thank you for reading!
If you like this article, Unicorn this one! Heart/Like this one and save it for reading it later.
Top comments (4)
Did you know there’s a more efficient alternative to the touch command? It’s called touch-win, and it’s compatible with Windows, macOS, and Linux. Boost your productivity by creating files and directories quickly and easily!
Thanks!
Thanku you for reading my post!
Thanks...It helped alot!