Tagged Questions

touch is a standard Unix command that will work on any Unix-based system. It can be used to update or changes a file's (or directory's) time-stamp in regards to when it was last accessed and/or modified. It can also be used to create a new empty file. Touch syntax is as follows: touch [option] ...

learn more… | top users | synonyms

2
votes
2answers
53 views

How can I “touch” a file from the Mac UI?

I've encountered a situation where a Mac user needs to update the modified time of a file. If I was doing this, I'd just open up Terminal, cd to the file, and use the touch command. However, the ...
0
votes
0answers
26 views

OneNote 2010 Pen Button Shortcuts?

I recently got a Wacom CTL460 (which included a pen with two buttons) and I installed Microsoft Office OneNote 2010. I've decided that hovering over the board would move the cursor, contact would be a ...
0
votes
1answer
36 views

Restarting a Rails Server

What exactly does this command do, in regards to running a Rails server? ~$ sudo touch restart.txt I thought it restarts the Rails server, but it happens so fast when I run it, that I can hardly ...
1
vote
2answers
125 views

Touch Change Access, Modify AND Change

I know you can use "touch" to change the access and modify timestamps of a file using the "-t" flag but is it possible to change the "change" timestamp. If so how would I go about doing this? Thanks ...
0
votes
2answers
280 views

How do I add permissions to my tomcat.sh?

I have created a tomcat.sh file so that I can start and stop tomcat via the terminal. I placed the file inside the /bin folder and performed chmod u+x on it to make it executable. But then when I ...
2
votes
2answers
111 views

Debian - LAMP Install

I am installing a LAMP install on Debian GNU/Linux and have been asked to enter the following command sudo touch /var/www/info.php I was just wondering if anyone could explain what it does. ...
0
votes
1answer
192 views

rsync directory complete but some files md5sum is different

I'm using rsync to copy a directory from host A to host B. After the rsync is completed successfully, I check the files with the directory and find that some files' md5sum is different but the ...
2
votes
2answers
268 views

How can I change the creation time of all a folder's files to the current time?

Under a Linux shell, how can I change the creation time of all a folder's files to the current time?
0
votes
2answers
323 views

Recursive touch command on BusyBox 1.01

I'm trying to write a bash script that will run on my QNap NAS to touch a directory recursively. I have this: find $1 -exec touch {} + However, find that comes with BusyBox 1.01 doesn't support the ...
2
votes
6answers
3k views

Windows recursive touch command

In Windows 7, how can I recursively touch all files in a directory (including subdirectories) in order to update the date/time stamp? Does Windows 7 have a mechanism to accomplish this?
1
vote
3answers
489 views

Linux weird problem touch : command not found?

I occurred a really weired problem, which is touch : command not found. I was going to create a blank file, so I type the touch command which didn't work. I'm running centOS 5. Any ideas? BTW: the ...
3
votes
1answer
3k views

Setting file creation date in Mac OS X

I need a script to set the creation date to the modification date for a bunch of files created by my sound recorder - any way to do this? Running Mac OS X 10.4.11
8
votes
8answers
8k views

Windows equivalent of the Linux command 'touch'?

What do you use when you want to update the date-modified field of a file on Windows? commands accessible via C++, .NET, C#, or something native to Windows (Vista preferably) tools/applications ...