Where I can find the source code for du
and other Linux utilities?
相关问题
- Multiple sockets for clients to connect to
- Is shmid returned by shmget() unique across proces
- What is the best way to do a search in a large fil
- glDrawElements only draws half a quad
- how to get running process information in java?
David is right. You can start with the entry point, du.c, in Savannah. Also, since it's free software under the GPL, you can also get it from your GNU/Linux distribution. E.g., on Debian or Ubuntu you can generally just do:
to get the source for the version installed.
(EDIT by Novelocrat)
For other commands, to find out what package they're in, you can say
which command
will tell you the full path to that command, anddpkg -S filename
will tell you what package provides a file. Then you can runapt-get source packagename
to get its source code.It is with the GNU CoreUtils package.