ls -lhAsa

I like the UNIX command ls (list directory contents) to be:

-l      (The lowercase letter “ell”.)  List in long format.
-h      When used with the -l option, use unit suffixes: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte in order to reduce the number of digits to three or less using base 2 for sizes.
-A      List all entries except for . and …  Always set for the super-user.
-s      Display the number of file system blocks actually used by each file, in units of 512 bytes, where partial units are rounded up to the next integer value.  If the output is to a terminal, a total sum for all the file sizes is output on a line before the listing.  The environment variable BLOCKSIZE overrides the unit size of 512 bytes.
-a      Include directory entries whose names begin with a dot (.).

So I use:

ls -lhAsa

https://en.wikipedia.org/wiki/Lhasa

😉

Leave a Reply

Your email address will not be published. Required fields are marked *

For spam filtering purposes, please copy the number 4423 to the field below: