How do I read the source code of shell commands?

前端 未结 7 1843
遇见更好的自我
遇见更好的自我 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 04:52

    Direct links to source for some popular programs in coreutils:

    • cat (767 lines)
    • chmod (570 lines)
    • cp (2912 lines)
    • cut (831 lines)
    • date (570 lines)
    • df (1718 lines)
    • du (1112 lines)
    • echo (272 lines)
    • head (1070 lines)
    • hostname (116 lines)
    • kill (312 lines)
    • ln (651 lines)
    • ls (4954 lines)
    • md5sum (878 lines)
    • mkdir (306 lines)
    • mv (512 lines)
    • nice (220 lines)
    • pwd (394 lines)
    • rm (356 lines)
    • rmdir (252 lines)
    • shred (1325 lines)
    • tail (2301 lines)
    • tee (220 lines)
    • touch (437 lines)
    • wc (801 lines)
    • whoami (91 lines)

    Full list here.

提交回复
热议问题