Tag Archive ‘coretutils’

 

CharlyBr on Sep 11th, 2008The unix touch command

This post is a quick ref on the linux touch command. All the examples have been tested on Linux.
This command is used to update the access and modification times of files.

touch’s syntax

touch [option] file_name(s)
touch file1 file2 file3

Here some examples:

# touch /tmp/file
# ls -l /tmp/file
rw-r–r– 1 charlybr charlybr 0 Sep 10 16:13 /tmp/file

Update access and modification [...]