LinuxQuestions.org
Help answer threads with 0 replies.
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 03-30-2011, 06:38 PM   #1
MODYSAMA
Member
 
Registered: Dec 2010
Posts: 144

Rep: Reputation: 0
touch command inquire.


touch /path/to/destination/*.jpg
Excuse me, Can anyone explain the function of touch here?
 
Old 03-30-2011, 06:40 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852
In this context the touch command will update the access-time of the given files.
 
1 members found this post helpful.
Old 03-30-2011, 06:48 PM   #3
MODYSAMA
Member
 
Registered: Dec 2010
Posts: 144

Original Poster
Rep: Reputation: 0
Sorry for mu bad,
I can't understand the meaning of update the access-time.
what is meaning by access-time?!
 
Old 03-30-2011, 06:54 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852
The access-time is the time when the file was last accessed, like opened for reading or being changed.
 
1 members found this post helpful.
Old 03-30-2011, 06:56 PM   #5
MODYSAMA
Member
 
Registered: Dec 2010
Posts: 144

Original Poster
Rep: Reputation: 0
Is that important?!
 
Old 03-30-2011, 07:01 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852
It depends. If you use a backup approach that uses timestamps for determining if a file should be backed up it is important, at least the time of the last change. Or if you want to delete all files in a folder that were not changed in the last two weeks.
 
1 members found this post helpful.
Old 03-30-2011, 07:04 PM   #7
MODYSAMA
Member
 
Registered: Dec 2010
Posts: 144

Original Poster
Rep: Reputation: 0
Okey I get it. Many thanks for you.
 
Old 03-30-2011, 07:42 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Actually, just to clarify a bit, atime = last (read) access, mtime = last time of content change, http://linux.die.net/man/1/find. See also ctime.
 
2 members found this post helpful.
  


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
Inquire about upgrade cmd! MODYSAMA Linux - Newbie 3 02-08-2011 07:26 PM
[SOLVED] Change permission inquire. MODYSAMA Linux - Newbie 8 02-03-2011 11:24 AM
Behavior of Command Line Expansion in touch command ahmedb72 Linux - Newbie 10 07-01-2009 03:51 AM
tips with touch command rajveervashisth Linux - Newbie 2 08-06-2008 02:22 PM
touch command dominant Linux - Newbie 6 02-17-2004 05:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:43 AM.

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