What I want to know is the command 'ls' flow
example : "ls -> some_function() in kernel -> [VFS function] -> make dentry object"
I think when I type 'ls' in command line, a function in kernel is called at first.
What is the first function called in kernel source?
It's a duplicate of Where can I find source code for Linux core commands?
But you can find the source code of ls
here:
http://cvsweb.netbsd.org/bsdweb.cgi/src/bin/ls/ls.c?rev=1.67&content-type=text/x-cvsweb-markup