1) How should I long list a directory. Kindly guide me if there's are multiple options to do this .? 2) How do I sort based on the file size?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
1) You can use
| more and scroll with space or down arrow. like this:
/# ls /etc/ | more
2) For sorting by file size use
ls -lS or
ls -lSh for print sizes in KB MB or GB.
If you wanna invert the result, use -r switch.
For more arguments