On a Debian 12 system, the process of executing commands by typing their names involves the shell performing a PATH lookup rather than the Linux kernel. This is demonstrated through examining the source code of various shells and languages like Python, Go, and Rust, which handle the PATH variable themselves to find executables. The Linux kernel only executes using exact paths provided to it.

4m read timeFrom blog.danielh.cc
Post cover image
Table of contents
Reading the source ​What about other code? ​

Sort: