hamburger menu
All Coursesall course arrow
adda247
reward-icon
adda247
    arrow
    arrow
    arrow
    Which command in Linux is used to estimate and display the disk space usage of files and directories?
    Question



    Which command in Linux is used to estimate and display the disk space usage of files and directories?

    A.

    ls

    B.

    df

    C.

    du

    D.

    top

    E.

    mkdir

    Correct option is C

    The du (disk usage) command in Linux is used to estimate and display the disk space usage of files and directories. It provides detailed reports about the storage utilized by individual directories and files, making it a valuable tool for analyzing and managing disk space usage. By default, it displays the size of directories and subdirectories in a recursive manner.
    Important Key Points:
    1. Usage Analysis: The du command helps track down files and directories consuming excessive disk space.
    2. Customizable Output: Users can modify the output using options like -h for human-readable sizes and --max-depth for limiting directory levels in the output.
    3. Filesystem Insight: It assists system administrators in managing and optimizing disk space by identifying large files and directories.
    Knowledge Booster:
    · ls: Lists files and directories but does not display their disk usage.
    · df: Shows the available and used disk space on mounted filesystems, not individual files or directories.
    · top: Displays running processes and system resource usage (CPU, memory), unrelated to disk space usage.
    · mkdir: Creates directories and does not interact with disk usage or display storage information.

    Free Tests

    Free
    Must Attempt

    RBI Asst Prelims 2026: Quant Advance level Test 01

    languageIcon English
    • pdpQsnIcon35 Questions
    • pdpsheetsIcon35 Marks
    • timerIcon20 Mins
    languageIcon English
    Free
    Must Attempt

    RBI Asst Prelims 2026: Reasoning Advance level Test 01

    languageIcon English
    • pdpQsnIcon35 Questions
    • pdpsheetsIcon35 Marks
    • timerIcon20 Mins
    languageIcon English
    Free
    Must Attempt

    NABARD Development Assistant Mains 2026 Full Mock Test -01

    languageIcon English
    • pdpQsnIcon150 Questions
    • pdpsheetsIcon150 Marks
    • timerIcon105 Mins
    languageIcon English
    test-prime-package

    Access ‘IBPS SO IT Officer’ Mock Tests with

    • 60000+ Mocks and Previous Year Papers
    • Unlimited Re-Attempts
    • Personalised Report Card
    • 500% Refund on Final Selection
    • Largest Community
    students-icon
    383k+ students have already unlocked exclusive benefits with Test Prime!
    Our Plans
    Monthsup-arrow