Sunday, 28 April 2013

Determine the size of each individual file in a folder from Terminal: ls -l

So for some reason you've got a folder with loads of files in it and you want to find out their contents using the terminal. The solution is quite easy.

1. Enter sudo -i & your password to prevent any annoying permission denied messages.

2. Enter ls -l /home/yourname/folder or whatever the path to your folder is. 

And that's it. Easy.

No comments:

Post a Comment