码迷,mamicode.com
首页 > 系统相关 > 详细

[转]ubuntu(12.04)下, 命令 ,内核 源代码的获取

时间:2014-12-17 17:49:13      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:blog   http   ar   io   sp   for   on   log   bs   

[转]ubuntu(12.04)下, 命令 ,内核 源代码的获取

 

http://blog.chinaunix.net/uid-18905703-id-3446099.html

 

1.命令:
例如:要查看ls命令的源代码
    1)  whereis ls
          ls: /bin/ls /usr/share/man/man1/ls.1.gz
    2)   sudo dpkg -S /bin/ls
          coreutils: /bin/ls
    3)   sudo apt-get source coreutils

2.内核
   1)apt-cache search linux-source
         linux-source - Linux kernel source with Ubuntu patches
         linux-source-3.2.0 - Linux kernel source for version 3.2.0 with Ubuntu patches
   2)sudo apt-get source linux-source-3.2.0

[转]ubuntu(12.04)下, 命令 ,内核 源代码的获取

标签:blog   http   ar   io   sp   for   on   log   bs   

原文地址:http://www.cnblogs.com/wansui/p/4169824.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!