How to Create Multiple Files and Directories at Once in a Linux Terminal


If you are using Linux, then you know how to use the mkdir command to create a directory, and for files, we use the touch command, which creates an empty file in a second without using any command line editor.
Both commands are handy to use, but how do I use this command to create multiple files and directories at once? Because it’s easy to create multiple files of 10 directories or files, but if someone asks you to create 100 files, you cannot easily do it until you find this article.
-
- Login or register to post comments
Printer-friendly version- 2131 reads
PDF version
More in Tux Machines
- Highlights
- Front Page
- Latest Headlines
- Archive
- Recent comments
- All-Time Popular Stories
- Hot Topics
- New Members
today's howtos
| Open Hardware: XON/XOFF and Raspberry Pi Pico
|
Security Leftovers
| How to Apply Accent Colour in Ubuntu Desktop
A step-by-step tutorial on how to apply accent colour in Ubuntu desktop (GNOME) with tips for Kubuntu and others.
|



This section of TuxMachines will no longer have new stories in it (with some caveats, including this post). To see the latest stories go to

.svg_.png)
Content (where original) is available under CC-BY-SA, copyrighted by original author/s.


Recent comments
2 days 6 hours ago
2 days 10 hours ago
2 days 10 hours ago
3 days 17 hours ago
3 days 18 hours ago
3 days 19 hours ago
3 days 19 hours ago
3 days 19 hours ago
3 days 22 hours ago
4 days 25 sec ago