
Creating test files
Last Updated on September 3, 2024 by David Both
Some of my books and articles require you to create some files for testing. This can be done easily from the command line.
- Open a terminal session on your desktop.
- Copy the line below from this post.
- Paste it into the terminal session.
- Press the Enter key.
This Bash program creates 200 files with “Hello world filexxx” in each, where xxx is the file number. You can edit the program and change “200” to any number of files that you need.
for X in `seq -w 200` ; do echo "Hello world file$X" > testfile$X.txt ; done
More Stories
My first impressions of Fedora 42
You might be aware that I upgraded all of the Both.org systems over the last two days, moving from F41...
Fedora 42 upgrades at Both.org
Fedora 42 was released today, and I've been upgrading my systems. So far I've only done my internal systems and...
Fedora 42 has been released
It's now 21 years since Fedora Core 1 was originally released in November of 2003, and it's still maintaining its...
Five reasons for Windows users to move to Linux
Take back your power As the October deadline for dumping Windows 10 is fast approaching, many users are considering their...
Linux News
There are two items of interesting Linux news today. Fedora 42 The first is that Fedora 42 will be officially...
Breaking News – M$ Allows older computers to install Windows 11
Microsoft has finally bowed to the inevitable and changed their draconian stance on older computers. They'll now allow older computers...