touch command – How to Create New Files in Linux?

Spread the love

touch command in Linux –

To create new files in Linux, we use the touch command. The touch command takes in a filename as an argument and then creates an empty file with that name in the current working directory.

Let’s say we want to create a file named test.py.

touch test.py

Now, we can see there is a test.py file inside the current working directory.

Rating: 1 out of 5.

Leave a Reply