[英]linux du command source code
在哪里可以找到du
和其他Linux实用程序的源代码?
它与GNU CoreUtils包一起使用。
David is right. 大卫是对的。 You can start with the entry point, du.c , in Savannah.
您可以从Savannah的入口点du.ca开始。 Also, since it's free software under the GPL, you can also get it from your GNU/Linux distribution.
此外,由于它是GPL下的免费软件,您也可以从GNU / Linux发行版中获取它。 Eg, on Debian or Ubuntu you can generally just do:
例如,在Debian或Ubuntu上,您通常可以这样做:
apt-get source coreutils
to get the source for the version installed. 获取安装版本的源代码。
(EDIT by Novelocrat) (由Novelocrat编辑)
For other commands, to find out what package they're in, you can say 对于其他命令,可以说,找出它们所在的包
dpkg -S `which command`
which command
will tell you the full path to that command, and dpkg -S filename
will tell you what package provides a file. which command
会告诉你which command
的完整路径, dpkg -S filename
将告诉你哪个包提供了一个文件。 Then you can run apt-get source packagename
to get its source code. 然后你可以运行
apt-get source packagename
来获取它的源代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.