Source code for 'df' command
Solution 1:
First, find out what package the df
command comes from. This will turn out to be coreutils
.
Then run the command
apt-get source coreutils
to get the source code for the package containing the df
command.
Solution 2:
df
is a part of coreutils package. You can get source either from GNU website or you can get the source package from launchpad