linux下ls,pwd,cp等源代码的下载

来源:互联网 发布:apache错误日志在哪 编辑:程序博客网 时间:2024/06/05 08:35
找到想看源码的命令属于哪个包:
  1. $ dpkg -S `which cp`
  2. coreutils: /bin/cp

下载源码:
  1. $ apt-get -d source "coreutils"
  2. Reading package lists... Done
  3. Building dependency tree 
  4. Reading state information... Done
  5. Need to get 12.6 MB of source archives.
  6. Get:1 http://archive.ubuntu.com/ubuntu/ quantal-updates/main coreutils 8.13-3.2ubuntu2.(dsc) [2,067 B]
  7. Get:2 http://archive.ubuntu.com/ubuntu/ quantal-updates/main coreutils 8.13-3.2ubuntu2.(tar) [11.7 MB] 
  8. Get:3 http://archive.ubuntu.com/ubuntu/ quantal-updates/main coreutils 8.13-3.2ubuntu2.(tar) [11.7 MB] 
  9. Get:4 http://archive.ubuntu.com/ubuntu/ quantal-updates/main coreutils 8.13-3.2ubuntu2.(tar) [11.7 MB]
0 0