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

Related questions

0 votes
asked Nov 11, 2020 in Linux by sharadyadav1986
0 votes
asked Oct 16, 2019 in Git by rajeshsharma
...