
To list or sort all the files by size, use the -S option, that tells the ls command to sort the file listing by size and the -h option makes the output a human-readable format. # lsĪnaconda-ks.cfg bridge-nf-call-iptabley~ fwbackups-1.43.7 ImageMagick-7.0.8-28 remi-release-7.rpmīridge-nf-call-iptables~ bridge-nf-call-iptablez~ fwbackups-1.43.7.tar.bz2 report.xmlīridge-nf-call-iptablex~ caddy initial-setup-ks.cfg rh6_CloudBerryBackup.rpm When invoked without any arguments, ls lists the files in the current working directory. Releated Read: Fun: SL (Steam Locomotive) Runs a Train in Your Linux Terminal To list or sort all files in a directory by size, we will use the ls command, which will list computer files in Unix and Unix-like operating systems.
