I have a directory with a ton of files I want to find the average file size of these files so something like ls somethinghere whats the average file size of everyth
Use wc -c * to get the size of all the files and ls | wc -l to get the number of files. Then just divide one by the other.
wc -c *
ls | wc -l