Skip to content

Lesson 9: Creating empty files with the touch command

The following tutorials demonstrate commands that help us to work with files, i.e. copy files to/from places, move files, rename files, remove files, and most importantly, look at files. First, we need to have some files to work with. The Linux command touch will let us create a new, empty file if it does not already exist, or update the time stamp on the existing file.

[learner learning_linux]$ touch heaven.txt
[learner learning_linux]$ touch earth.txt
[learner learning_linux]$ ls
earth.txt  heaven.txt

Note

If you see the 'parent' directory, you may delete it and its contents as it is not referenced in the remaining tutorials.