Date: Fri, 20 Feb 1998 07:41:48 +1030 From: Greg Lehey <grog@lemis.com> To: Daniel_Soares/Nursing/USB/SUNYCON@notes2.nursing.sunysb.edu, questions@FreeBSD.ORG Subject: Finding file paths (was: no subject) Message-ID: <19980220074148.44539@freebie.lemis.com> In-Reply-To: <852565B0.005D1EC8.00@notes2.nursing.sunysb.edu>; from Daniel_Soares/Nursing/USB/SUNYCON@notes2.nursing.sunysb.edu on Thu, Feb 19, 1998 at 12:00:37PM -0400 References: <852565B0.005D1EC8.00@notes2.nursing.sunysb.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 19 February 1998 at 12:00:37 -0400, Daniel_Soares/Nursing/USB/SUNYCON@notes2.nursing.sunysb.edu wrote:
>
> Is there a command in DOS that would return the path of a given file
> name. For eg. I know a file Test.dan exists somewhere on my
> harddrive. I need to have DOS return the pathname for that file so
> that I can then pipe it into a batchfile to have it deleted.
Sorry, we don't do DOS. Under FreeBSD, you have a number of options.
1. If it's an executable in your PATH, you can enter
which <filename>
2. You can locate it with locate:
locate <filename>
3. You can find it with find:
find / -name <filename>
Does this answer your question?
Greg
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980220074148.44539>
