1 min read
I want to know which Linux command is used to create a new file using the Linux terminal.
For example, I want to create new_file.py using the Linux command.
Vishal Sharma Answered question November 4, 2020
1 min read
touch command is used to create a new file using the Linux terminal.
so create a new_file.py using Linux terminal, the command would be,
touch new_file.py
users can also create a new file using gedit Linux command,
gedit new_file.py
It will open down the text editor with the same file name. When you will close down the file, the content will automatically get saved into that file.
Vishal Sharma Edited answer November 4, 2020