Hi! I’m looking for source code of commands like ‘su’, ‘pwd’ and ‘who’ (I want to create my own versions of these), but I couldn’t find it on
Index of /source/distribution/11.1/repo/oss
Could anybody give me any hint where I could find it?
zielonyplot wrote:
> Hi! I’m looking for source code of commands like ‘su’, ‘pwd’ and ‘who’
> (I want to create my own versions of these), but I couldn’t find it on
> ‘Index of /source/distribution/11.1/repo/oss’
> (http://download.opensuse.org/source/distribution/11.1/repo/oss/)
> Could anybody give me any hint where I could find it?
The command
rpm -qf which foo
will tell you which package contains the foo command, you should then be able
to find the corresponding source package.
Kind regards,
Andreas Stieger
Andreas Stieger wrote:
> zielonyplot wrote:
>> Hi! I’m looking for source code of commands like ‘su’, ‘pwd’ and ‘who’
Oh and note that contrary to your topic choice and widespread belief, these
are GNU commands, not Linux commands. Those commands were programmed before
Linux came to life, by RMS’s beard.
Kind regards,
Andreas Stieger