lsコマンドの-Sオプションでファイルサイズが大きいものから表示することができます。
# ls -S /var/www/html/ test01.html test02.html test03.html
また、オプション-rで逆順に表示できますので、ファイルサイズが小さいものから表示する場合は、オプション -Sr を使用します。
# ls -Sr /var/www/html/ test03.html test02.html test01.html
公開日 : / 更新日 :
lsコマンドの-Sオプションでファイルサイズが大きいものから表示することができます。
# ls -S /var/www/html/ test01.html test02.html test03.html
また、オプション-rで逆順に表示できますので、ファイルサイズが小さいものから表示する場合は、オプション -Sr を使用します。
# ls -Sr /var/www/html/ test03.html test02.html test01.html