The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to use system function in awk srikanth_ksv Shell Programming and Scripting 3 06-18-2009 06:38 AM
system wide password change kilemark Shell Programming and Scripting 6 02-07-2006 06:07 PM
system function in c collins High Level Programming 1 11-07-2004 05:48 AM
System wide CDE setup meyersp UNIX for Advanced & Expert Users 1 11-03-2003 10:55 AM
links working system wide jpprial UNIX for Dummies Questions & Answers 6 11-20-2001 11:35 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-02-2005
DGoubine DGoubine is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 22
FIND function - system wide

Hi, I have a task to search for a file called 'Xstartup' in the whole system because there might be different versions of it which overrite eachother.
Can anyone suggest a smart command to run this search ? The machine needs to scan every single folder beginning from root.

Please help, I am completely lost.
  #2 (permalink)  
Old 02-02-2005
pressy's Avatar
pressy pressy is offline Forum Staff  
solaris cultist
  
 

Join Date: Aug 2003
Location: Vienna / Austria (Europe) [EARTH]
Posts: 726
find / -name Xstartup
---------------------
man find
---------------------
gP
  #3 (permalink)  
Old 02-02-2005
jyoung jyoung is offline
Registered User
  
 

Join Date: Nov 2001
Location: Flint, MI
Posts: 228
I use this from the root directory on AIX Unix flavor:
find . -name Xstartup -print
  #4 (permalink)  
Old 02-02-2005
bhargav's Avatar
bhargav bhargav is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2004
Location: USA
Posts: 511

Code:
find / -name "Xstartup"  2>/dev/null

not to throw any permission errors on stdout.
  #5 (permalink)  
Old 02-03-2005
DGoubine DGoubine is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 22
Thanks, everyone !
I appreciate your help !
Regards
Dennis
  #6 (permalink)  
Old 02-03-2005
DGoubine DGoubine is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 22
Quote:
Originally Posted by bhargav
Code:
find / -name "Xstartup"  2>/dev/null

not to throw any permission errors on stdout.
excuse me, what the number "2" means in this line ? It reported fault a syntaxis error when I tried to run the line you suggested.
DG
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:22 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0