I often come across interesting Linux commands that make me wonder; what are these commands actually doing?
Yes, they might be 'force-removing dependencies', 'installing programs' and doing lots of other stuff, but I'd like to know how they're doing it.
Looking into the source code seems the right thing to do then, but where am I supposed to get it from?
I suppose they'll be written in C?
EDIT: I'm not talking about packages installed using apt-get
. I'm looking for the source code of linux/unix commands.
dpkg
orapt-get
, I'm talking about unix commands... – TellMeWhy Jan 04 '16 at 16:04apt-get source
always avails since you can download the packages which provide them and look at their source code from there. – kos Jan 04 '16 at 16:11apt-get
? – TellMeWhy Jan 04 '16 at 16:12coreutils
. – kos Jan 04 '16 at 16:16apt
? Commands don't have there own source code they manipulate programs and will be defined in that programs source code. Please do correct me if i am wrong or missing the point.. – Mark Kirby Jan 04 '16 at 16:17rm
. That's hosted at gnu.org. Then let's say that you want the source code for Perl. That's hosted at perl.org. Can you see the problem with that? We can't put all the links to any known command's mantainer in an answer. The closest you can get to a unique place to get the source code for a command is downloading the package that provides it from the repositories. Other than that the answer is just: it depends on the command, visit the mantainer's website. – kos Jan 04 '16 at 16:38