postheadericon sort files in unix by size


#Write a script to display the directory in the descending order of the size of each file.

ls -lS

#Write a script to display the directory in the Ascending order of the size of each file.

ls -lSr

#option  [ -l  ] is use for log listing
#option  [ -S ] to sort  by size
#option  [ -r ] use for revers ordering

0 comments:

Total Pageviews

© BipinRupadiya.com. Powered by Blogger.