To create a new python file in your current working directory(cwd) use the following command in your terminal:-type NUL > 'test.py'
1.Here I have created a new python file named "test".....Here 'NUL' stands for an emptyfile.
2.In above command you can use any name that you want.....but be careful to mention theextension,like in our case(.py).
3.Using this command you can create new file of any type in your cwd.
4.After typing this command.....cmd might prompt an error.....but check in yourdirectory....there will be a new file present.