smooth_buddha
Active Member
hey guys i was playing and practicing with some piping and commands and was trying to come up with a way to count the amount of commands on my system.
I came up with this
ls -1 /bin /sbin /usr/bin | nl
so this does a listing on seperate lines of/bin /sbin and u/usr/bin and used number line and it came back with 2435
Im still trying to get my bearing of the system and i realise ive probably missed some directories and maybe not used the most effeicnt commands to get this task done. I realise i could of also used "wc" word count command piped instead of nl . would be interested to know how some of you guys would go about counting every command on the system and how to go about it
I came up with this
ls -1 /bin /sbin /usr/bin | nl
so this does a listing on seperate lines of/bin /sbin and u/usr/bin and used number line and it came back with 2435
Im still trying to get my bearing of the system and i realise ive probably missed some directories and maybe not used the most effeicnt commands to get this task done. I realise i could of also used "wc" word count command piped instead of nl . would be interested to know how some of you guys would go about counting every command on the system and how to go about it