whereis pwdpwd: /bin/pwd /usr/include/pwd.h /usr/share/man/man1/pwd.1.gzThe pwd in the binary folder is not the same astype pwdpwd is a shell builtinso wouldn't it be harmless to do some experimentation on the external pwd? Like, adding a Hello shell! cout just to demonstrate the principle?Where is the source for pwd? Do you usually get it with the distribution (I'm on Debian) or do you somehow install or download it? Is it in C? Do I compile it like any other file with gcc and put the result (with fitting chmod) in a folder encompassed by the path? What about upgrades? As you understand, I'm missing the big picture here.(By the way, the header file seems to be unrelated: pwd as in password, not print/present working directory.)
Edit and recompile individual program
compiling