How do I find the size of a file in Linux?

How do I find the size of a file in Linux?
Answer
Using the ls Command
  1. –l – displays a list of files and directories in long format and shows the sizes in bytes.
  2. –h – scales file sizes and directory sizes into KB, MB, GB, or TB when the file or directory size is larger than 1024 bytes.
  3. –s – displays a list of the files and directories and shows the sizes in blocks.
 

Tìm kiếm

Back
Top