在ubuntu中获得一个命令的源代码


 在ubuntu中经常会需要查看一个命令的源代码,比如我想知道ifconfig这条命令是如何实现的,这时我就需要下载ifconfig的源代码,这在ubuntu中是非常方便的。

    test@test-desktop:~$ type ifconfig
    ifconfig is /sbin/ifconfig
    test@test-desktop:~$ sudo dpkg -S /sbin/ifconfig
    net-tools: /sbin/ifconfig
    test@test-desktop:~$ sudo apt-get source net-tools

本文作者:
« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3