命令 'ls' 内核源代码在哪里?

Where is the command 'ls' kernel source code?

我想知道的是命令'ls'流

示例:"ls -> some_function() in kernel -> [VFS function] -> make dentry object"

我想当我在命令行中输入'ls'时,首先会调用内核中的一个函数。

内核源代码中调用的第一个函数是什么?

这是 Where can I find source code for Linux core commands?

的副本

但是你可以在这里找到ls的源代码:

http://cvsweb.netbsd.org/bsdweb.cgi/src/bin/ls/ls.c?rev=1.67&content-type=text/x-cvsweb-markup

您也可以在此处查看,具有语法突出显示和更轻松的导航
https://github.com/coreutils/coreutils/tree/master/src