Re: download the source code of some commands

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 21, 2012 at 8:48 AM, 王哲 <wangzhe5004@xxxxxxxxx> 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!

You need to figure out how your distro of choice lets you query the
filelist for packages.

I use openSUSE primarily and it has the Yast tool that lets you do
that in the software management section.

uptime => coreutils
reboot => aaa_base
halt => aaa_base

Once you know the package your distro uses you can download the
corresponding source package for it.

You will have better luck learning the process you need to know by
asking on a distro specific mailing list.

Greg

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux