Difficulty: Beginner
Estimated Time: 10 minutes

Welcome to my first scenario.

You learned create empty file, checked if it exist and how is it size.

Don’t stop now! The next scenario will only take about 10 minutes to complete.

How to create file in Linux

Step 1 - Create empty file


Create file1

Run command to create file1:

touch file1

Check that file exist

Run command to list files in current folder:

ls -l

Check that this file is empty

Run command:

du -h file1


file file1