Questions tagged [touch]

Unix program used via command-line. See touchpad or touchscreen if your question relates to those instead.

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] file to update a file
  • touch file to create a new file

This page and this page go into detail as to how to use the different options for the touch command. Wikipedia also has history and examples of usage of the touch command.

For questions about tactile interfacing see either:

59 questions
255
votes
32 answers

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 preferably free, and if possible open source as…
facepalmd
  • 664
19
votes
10 answers

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?
jmq
  • 429
9
votes
1 answer

How do I recursively touch files matching a pattern

Within my ~/docs directory, I want to "touch" all files ending with .txt How can I do this?
7
votes
1 answer

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 person doing this is not me and I'd like to avoid…
abeger
  • 795
5
votes
3 answers

Windows 8 - Real Kiosk mode

I am trying to lockdown computers running windows 8.1 Enterprise/Standard with a touch screen attached to it. What I'm trying to achieve Have a kiosk user with only access to a web browser. The web browser should be set to only display a specific…
Grimmjow
  • 181
5
votes
2 answers

Enable Touch Events Chrome

Google Chrome used to have an option for enabling touch events in the browser. F12->Overrides->Enable Touch Events. With the latest version of Google Chrome for the desktop I can't for the life of me find it. In the Overrides section it just says…
5
votes
1 answer

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
Red Miller
5
votes
2 answers

time stamp XXXX s in the future issue - touch command (Linux)

When I untar a tar.gz file on Debian Lenny, I get the such outputs: tar: openssl-1.0.1e/apps/openssl.cnf: time stamp 2013-02-11 15:26:04 is 1360584537.139999998 s in the future openssl-1.0.1e/apps/openssl-vms.cnf tar:…
Angs
  • 954
5
votes
1 answer

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 so much for your time.
Phillip
  • 51
  • 1
  • 2
4
votes
2 answers

How to reverse the direction of scroll with Wacom Touch on Linux?

I have a Wacom Touch and using it with Debian. It works fine except the the double finger scrolling is the reverse of what I prefer. Is there a way to change the direction of the Wacom Touch two finger scroll on Debian? As far as I know there is no…
yarun can
  • 1,060
4
votes
0 answers

Windows 7 - window dragging vertically when panning on overscroll - can it be disabled?

I have a Windows 7 touch screen computer. I noticed that when I have windowed applications which are vertically scrollable, for example Windows Task manager, and I scroll (with touch) to the bottom and try to scroll further, the window moves…
4
votes
1 answer

How to click on small buttons placed close to each other on Windows 8

I am trying to run an old application on Windows 8. It has really small buttons for close and minimize that are placed close to each other, so I keep clicking the wrong buttons. What utilities/apps can solve my problem, whether by allowing me to…
rajat
  • 359
4
votes
3 answers

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?
tomy
  • 41
3
votes
1 answer

Uploading my iTunes music that I saved on a flash drive to iTunes on my new computer then downloading it to my iPod Touch

I had an old computer with Windows XP. I transferred all my music, at least I hoped I had to a flash drive. Also, my computer kept giving me error messages that it could no longer sync to my iPod Touch First Generation. I reformatted my iPod back to…
2
votes
1 answer

PowerShell touch all files newer than

I have found the following question on ServerFault: Windows recursive touch command Which partially answers my question with this answer: Windows recursive touch command However, I would like to touch all files (in root and sub folders…
1
2 3 4