How Do I Use Touch in Linux?

How Do I Use Touch in Linux?
Contents

What touch command do in Linux?

The touch command is a standard program for Unix/Linux operating systems, that is used to create, change and modify timestamps of a file.

How do I open a touch file in Linux?

You can open the Terminal either through the system Dash or the Ctrl+Alt+T shortcut.

  1. Create a single empty file with the touch command. …
  2. Create multiple files at once with touch command. …
  3. Force avoid creating a new file with touch command. …
  4. Change both access and modification times of a file.
Maya Lin-Takahashi
Author

Maya Lin-Takahashi

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.