Module 2 · Lesson 1 of 33/11 in the course~16 min
Module lessons (1/3)
Creating resources (mkdir and touch)
Lesson preview5 hands-on exercises readyLinux Terminal · Module 2 — Files and Folders
Create new directories (including nested trees with -p) and empty files.
What you'll learn in this lesson
- Create new single directories with
mkdir(Make Directory). - Build nested folder trees in a single command using the
-p(parents) option. - Initialize new empty files with
touchmanaging the correct order between folders and files.
Overview
Organizing a project from the terminal means quickly creating empty folder and file trees without clicking window after window. The two essential commands are mkdir and touch.
Without -p, Linux does not create non-existent intermediate folders; adding -p solves everything in one line:
Sections covered in this lesson
- 1
mkdir,mkdir -pandtouchcompared - 2Progressive examples
- 3Practical exercises
- 4Quick check
Pro Lesson · Module 2 — Files and Folders
Unlock "Creating resources (mkdir and touch)" and the full Linux Terminal curriculum
Create new directories (including nested trees with -p) and empty files.
Unlock all 5 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.
- Instant access to all advanced modules in Linux Terminal plus 17 more courses
- Hands-on browser exercises with automated test suites and solutions
- 14-day money-back guarantee processed via Paddle.com
14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.