What does the `touch` command do?

QuestionsQuestions8 SkillsProBasic Files OperationsAug, 01 2025
0262

The touch command is used to create an empty file or update the timestamp of an existing file. If the specified file does not exist, touch will create it as an empty file. If the file already exists, it will update its last modified time to the current time.

Here’s an example of how to use the touch command:

touch filename.txt

This command will create an empty file named filename.txt if it doesn't already exist.

0 Comments

no data
Be the first to share your comment!