Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

Thanks!

share|improve this question

2 Answers 2

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.

share|improve this answer
3  
Props for teaching a man to fish. –  Erigami Oct 20 '11 at 3:46
1  
If you give a man a fish, that man now knows where to find fish. 0If you teach a man to fish, you just destroyed your market base. –  user72421 Aug 17 '12 at 8:00

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.