09-08-2023, 12:22 PM
Create Multiple Files using Linux Touch Command
It is also possible to create multiple files using a single touch command. To do that, specify the names of the files with spaces between them. It would look like this in the command line:
touch file_name1.txt file_name2.txt file_name3.txt

You can auto-generate file names using curl braces while creating multiple files, like in the following example:
touch file_name{1..3}.txt
The above touch command will create three files named file_name1.txt, file_name2.txt, and file_name3.txt.

