You can create files with different extensions using the touch command by specifying the desired file names along with their extensions.
Example:
To create files with different extensions like .txt, .jpg, and .pdf, you can use:
touch file1.txt file2.jpg file3.pdf
Using Pattern Expansion:
You can also use brace expansion for a more concise approach:
touch file{1..3}.{txt,jpg,pdf}
This command creates:
file1.txtfile1.jpgfile1.pdffile2.txtfile2.jpgfile2.pdffile3.txtfile3.jpgfile3.pdf
If you need more help or examples, just let me know!
