Skip to content

Touch

# Create an empty file in the current directory
touch "filename"

# Create multiple files
touch "file1" "file2" "file3"

# Create with wildcard
touch abc{1..9}
  • touch modifies the "last modified" date of the file. If the file does not exist, it is created