3

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?

2

2 Answers 2

3

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

Sign up to request clarification or add additional context in comments.

Comments

2

You can also view it here, with syntax highlighting and easier navigation
https://github.com/coreutils/coreutils/tree/master/src

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.