Show size of a file or a directory from the command line
$ ls -lh file.txt
or
$ du -h file.txt
will print size of the file in “human readable format”, i.e. the h
option.
To learn more about ls
or du
, run $ man ls
or $ man du
.
personal computing command-line interface (cli) gnu linux trisquel shell literacy office applications wiki