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
First Look at Fedora 43
Fedora 43 dropped yesterday, October 28, right on schedule. It's nice to know that I can count on version upgrades...
Fedora 43 Released
Fedora 43 has just been released. The best place to find the link to download Fedora 43 is on the...
Fedora 43 set for release October 28, 2025
Based on the current schedule for Fedora development, Fedora 43 should be released tomorrow, October 28. Although a delay is...
Setting up OBS Studio to record videos
Here’s how I configure and use OBS Studio so I can create videos for my YouTube channel.
Free Office Software That Works
Recently, I had a client who, despite my recommendation for Linux or macOS, chose instead to opt for Microsoft Windows...