在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 |
|