0 votes
in Linux by
How would you create a text file without opening it?

1 Answer

0 votes
by
How would you create a text file without opening it?

The touch command can be used to create a text file without opening it. The touch command will create an empty file. The syntax is as follows:

$ touch <filename>

Suppose you want to create a file named sample.txt, then the command would be:

$ touch sample.txt
...