
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
Strange problems with switches
Network switches are supposed to be simple devices that work at TCP/IP layer 1, the hardware layer. As far as...
Nextcloud is a snap
Recently I have been tasked with assisting a local medical office with finding a new way to store medical images...
Breaking Free from Windows 10: KDE Plasma Is Your Upgrade to Freedom
October 14, 2025, is a big day if you’re a Microsoft Windows user. That’s the day that support for Windows...
I need a list of URLs
I used the command line to do in seconds what would have needed more than ten minutes to do by hand.
Cyndi: My open source story — Linux, the loyal friend
Editor's note: Cyndi is my yoga teacher and the coauthor of our book, "Linux for Small Business Owners." This article...
How to remove a stuck kernel from GRUB
Here’s how to fix the GRUB menu configuration from the command line.