两个步骤,首先要知道这个软件在哪个包。然后去下载。
1。使用 which ls 可知该文件的文件名为 /bin/ls
到 ubuntu package search ( http://packages.ubuntu.com/)这个页面中 search the contents of package,输入 ls 进行 search 可以知道,该软件在 coreutils 包中。
2。然后使用 apt-get source coreutils 下载该包的源代码。
1。使用 which ls 可知该文件的文件名为 /bin/ls
到 ubuntu package search ( http://packages.ubuntu.com/)这个页面中 search the contents of package,输入 ls 进行 search 可以知道,该软件在 coreutils 包中。
2。然后使用 apt-get source coreutils 下载该包的源代码。