Site icon TestingDocs.com

touch Linux Command

Overview

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 command

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

Examples

$ 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:

https://www.testingdocs.com/linux-basic-commands-tutorial/

More Information on Ubuntu Linux:
https://ubuntu.com/

Exit mobile version