Revision [1029]
This is an old revision of CommandTouch made by DavidLee on 2009-11-25 15:34:21.
Command touch
This command is part of the posix extensions and needs to be imported to be available to the shell.
See Posix Commands
Name
touch Creates file or updates timestamp (last mod date) of file.Synopsis
touch [options] fileOptions
-r -reference reference_file | Use reference_file as the source for the timestampDescriptionIf file does not exist, creates a new empty file. Otherwise updates the last modification time of the specified file. If "-r reference_file" is given, then instead of setting the last mod date to the current time, sets it to the same last mod date of the reference file. Return ValueReturns 0 if the command executed successfully, 1 if there was an error.Commands CategoryCommands CommandsPosix |