DEV Community

howtouselinux
howtouselinux

Posted on

4 ways to get file size in Linux

Image description

To check file size in Linux, you can use du, ls, stat, or find commands.

  • The du command tells you how much space a particular file or directory is taking up on your system.
  • The ls command shows you information about files, including their size.
  • The stat command gives you more details about a particular file, including its size.
  • The find command helps you search for files of a certain size.

4 ways to check file size in Linux

Top comments (0)