From: f3d27b@gmail.com (Wang Lei)
To: kernelnewbies@lists.kernelnewbies.org
Subject: download the source code of some commands
Date: Thu, 21 Jun 2012 23:22:49 +0800 [thread overview]
Message-ID: <4fe33c55.83da440a.4026.ffffc75b@mx.google.com> (raw)
In-Reply-To: <CAJrRU3VHh719vZgCCJ3r8K842YemEo9d5_0swgqsGDNXE0vxVQ@mail.gmail.com> ("王哲"'s message of "Thu, 21 Jun 2012 20:48:48 +0800")
If you use Debian or other distribution with apt package system.
You can use whereis to locate this command.
[~]$ whereis halt
halt: /sbin/halt /usr/share/man/man5/halt.5.gz /usr/share/man/man8/halt.8.gz
Then, use dpkg -S to show which package it's included. This one is: sysvinit.
[~]$ dpkg -S /sbin/halt
sysvinit: /sbin/halt
Now, you can download the source from Debian source, use:
[~]$ apt-get source sysvinit
Or if you want the original source, use aptitude (or apt-cache) find
it's homepage.
[~]$ aptitude show sysvinit
Package: sysvinit
......
Homepage: http://savannah.nongnu.org/projects/sysvinit
At last, get it from there. As for other package systems, I think there
should be a way too. Or you can google.
On 2012-06-21 20:48:48 +0800, ?? wrote:
> Hi all:
> I want to see some source code of some commands,for
> example,halt,reboot,uptime,and so on.
>
> but i don't kown where to download? can you give me some advice?
>
> Thanks in advance!
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
--
Regards,
Lei
next prev parent reply other threads:[~2012-06-21 15:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-21 12:48 download the source code of some commands 王哲
2012-06-21 12:53 ` Ashish_Bunkar at Dell.com
2012-06-21 13:20 ` 王哲
2012-06-21 13:31 ` AFT
2012-06-21 13:32 ` Denis Kirjanov
2012-06-21 14:42 ` Greg Freemyer
2012-06-21 15:22 ` Wang Lei [this message]
2012-06-21 15:46 ` 王哲
2012-06-21 17:06 ` Wang Lei
-- strict thread matches above, loose matches on Subject: below --
2012-06-21 14:29 jeshwanth Kumar N K
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4fe33c55.83da440a.4026.ffffc75b@mx.google.com \
--to=f3d27b@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).