How do I read the source code of shell commands?

前端 未结 7 1844
遇见更好的自我
遇见更好的自我 2020-12-04 04:30

I would like to read the actual source code which the linux commands are written with. I\'ve gained some experience using them and now I think it\'s time to interact with my

7条回答
  •  春和景丽
    2020-12-04 05:05

    You can have it on github using the command

    git clone https://github.com/coreutils/coreutils.git
    

    You can find all the source codes in the src folder.

    You need to have git installed.

    Things have changed since 2012, ls source code has now 5309 lines

提交回复
热议问题