Chinaunix首页 | 论坛 | 博客
  • 博客访问: 376815
  • 博文数量: 80
  • 博客积分: 1750
  • 博客等级: 上尉
  • 技术积分: 1380
  • 用 户 组: 普通用户
  • 注册时间: 2011-11-13 11:35
文章分类
文章存档

2014年(3)

2013年(1)

2012年(54)

2011年(22)

分类: LINUX

2012-11-26 19:55:36


1.查看命令的路径
  1. stack@stack-G31M-ES2C:~$ which ls
  2. /bin/ls
2.查看命令所属的源码包(特权命令需加sudo才可以查到源码包)
  1. stack@stack-G31M-ES2C:~$ dpkg -S /bin/ls
  2. coreutils: /bin/ls
3.下载源码包
  1. stack@stack-G31M-ES2C:~$ sudo apt-get source coreutils
  2. Reading package lists... Done
  3. Building dependency tree      
    Reading state information... Done
    Need to get 12.6 MB of source archives.
    Get:1 precise-updates/main coreutils 8.13-3ubuntu3.1 (dsc) [2,052 B]
    Get:2 precise-updates/main coreutils 8.13-3ubuntu3.1 (tar) [11.7 MB]
    33% [2 coreutils 4,189 kB/11.7 MB 36%] 
  4. ....
4.下载完后直接可以查看

  1. stack@stack-G31M-ES2C:~$ cd coreutils
  2. stack@stack-G31M-ES2C:~$ ls ls.c
  3. ....




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