About 2,060,000 results
Open links in new tab
  1. How to Check the Size of a Directory in Linux - GeeksforGeeks

    Jan 14, 2025 · There are several ways to check the size of a directory in Linux. Common methods include using the du command for detailed disk usage, df to analyze overall filesystem usage, …

  2. linux command to get size of files and directories present in a ...

    Use ls -s to list file size, or if you prefer ls -sh for human readable sizes.

  3. 4 Ways to Check File Size in Linux - howtouselinux

    Sep 26, 2024 · du -h filename: Check size of the specified file. du -sh dir: Check size of the specified directory including its subdirectories. ls -lh filename: Check size of the specified file. …

  4. How to Get the Size of a File or Directory in Linux

    The du command can be used to check the size of files, directories, and the total disk space used by the current directory and subdirectories. Run "du -h" to see a list of files and folders in a …

  5. How do I determine the total size of a directory (folder) from the ...

    Most commonly, --max-depth=1. There is a useful option to du called the --apparent-size. It can be used to find the actual size of a file or directory (as opposed to its footprint on the disk) eg, …

  6. How to Get the Size of a Directory in Linux | Linuxize

    Nov 13, 2019 · To find the apparent size of a directory, use the --apparent-size option. The “apparent size” of a file is how much data is actually in the file. When you transfer a directory …

  7. How to Display File Size in MB, KB or GB in Ubuntu Linux

    Sep 28, 2023 · You'll have to use du command to get the real size of a directory in Linux. The du command in Linux is used for checking the size of directory. Here are various ways you can …

  8. How do I get the size of a directory on the command line?

    Feb 20, 2015 · Just use the du command: will give you the cumulative disk usage of all non-hidden directories, files etc in the current directory in human-readable format. You can use the …

  9. Bash ls Command - List Directory Contents - W3Schools

    Using the ls Command The ls command is used to list the contents of a directory. The ls command can display files, directories, and information about them.

  10. How to Check Linux File Size? Through 4 Command Line

    Oct 9, 2024 · ls command: Lists files and directories, and with -lh, displays file sizes in a human-readable format. du command: Shows the disk space used by files or directories, providing …

  11. Some results have been removed
Refresh