Viewing Unix command source code

plastick

Golden Member
Sep 29, 2003
1,400
1
81
How do I view the source code for a specific Unix command such as grep or sort?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Download it and open it in an editor. On Debian every package has a source package that the autobuilders use for creating the packages automatically, to get the source package just type 'apt-get source package-name'.