Close Menu
  • Analog Design
    • Latest Analog Layout Interview Questions (2025)
  • Digital Design
    • Digital Electronics Interview Question(2025)
    • Top VLSI Interview Questions
  • Physical Design
    • Physical Design Interview Questions for VLSI Engineers
  • Verilog
    • Verilog Interview Questions(2024)
  • Forum
Facebook Instagram YouTube LinkedIn WhatsApp
SiliconvlsiSiliconvlsi
Forum Questions Register in Forum Login in Forum
Facebook Instagram YouTube LinkedIn WhatsApp
  • Analog Design
    • Latest Analog Layout Interview Questions (2025)
  • Digital Design
    • Digital Electronics Interview Question(2025)
    • Top VLSI Interview Questions
  • Physical Design
    • Physical Design Interview Questions for VLSI Engineers
  • Verilog
    • Verilog Interview Questions(2024)
  • Forum
SiliconvlsiSiliconvlsi
Home»Linux»du Command in Linux
Linux

du Command in Linux

siliconvlsiBy siliconvlsiJanuary 20, 2024Updated:January 20, 2024No Comments2 Mins Read
Facebook Pinterest LinkedIn Email WhatsApp
Share
Facebook Twitter LinkedIn Pinterest Email

du Command in Linux

du Command in Linux/Unix

The du command in Linux/Unix stands for Disk Usage. It is used to check the disk space usage of files and directories on a system. The command provides information about the amount of disk space used by a particular file or directory.

Syntax

du [OPTION]... [FILE]...

Example:

du filename

Output Explanation

The du command displays the disk space usage of the specified file or directory.

Options:

The du the command supports various options to customize the output:

-a or --all: Display counts for all files, not just directories.

du -a

-h or --human-readable: Print sizes in human-readable format (e.g., 12K, 2M).

du -h

-c or --total: Display a grand total.

du -c

-s or --summarize: Display only the total for each argument.

du -s

-0 or --null: Terminate lines with null bytes.

du -0

--block-size=<size>: Set block size to <size>.

du --block-size=1M

--time: Display the modification time of the specified file or directory.

du --time

Example Usage:

$ du -h /path/to/directory

This command will display the disk space usage of the specified directory in a human-readable format.

Purpose and Usage:

The du command is used to analyze and report on the disk space usage of files and directories. It helps users and system administrators to identify space-consuming files or directories on the system. By default, du displays disk space usage in kilobytes. You can use options like -h for human-readable format or specify --block-size for a different block size.

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email

Related Posts

Delete words after certain word in each line in gvim

January 28, 2024

Linux date Command

January 22, 2024

What is a Linux locate Command?

January 22, 2024
Leave A Reply Cancel Reply

Facebook X (Twitter) Instagram Pinterest Vimeo YouTube
  • About Us
  • Contact Us
  • Privacy Policy
© 2025 Siliconvlsi.

Type above and press Enter to search. Press Esc to cancel.