LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-14-2004, 12:58 PM   #1
dominant
Member
 
Registered: Jan 2004
Posts: 409

Rep: Reputation: 30
touch command


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

Rep: Reputation: 32
Basically two functions
Modifies the last access time of a file or creates an empty file
"man touch" is fully explanatory
Ciao
 
Old 02-14-2004, 01:33 PM   #3
dominant
Member
 
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, 01:36 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
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, 03:33 PM   #5
J.Q. Monkey
Member
 
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, 09:02 PM   #6
Kristijan
Member
 
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, 05:57 PM   #7
t3___
Member
 
Registered: Sep 2003
Posts: 240

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


Reply


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 09:28 PM
touch command not found Mystified Linux From Scratch 1 03-28-2005 12:38 PM
unable to create files using touch command on remote Win2003 sytem using samba xylo Linux - Networking 4 07-15-2004 11:59 AM
Error - can't touch touch: /var/lock - filesystem problem? xanas3712 Linux - Newbie 0 05-10-2004 06:26 AM
'touch' command on subtree/files stoffell Linux - Software 2 09-23-2003 11:40 AM


All times are GMT -5. The time now is 04:28 PM.

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