![](https://www.both.org/wp-content/uploads/2023/09/BlankMillenniumHeader.png)
Creating test files
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 I in `seq -w 200` ; do echo "Hello world file$I" > testfile$I.txt ; done
More Stories
Mastering the Linux cp Command: A Comprehensive Guide
When I began to use Linux over twenty-five years ago I was not as comfortable on the command line as...
How to use the basename command
The basename command is a GNU core utility for UNIX and UNIX-like systems, and is designed to remove the file suffix and leading directories from a filename. It’s a reasonable alternative to at least some uses of the cut command. You’re not likely to use it alone, but it’s an interesting tool to have available to you when constructing a complex command.
Everyday tech that runs on Linux
Linux runs almost everything, but many people are unaware of that. Some folks might be aware of Linux and might...
The Linux Philosophy for SysAdmins, Tenet 01 — Data Streams, the universal interface
Everything in Linux revolves around streams of data – particularly text streams.
I recently Googled “data stream” and most of the top hits are concerned with processing huge amounts of streaming data in single entities such as streaming video and audio, or financial institutions processing streams consisting of huge numbers of individual transactions. This is not what we are talking about here although the concept is the same and a case could be made that current applications use the stream processing functions of Linux as the model for processing many types of data.
Linux: The Sustainable Choice for Computing and Environmental Responsibility
Sustainability is an increasingly important problem in computing. Reduce, reuse, and recycle is a famous motto for environmentally responsible consumption,...
Complete Kickstart: How to Save Time Installing Linux
Author's note: This article first appeared in the June 2008 issue of Linux Magazine but is no longer maintained there....