Skip to content
masterclass Buddy

Linux & Shell · Command

touch

touch creates an empty file when needed and changes file access and modification times. It can use the current time, a supplied date, or timestamps copied from another file.

Last updated

Syntax

touch [OPTION]... FILE ...

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • utime(2)
  • utimensat(2)
  • last(1)
  • systemd-update-done.service(8)

Source: touch(1) - Linux manual page. Checked 2026-11-03.