On Wed, Dec 07, 2005 at 12:51:47AM +0000, Wayne Stallwood wrote:
On Wed, 2005-12-07 at 00:08 +0000, Ted.Harding@nessie.mcc.ac.uk wrote:
Out of the 26 + 26*26 = 702 possible command names that could be made from 1 or 2 lower-case letters, I found only 55 (8%) in root's PATH:
w ab ar as at bc cc ci co cp dc dd df dp du ed ex gs gv id ip jw ld ls ln lp ls lz mf mt mv nl nm od pb pm pr ps rb rm rx rz sb sg sh su sx sz tc tl tr ul uz vi wc
Now without resorting to web searches or man pages who is the first person that can name the function of each one from memory ?
There are only about 14 there that I recognise from regular use..also Ted is it my tired eyes or do you have ls in there twice ?
Well, it takes commands with up to four to determine this:
% cat twolettercmds.txt w ab ar as at bc cc ci co cp dc dd df dp du ed ex gs gv id ip jw ld ls ln lp ls lz mf mt mv nl nm od pb pm pr ps rb rm rx rz sb sg sh su sx sz tc tl tr ul uz vi wc
% sed -e 's/ /\n/g' twolettercmds.txt | wc -l 55
% sed -e 's/ /\n/g' twolettercmds.txt | sort | uniq | wc -l 54
Best regards, Jan