Assistance on work

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

  1. The problem statement, all variables and given/known data:

Files stored in /bin, /sbin, /usr/bin, and /usr/sbin vary in their respective sizes. In fact, there are 244 different sizes if we do not count the zero byte files. Create a command line that proves this and stores the answer, 244, in a files named sizes.txt. 2. Relevant commands, code, scripts, algorithms:
See below?

  1. The attempts at a solution (include all code and scripts):
  1. du -a /{,usr/}{,s}bin | sort -nu | grep -v ^0 | wc -l > ~/exam2/sizes.txt
    248

I am close but i cant figure out how or why it counts the directories themselves

  1. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
    KeeneStateCollege(KSC), Keene(NH), USA

Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).

Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).