- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- find out the file !!!!
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 10:38 PM
01-19-2005 10:38 PM
find out the file !!!!
i want to search for a file which i don't know
where is located( i have lost its path)
also i want to search for a file belonging to
a user browsing all the directories.
It must browse all directories & should display its path.
How can it be done?
Thanks & Regards
ABHI K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 10:42 PM
01-19-2005 10:42 PM
Re: find out the file !!!!
#find / -name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 10:43 PM
01-19-2005 10:43 PM
Re: find out the file !!!!
find /all_dirs_one_by_one -type f -name "File_name"
find /all_dirs_one_by_one -user "user_id"
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 10:55 PM
01-19-2005 10:55 PM
Re: find out the file !!!!
thanx!!
but do u mean to say
i should type "/all_dirs_one_by_one"
at the prompt?
Awaiting reply,
ABHI K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 11:22 PM
01-19-2005 11:22 PM
Re: find out the file !!!!
if you know the exact filename just do:
find / -tpye f -name "filename" -print
If you search for a special file owned by a special user expand the above command to:
find / -type f -name "filename" -user "userid" -print
This will search through all files on your server and also on every mounted filesystem. Be careful this can take very long.
Do a man find for all the options of this command.
Hope this helps
Stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 12:44 AM
01-20-2005 12:44 AM
Re: find out the file !!!!
You can use the find command like
find / -name
Rgds
HGN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 01:45 AM
01-20-2005 01:45 AM
Re: find out the file !!!!
e.g.
find /home -type f -name "file_name"
Will look for the file "file_name" in /home
Anil