10

Can someone tell me how to locate the source code for the 'df' command. My operating system is Ocelot.

Thanks!

Luis Alvarado
  • 209,003
  • 167
  • 543
  • 707
Eae
  • 713
  • 2
  • 10
  • 14

2 Answers2

16

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.

Isaiah
  • 58,486
  • 28
  • 133
  • 145
1

df is a part of coreutils package. You can get source either from GNU website or you can get the source package from launchpad

Sergey
  • 43,339
  • 13
  • 106
  • 107