TOUCH(1) General Commands Manual TOUCH(1)NAME
touch - update a file's time of last modification
touch [-c] file ...
OPTIONS -c Do not create the file
touch *.h # Make the .h files look recent
############ NEXT ENTRY HAS NOT BEEN CHECKED #############
The time of last modification is set to the current time. This command is mostly used to trick make into thinking that a file is more
recent than it really is. If the file being touched does not exist, it is created, unless the -c flag is present.
SEE ALSO utime(2).
Check Out this Related Man Page
TOUCH(1) User Commands TOUCH(1)NAME
touch - change file timestamps
touch [OPTION]... FILE...
Update the access and modification times of each FILE to the current time.
Mandatory arguments to long options are mandatory for short options too.
-a change only the access time
Modify the time by going back SECONDS seconds. For example, touch -r foo -B 5 bar will make the file bar 5 seconds older than file
do not create any files
parse STRING and use it instead of current time
Modify the time by going forward SECONDS seconds. For example, touch -r foo -F 5 bar will make the file bar 5 seconds newer than
-m change only the modification time
use this file's times instead of current time
use [[CC]YY]MMDDhhmm[.ss] instead of current time
set time given by WORD: access atime use (same as -a) modify mtime (same as -m)
--help display this help and exit
output version information and exit
Note that the -d and -t options accept different time-date formats.
Written by Paul Rubin, Arnold Robbins, Jim Kingdon, David MacKenzie, and Randy Smith.
Report bugs to <firstname.lastname@example.org>.
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
The full documentation for touch is maintained as a Texinfo manual. If the info and touch programs are properly installed at your site,
should give you access to the complete manual.
touch (coreutils) 4.5.3 October 2002 TOUCH(1)
ok, I configured inetd.conf so that the tftp string
is not commented out, but I cannot get the process to start.
I'm running Solaris 5.8 and need some help.
Cabletron said that it's process is 3485, i tried to kill it, it's the wrong process. I started inetd again and still can't kill it.
i... (15 Replies)
What tools can I use to accomplish this?
I'm writing a shell script to analyze an inittab file. Here's a sample file:
ioin::sysinit:/sbin/ioinitrc >/dev/console 2>&1
tape::sysinit:/sbin/mtinit > /dev/console 2>&1
muxi::sysinit:/sbin/dasetup </dev/console >/dev/console... (10 Replies)
Hello, I am trying to write a simple script to wake up every 300 seconds and look for a new file in a directory (e.g., "G102005"), remove the "G" from the file name, then print the new filename.
Here's what I've got so far. I'm new at this so please forgive the errors or misuse of syntax. It... (14 Replies)
Please help me on this.
Suppose i have the following directory structure.
each of the directories data,data/eng,data/med,data/bsc holds files with date extension like
b.20081230 and so on
I need a script to loop... (9 Replies)
I am reciveing files from a remote system on my linux box. These files are named based on time, which I can use to 'touch' the time .
I can access/modify these files using my id. but when I tried touching time using my id I am getting error;
touch -t 1001261234 1001261234_job2333... (15 Replies)
All, I am looking to make a script and wanted to see if anyone could help out.
The script will go through the directory, put a timestamp, transfer it and then create a touch $file.done script
HEre is my initial idea, but I don't think it will work properly. Anyone able to help me refine it... (11 Replies)
I am new at scripting, (and this fourm- so hi guys!) and I was wondering is there something out there that I can use to do the following:
I receive a file on an FTP server
I would like a script to look at a specifc directory for a certain file
and when it arrives it will send an email... (8 Replies)
I'm trying to make this code below to work but I can't find the way to do the following: I want to make the script to touch only 10% of the total amount of files counted inside the given directory instead of all like it is now.
I would greatly appreciate it if someone can give me a direction on... (9 Replies)
I've been given a directory full of subdirectories full of logfiles of the same name:
The above is the actual directory structure for 14 days worth of a logfile that is generated every 30 minutes. It's been done this way to preserve the... (15 Replies)
I am facing a problem with the command - TOUCH on Linux.
See the example below:
File on Linux: rw-rw-r-- user1 user1 Jan 01 09:00 test.txt
The file - test.txt was created by the user - user1.
Now, I want to change the date and time, but using other user - user2
The user2... (12 Replies)
I have a file hello.txt which was created today (today's date timestamp)
I wish to change its date timestamp (access, modified, created) to 1 week old i.e one week from now.
SunOS mymac 5.11 11.2 sun4v sparc sun4v
Can you please suggest a easy way to do that ? (12 Replies)
if ; then
if ; then
touch -t "tdate" dummy
touch -r "dummy" "$picc"
echo -e "No mod date value to apply. If there is one in your shell,\ninvoke \eStarted asking advice on this (on Linuxquestions.org).... (9 Replies)