What is the Windows equivalent of the Linux command ‘touch’?
Introduction to Git and GitHub
Hey @gautam75, touch
command is used to create a file without any content. The file created using touch command is empty. This command can be used when the user doesn’t have data to store at the time of file creation. In case of windows there is no direct equivalent of touch command. But you can do the similar tasks using other commands in Windows.
So like you can use echo
command like this to create an empty file :
echo .> your_file.txt
I hope this clears your doubt !
Please mark the doubt as resolved in your doubts section !
Happy Learning !
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.