72 words
1 minutes
Linux commands: touch
2022-09-02

Linux commands: touch#

The touch command in Linux is used to create empty files and update the timestamps of existing files.

Creating a New File#

To create a new empty file, use the following command:

touch filename

Updating Timestamps#

To update the access and modification timestamps of an existing file, use:

touch existing_file

Conclusion#

The touch command is a simple yet useful tool for creating new files and updating timestamps in Linux. It is commonly used in scripting and automation tasks.


Linux commands: touch
https://zxce3.net/posts/cli/linux-commands-touch/
Author
Memet Zx
Published at
2022-09-02