Chinaunix首页 | 论坛 | 博客
  • 博客访问: 40175
  • 博文数量: 8
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 14
  • 用 户 组: 普通用户
  • 注册时间: 2013-09-23 11:25
文章分类
文章存档

2015年(2)

2014年(4)

2013年(2)

我的朋友

分类: LINUX

2014-11-30 13:47:26

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


阅读(1638) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~