免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1011 | 回复: 0
打印 上一主题 下一主题

linux 命令的源码 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-15 10:35 |只看该作者 |倒序浏览
    经常会遇到有人问某某命令的源码...不过看好的代码,比看好的书更爽,更别说比劣质的书籍了.所以linux kernel source. libc(newlib).coreutils.net-tool.iproute2.还有wireless-tools都是很值得一看的.不过你要是真能肯完这些,你也就成神了.holly shit.
     [root@mip-123456 nmap-4.68]# whereis iwconfig
          iwconfig: /sbin/iwconfig /usr/share/man/man8/iwconfig.8.gz
     [root@mip-123456 nmap-4.68]# rpm -qf /sbin/iwconfig
          wireless-tools-28-2.el5
     [root@mip-123456 nmap-4.68]# whereis ip
        ip: /sbin/ip /usr/share/man/man8/ip.8.gz /usr/share/man/man7/ip.7.gz
     [root@mip-123456 nmap-4.68]# rpm -qf /sbin/ip
        iproute-2.6.18-7.el5
      当然./configure && make && make install的和builtin的是找不到的.不过builtin的就找父了哦.强烈推荐没事看看libc的嵌入式版newlib.一些常用的c函数库都是在内面实现的.
     接下来就是google it了哦^_^
   
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/76292/showart_1929005.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP