Re: source code of shell commands
- From: Joe Pfeiffer <pfeiffer@xxxxxxxxxxx>
- Date: 26 Dec 2006 21:05:54 -0700
Ronald <followait@xxxxxxx> writes:
George Huber wrote:
Ronald wrote:
I would like to study some classic implementation of shell commandIf you are running a rpm based system, you can use rpm to find out
like cp mv ...
Where can find the source code?
what
package provides an executable.
For example, the command "rpm -qf /bin/ls" will give the following
result, coreutils-5.2.1-31
This means that the command 'ls' is provided by the rpm package
'coreutils'. A simple search of the web should be able to yield a
source RPM for this package.
Geoge
No, I don't use rpms. I'm using ubuntu now.
Then you can use dpkg and apt-get. You an find out which package
provides one of these commands with, for instance
snowball:533$ which cp
/bin/cp
snowball:534$ dpkg -S /bin/cp
coreutils: /bin/cp
Now you can get the source with
snowball:535$ apt-get source coreutils
--
Joseph J. Pfeiffer, Jr., Ph.D. Phone -- (505) 646-1605
Department of Computer Science FAX -- (505) 646-1002
New Mexico State University http://www.cs.nmsu.edu/~pfeiffer
.
- Follow-Ups:
- Re: source code of shell commands
- From: Ronald
- Re: source code of shell commands
- References:
- source code of shell commands
- From: Ronald
- Re: source code of shell commands
- From: George Huber
- Re: source code of shell commands
- From: Ronald
- source code of shell commands
- Prev by Date: Re: PCI device /dev/mem questions
- Next by Date: Re: source code of shell commands
- Previous by thread: Re: source code of shell commands
- Next by thread: Re: source code of shell commands
- Index(es):
Relevant Pages
|