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
Why VirtualBox is my goto Hypervisor
I first started using VirtualBox many years ago, and it quickly became my favorite virtualization platform. What drew me in...
How to generate good passwords with pwgen
Whenever I change passwords on my systems, I need to try to think up ones that will be hard to...
13 years is a long time for a laptop
I’ll always have fond memories of my X1 Carbon. Goodbye, little laptop.
Problems updating QT5 on Fedora 43
I've been having problems trying to install updates on my systems with graphical interfaces. This is due to a conflict...
Fedora 43 breaks my books
Well, it really only breaks the some of the experiments the 2nd Edition of my "Using and Administering Linux" series....