also, how would you build that structure from scratch.
What is the fastest way to get the source code of the ls command in linux?
Thanks.
also, how would you build that structure from scratch. What is the fastest way
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Download coreutils from gnu:
http://ftp.gnu.org/gnu/coreutils/
ls is in there.
edit: I have no idea about the windows structure you’re asking about, but if you’re asking for the source to ‘ls’ I guess you’re trying to read directories. Look at the man page for opendir and readdir, and also, scandir. And, to find out about the files you get from those, see the man page for stat in section 2 of the man.