In this tutorial, we will learn about touch Linux command. This command is often used in shell scripts to create files and to modify the timestamps of the file.
touch Linux command is used to create and modify timestamps of a file on Linux systems. This command creates an empty file.
To know more about the command line switches of the command, issue the man command in the Terminal.
$ man touch
$ touch sample.txt
This command will create an empty sample.txt file. The file would be created in the present working directory. We can specify the file path in the command.
Linux Basic Commands Tutorial page:
More Information on Ubuntu Linux: