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

1737阅读 0评论2012-08-13 wenyiyun11
分类:LINUX


在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

转自  http://blog.sina.com.cn/s/blog_554dddc70100a29f.html
上一篇:牛人志
下一篇:没有了