
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
How to get started with Linux
Many of the messages I see in the #Linux feeds on BlueSky and mastodon are Windows users lamenting the end of Support for Windows 10. Many are unable to upgrade to Win11 because their hardware won’t support it. Others are fed up with Windows in general and their efforts to force user to upgrade with suggestions like donating their old computers to purchase a new Win11 one.
How to find Open Source Software to replace your Windows software
Author's note: This article is based on Chapter 6 of my book, "Linux for Small Business Owners," with my coauthor...
Mastering Screenshots with KDE Spectacle:
Writing blog posts that share my experiences with Linux and open-source software often requires screenshots of accomplishing a task or...
Beware Fedora updates of April 28, 2024
It breaks iptables with no warning I'm rather angry right now but I promise to remain calm -- at least...
Learning to use System Settings in Fedora KDE Plasma
I have been using Fedora with the KDE Plasma desktop environment for almost three months, and overall, it’s been a...
The duf command
The duf command is an advanced form of the df command that uses boxes to separate the storage device types into local, fuse (User space file storage), and special devices.