1.查看命令的路径
- stack@stack-G31M-ES2C:~$ which ls
- /bin/ls
2.查看命令所属的源码包(特权命令需加sudo才可以查到源码包)
- stack@stack-G31M-ES2C:~$ dpkg -S /bin/ls
- coreutils: /bin/ls
3.下载源码包
- stack@stack-G31M-ES2C:~$ sudo apt-get source coreutils
- Reading package lists... Done
- 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.下载完后直接可以查看
- stack@stack-G31M-ES2C:~$ cd coreutils
- stack@stack-G31M-ES2C:~$ ls ls.c
- ....
阅读(1039) | 评论(0) | 转发(0) |