Computing.Net > Forums > Linux > Command to locate a directory

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Command to locate a directory

Reply to Message Icon

Name: Stephen Liu
Date: July 3, 2002 at 02:01:45 Pacific
Comment:

Hi All Guys,

Kindly advise the command used to locate a directory and its path

If I can't remember the full name of the directory then what will be the easy way to find it together with its full path indicating where it resides

Thanks in advance.

Stephen Liu



Sponsored Link
Ads by Google

Response Number 1
Name: Tom
Date: July 3, 2002 at 02:21:43 Pacific
Reply:

I've never really used it, but it's "find". Check the manpages for info on how to use it.


0

Response Number 2
Name: Stephen Liu
Date: July 3, 2002 at 03:19:35 Pacific
Reply:

Hi Tom,

Thanks for your response. I will find it out later.

In mMost cases I use

rpm -vql

but it displays the main directory and all sub-directories, the latter of which I don't need. I only need the main directory and its full path.

Additionally if I can't remember its full name, I could not find the directory.

Hoping that some guys on the list can shed me some light

Thanks

Stephen Liu


0

Response Number 3
Name: junky_toof
Date: July 3, 2002 at 05:46:23 Pacific
Reply:

RTFM PAGES!!!!!

type -p command name
find / -name name 2> /dev/null


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Install Linux on the same... FTP problem



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Command to locate a directory

How to Install a Software on Fedora www.computing.net/answers/linux/how-to-install-a-software-on-fedora/28565.html

add a directory to the PATH www.computing.net/answers/linux/add-a-directory-to-the-path/21240.html

Command to reformat a linux hard drive www.computing.net/answers/linux/command-to-reformat-a-linux-hard-drive/12195.html