能够查看linxu系统源码是类unix系统开源性的体现,是在其他系统享受不到的待遇,我的系统是ubuntu,将查看过程列在下面:
例如我想查看cat命令工具的源码——
- 查看工具的路径
$ whereis cat cat: /bin/cat /usr/share/man/man1/cat.1.gz
- 查看工具所属的包
$ dpkg -S /bin/cat coreutils: /bin/cat
- 下载工具源码包
$ sudo apt-get source coreutils
能够查看linxu系统源码是类unix系统开源性的体现,是在其他系统享受不到的待遇,我的系统是ubuntu,将查看过程列在下面:
例如我想查看cat命令工具的源码——
$ whereis cat
cat: /bin/cat /usr/share/man/man1/cat.1.gz
$ dpkg -S /bin/cat coreutils: /bin/cat
$ sudo apt-get source coreutils