Thursday, July 21, 2011

Create a new file in the CMD/Bash shell

For windows CMD shell, go to the directory where you want to create the new file, and type in:
copy nul FileName
Just replace the "FileName" with the real file name with extension that you want.
For Unix-like system bash shell, go to the directory and type in:
touch FileName

No comments:

Post a Comment