找到想看源码的命令属于哪个包:
  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.1 (dsc) [2,067 B]
  7. Get:2 http://archive.ubuntu.com/ubuntu/ quantal-updates/main coreutils 8.13-3.2ubuntu2.1 (tar) [11.7 MB]
  8. Get:3 http://archive.ubuntu.com/ubuntu/ quantal-updates/main coreutils 8.13-3.2ubuntu2.1 (tar) [11.7 MB]
  9. Get:4 http://archive.ubuntu.com/ubuntu/ quantal-updates/main coreutils 8.13-3.2ubuntu2.1 (tar) [11.7 MB]
09-23 12:24