Forrest logo
back to the tldr tool

gtouch:tldr:3b14b

gtouch: View documentation for the original command.
$ tldr -p linux touch
try on your machine

The tldr -p command is used to display a quick summary of a specific command. In this case, it is used to get a summary of the touch command in the context of Linux.

The touch command is a common command in Linux that is used to create new files or update the timestamps (access and modification time) of existing files. By using the touch command, you can create new blank files or modify the timestamp of a file without changing its content.

The touch command can be used in various ways, but typically it is used with the name of the file(s) you want to either create or update. For example:

touch file.txt

This command would create a new file named file.txt in the current directory. If the file already exists, it would update the timestamp to the current time.

You can also specify multiple files:

touch file1.txt file2.txt

This command would create two new files named file1.txt and file2.txt. If the files already exist, their timestamps would be updated.

In summary, the touch command is a useful utility in Linux for creating new files or modifying the timestamps of existing ones.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the tldr tool