The UNIX and Linux Forums  


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



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 !!

Reply
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-09-2009
Registered User
 

Join Date: Nov 2007
Posts: 11
Exclamation Location of File

Hii

I need to find the location of a file . i know the beginning of the name

but i dont know the directory its saved in


how can i find the location ???


Please help
  #2 (permalink)  
Old 11-09-2009
redhead's Avatar
Registered User
 

Join Date: Feb 2002
Location: Denmark
Posts: 70
find / -type f -name "beginning*"
  #3 (permalink)  
Old 11-09-2009
Registered User
 

Join Date: Nov 2007
Posts: 11
where should i run this command ??? Home directory ????

---------- Post updated at 05:03 AM ---------- Previous update was at 05:01 AM ----------

this is the output i am getting and it gets hanged... Please help!!!



find: cannot open /home/hupadhya
find: cannot open /home/deepjain/.ssh
find: cannot open /home/jkumar
find: cannot open /home/nedumtha
find: cannot open /home/ypuranik
find: cannot open /home/kvinoths
find: cannot open /home/chadesai
find: cannot open /opt/medusa
find: cannot open /opt/openssh/empty
  #4 (permalink)  
Old 11-09-2009
redhead's Avatar
Registered User
 

Join Date: Feb 2002
Location: Denmark
Posts: 70
If you're located in your home directory, and the file is located within a sub directory of your home directory, then substitute the '/' with '.'
  #5 (permalink)  
Old 11-09-2009
Registered User
 

Join Date: Mar 2008
Posts: 1,342
The "find" is probably not hung. It will take time to search from root down. The error messages "find: cannot open" are because you are not logged in as "root" and do not have permission look at some directories. This is harmless because you could not have created a file in one of those directories. If you really don't know where you created the file, the find from root will find it eventually.


Code:
find // -type f -name "name_of_lost_file*" -print

Sponsored Links
Reply

Bookmarks

Tags
location

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 Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Location of log file mohan705 UNIX for Advanced & Expert Users 1 04-22-2009 01:34 AM
Bash copy file contents into an existing file at a specific location gshepherd7 Shell Programming and Scripting 6 03-11-2009 09:26 AM
copy files from one location to similar location pharos467 UNIX for Advanced & Expert Users 1 09-21-2008 01:21 PM
how to put file from one ftp to another ftp location prasee Shell Programming and Scripting 1 03-28-2008 05:34 AM
What is the file location? Chanakya.m Shell Programming and Scripting 5 07-17-2006 01:42 AM



All times are GMT -4. The time now is 10:30 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