Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How can i "touch" all files in the /etc? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Kollin
Veteran
Veteran


Joined: 25 Feb 2006
Posts: 1137
Location: Sofia/Bulgaria

PostPosted: Wed Oct 03, 2007 8:43 pm    Post subject: How can i "touch" all files in the /etc? [SOLVED] Reply with quote

How can i change modification time of all files in /etc including in subdirs?
"Touch" command do not dive in subdirs. :mrgreen:

Are there any danger of doing so? (unbootable system - everthing else is easyer to fix :wink: )

Thank you.

:D
_________________
"Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..."


Last edited by Kollin on Wed Oct 03, 2007 10:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10220
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Oct 03, 2007 9:13 pm    Post subject: Reply with quote

Code:
cd /etc
find . -type f | xargs touch
Not unbootable, no, no problems like that, but why do you want to do this? Has your clock been messed up?

- John
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Wed Oct 03, 2007 10:06 pm    Post subject: Reply with quote

Code:
cd /etc
find . -type f -exec touch '{}' \;


same question, why would you want to do that? :?
_________________
The End of the Internet!
Back to top
View user's profile Send private message
Kollin
Veteran
Veteran


Joined: 25 Feb 2006
Posts: 1137
Location: Sofia/Bulgaria

PostPosted: Wed Oct 03, 2007 10:08 pm    Post subject: Reply with quote

You got me!
I have a clock problems :mrgreen:

And i`m tired of those messages "bla bla bla in the future"

It`s a kernel problem.Next release will fix it i hope. :wink:

Big Thank you :mrgreen:
_________________
"Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..."
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10220
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Oct 03, 2007 11:43 pm    Post subject: Reply with quote

Heh. Mine's easier to type. :P

- John
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum