Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Apr 1999 23:43:31 -0500 (EST)
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        madman593@yahoo.com (MadMan)
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: help w/ source
Message-ID:  <199904020443.XAA09092@cc942873-a.ewndsr1.nj.home.com>
In-Reply-To: <19990402011901.10408.rocketmail@web113.yahoomail.com> from MadMan at "Apr 1, 99 05:19:01 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
MadMan wrote,
> i was recently looking for the source of various
> programs and came across a few that I couldn't find. 
> If you could please tell me where to find the source
> for the following items on my freeBSD 3.0 box I would
> greatly appreciate it.  If that is not possible can you
> please point me in the right direction on the Internet?
>  Thank you.
> 
> /usr/bin/sperl4.036

/usr/src/gnu/usr.bin/perl/sperl

> /usr/bin/atq
> /usr/bin/atrm
> /usr/bin/batch

% ls -il /usr/bin/atq
7770 -r-sr-xr-x  4 root  bin  20480 Feb 28 21:46 /usr/bin/atq
% find /usr/bin -inum 7770 -ls
  7770   40 -r-sr-xr-x    4 root     bin         20480 Feb 28 21:46 /usr/bin/at
  7770   40 -r-sr-xr-x    4 root     bin         20480 Feb 28 21:46 /usr/bin/atq
  7770   40 -r-sr-xr-x    4 root     bin         20480 Feb 28 21:46 /usr/bin/atrm
  7770   40 -r-sr-xr-x    4 root     bin         20480 Feb 28 21:46 /usr/bin/batch

That is, these all are hardlinks to a single file. Notice the first
three you name are all in there. You will find the source under
'/usr/src/usr.bin/at/.'

> /usr/bin/chpass
> /usr/bin/chfn
> /usr/bin/chsh
> /usr/bin/ypchpass
> /usr/bin/ypchfn
> /usr/bin/ypchsh
> /usr/bin/yppasswd

% ls -li /usr/bin/chpass
7781 -r-sr-xr-x  6 root  bin  36864 Feb 28 21:46 /usr/bin/chpass
%  find /usr/bin -inum 7781 -ls
  7781   72 -r-sr-xr-x    6 root     bin         36864 Feb 28 21:46 /usr/bin/chpass
  7781   72 -r-sr-xr-x    6 root     bin         36864 Feb 28 21:46 /usr/bin/chfn
  7781   72 -r-sr-xr-x    6 root     bin         36864 Feb 28 21:46 /usr/bin/chsh
  7781   72 -r-sr-xr-x    6 root     bin         36864 Feb 28 21:46 /usr/bin/ypchpass
  7781   72 -r-sr-xr-x    6 root     bin         36864 Feb 28 21:46 /usr/bin/ypchfn
  7781   72 -r-sr-xr-x    6 root     bin         36864 Feb 28 21:46 /usr/bin/ypchsh

> /usr/bin/crontab 

/usr/src/usr.sbin/cron/crontab

> /usr/bin/lpq
> /usr/bin/lpr
> /usr/bin/lprm

% ls /usr/src/usr.sbin/lpr
Makefile        filters         lpc             lpr             pac
SMM.doc         filters.ru      lpd             lprm
common_source   lp              lpq             lptest

> /usr/bin/newaliases
> /usr/bin/mailq
> /usr/sbin/purgestat

lrwxrwxrwx  1 root  bin  18 Mar  1 11:45 /usr/bin/mailq -> /usr/sbin/sendmail
lrwxrwxrwx  1 root  bin  18 Mar  1 11:45 /usr/bin/newaliases -> /usr/sbin/sendma

(Note: I have a later installation of sendmail, yours may be hardlinks.)

It's all there.

HTH. HAND.
-- 
Crist J. Clark                           cjclark@home.com


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?199904020443.XAA09092>