Linux 101: Create Files and Directories
Create files and directory structures from the Linux terminal. Practice using touch and mkdir, building nested directory trees, working with tricky names, and creating groups of files in one go.

In this Shell Gym, you will learn how to create files and directory structures of your own from the command line, and how to act on a group of files with a single command.
Assumed knowledge: you know what files and directories are, can run commands with arguments and options, can move around the Linux filesystem with absolute and relative paths, and can list a directory and name groups of files with patterns. You do not need to understand file permissions to complete this gym.
What you will learn:
- Create empty files with
touch, by absolute path or right where your shell stands. - Refresh the modification time of an existing file without changing its contents.
- Create single and nested directories with
mkdir, and a whole project tree in one command. - Handle names that contain a space or begin with a dash.
- Preview a pattern with
echobefore handing it to a command that changes things. - Combine listing, patterns, and creation in small everyday jobs.
A session takes just a few minutes and is meant to be repeated over time until you get fluent in creating files and directories.
Practice in a real terminal
Use a regular shell on a real Linux VM. Each rep is marked complete automatically when you reach the goal.
One skill at a time
Each module focuses on one command or concept, with short exercises to help you get comfortable using it.
Repeat until it sticks
Revisit the gym after 1, 3, 7, 14, 30 days to build command-line habits and remember what you've learned.
Part of your Daily Practice
The gym appears in Daily Practice when it's time to repeat it. Pause when you need a break, or mark it complete when you're comfortable with the skill.
See your progress
Review past sessions to see how long you practiced and how many reps you completed.
Help when you get stuck
Use hints and feedback based on what's happening on your VM to work out the next step without being given the answer.