Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-14-2004, 11:58 AM   #1
Registered: Jan 2004
Posts: 409

Rep: Reputation: 30
touch command

what is the deeper meaning of touch?
Old 02-14-2004, 12:09 PM   #2
Registered: Nov 2003
Distribution: slackware 14
Posts: 543

Rep: Reputation: 43
Basically two functions
Modifies the last access time of a file or creates an empty file
"man touch" is fully explanatory
Old 02-14-2004, 12:33 PM   #3
Registered: Jan 2004
Posts: 409

Original Poster
Rep: Reputation: 30
Yep, i know thap, but why should i modify the last access time of a file?
Old 02-14-2004, 12:36 PM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681
If you program using make, you can change the modified time of a file, and that would cause the makefile to recompile and link as if the file were actually edited. At work, I needed to touch a file, so they would be automatically sent to the database.
Old 02-14-2004, 02:33 PM   #5
J.Q. Monkey
Registered: Jan 2004
Location: Ho-Town, MI
Distribution: RH9
Posts: 34

Rep: Reputation: 15
And if it were an usable command at school I could use it to make it look like I had finished a programming assignment on time and just claim I had forgotten to submit it. Not that I would do such a thing......
Old 02-14-2004, 08:02 PM   #6
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394

Rep: Reputation: 30
J.Q. Monkey, of course not. Who would do such a thing
Old 02-17-2004, 04:57 PM   #7
Registered: Sep 2003
Posts: 240

Rep: Reputation: 30
do a search for threads created by me (t3___) and you will find plenty of info...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
One Touch backup versus One Touch II q6supvr Linux - Software 4 12-16-2007 08:28 PM
touch command not found Mystified Linux From Scratch 1 03-28-2005 11:38 AM
unable to create files using touch command on remote Win2003 sytem using samba xylo Linux - Networking 4 07-15-2004 10:59 AM
Error - can't touch touch: /var/lock - filesystem problem? xanas3712 Linux - Newbie 0 05-10-2004 05:26 AM
'touch' command on subtree/files stoffell Linux - Software 2 09-23-2003 10:40 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration