I recently just wanted to look at the source code for sha1sum.alec@ROOROO:~/tmp-source-study$ apt-get source sha1sumReading package lists... DoneBuilding dependency tree       Reading state information... DoneE: Unable to find a source package for sha1sumThe next thing I did was to read the manual. The manual mentioned coreutils. But I don't see anything like sha1sum.c, and there's no associated Debian package for sha1sum, as far as I can tell.What should I be doing to get the source code for this small, basic program without having to use a search engine, from the convenience of my shell?
Getting the source for something that doesn't seem to have an associated package?
apt;source
First, find which package the file is from:% dpkg -S /usr/bin/sha1sumcoreutils: /usr/bin/sha1sumAnd then install the source:% apt-get source coreutils