Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Feb 2000 21:17:35 -0600 (CST)
From:      Conrad Sabatier <conrads@home.com>
To:        Spencer Plantier <pplantier@adelphia.net>
Cc:        freebsd-newbies@FreeBSD.ORG
Subject:   RE: tcpdump
Message-ID:  <XFMail.000225211735.conrads@home.com>
In-Reply-To: <38B6932E.6AD5E30@adelphia.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On 25-Feb-00 Spencer Plantier wrote:
> Where do I find TCP dump for Freebsd?

If the directory where tcpdump is located happens to be in your PATH, then
"whereis tcpdump" or "which tcpdump" will provide the answer.

If it's not in your PATH, then you might try "locate tcpdump" (assuming
you have an up-to-date locate database).

Then, of course, there's always good old reliable "find".  Not the
quickest way, but sure to do the job:

find /usr -name tcpdump -type f -print

We start searching at the top of the /usr directory in this example, as
it's most likely to be somewhere under /usr.  We also use the "-type f"
option to tell find only to list regular files, not directories, in its
search results (so you won't find, say, the source code directory for
tcpdump, if you have the sources installed).

If you're *really* unsure where it may be, then start the search at the
root directory:

find / -name tcpdump -type f -print

Some man pages will also show where a program is located, but this is not
consistently done.

-- 
Conrad Sabatier
http://members.home.net/conrads/
ICQ# 1147270



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-newbies" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.000225211735.conrads>