Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    So I Hear You Know Photoshop

    August 9, 2022

    Here’s 4 Easy Steps to Add More Style to Your Corporate Wardrobe

    August 9, 2022

    The 4 Best Metallic Swimsuits 2022

    August 9, 2022
    FunnyVot
    • Home
    • Fun Corner

      Politician takes credit for world turning

      August 9, 2022

      Water companies warn river levels too low for dumping sewage

      August 9, 2022

      Birmingham appearing on maps since before the 2022 Commonwealth Games

      August 9, 2022

      Reverse Ferret Knackered

      August 9, 2022

      Southern Water exploits drought situation

      August 9, 2022
    • Best of Web

      The Onion’s Most Consequential Cat Journalism

      August 9, 2022

      Biggest Revelations From Josh Hawley’s New Book ‘Manhood’

      August 3, 2022

      Parents Explain Why They Are Not Vaccinating Their Children Against Covid-19

      August 2, 2022

      What To Say To Someone Who Denies Climate Change

      July 29, 2022

      MTV reveals 2022 Video Music Awards Nominees

      July 28, 2022
    • Laugh Time

      The 4 Best Metallic Swimsuits 2022

      August 9, 2022

      Dermstore Anniversary Sale Up To 25% Off 2022

      August 9, 2022

      Venus In Leo Will Make You Show Up For Love

      August 9, 2022

      Frenchie’s L’Ultimate Lovers Kit Review 2022

      August 9, 2022

      How Amanda Forastieri 2022 Line Supports Puerto Rico

      August 9, 2022
    • Parody News

      25 Times People Had A Horrible Time During This Year’s Thanksgiving

      November 29, 2021

      Grab This Free LibreOffice Impress Cheat Sheet

      August 7, 2021

      How to View Your Steam Purchase History

      August 7, 2021

      5 Ways to Fix the “System Restore Is Disabled by Your System Administrator” Error on Windows

      August 7, 2021

      What Is the Difference Between Aspect Ratio and Resolution?

      August 7, 2021
    • Fashion & Lifestyle

      WooCommerce Review (2022): Do the 9 Pros Outweigh the Cons?

      June 20, 2022

      10 Best Tools to Sell Digital Goods Online in 2022

      April 27, 2022

      6 Top Payment Gateways for eCommerce Compared (2022)

      April 27, 2022

      Shopify Review: Is It the Right eCommerce Platform for You? (Read This First)

      April 27, 2022

      8 Best Helpdesk Software for eCommerce Stores & Small Businesses in 2022

      April 4, 2022
    FunnyVot
    Home » How to Show Disk Usage in Linux With the du Command
    Parody News

    How to Show Disk Usage in Linux With the du Command

    1278-funnyvotBy 1278-funnyvotAugust 1, 2021No Comments4 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr WhatsApp VKontakte Email
    Share
    Facebook Twitter LinkedIn Pinterest Email


    Want to check disk consumption on your Linux system? Here’s how to use du, a command-line disk usage analyzer for Linux.


    If your PC is running slow or you’re having issues installing updates and software, there’s a high chance you might be running out of disk space. The handy du command makes it convenient for Linux users to stay aware of their disk consumption and make an upgrade if required.

    But how exactly do you issue this command on Linux? Let us find out.

    Prerequisites

    To be able to use the du command, you need to have the following:

    • A Linux-based system
    • A Linux terminal or command line
    • A user account with sudo or root privileges

    Note: Sudo in Linux stands for “superuser do”. A superuser has the highest level of permission and can execute any administrative commands.

    Related: How to Add a User to the Sudoers List in Linux

    How to Use the du Command

    The du command displays disk usage. Using it without any options will recursively check every folder and subfolders in the current working directory. To utilize the basic usage of the du command, simply open a terminal window, type du, and hit Enter.

    du

    Output:

    linux du command

    The output displays each directory’s disk usage and path, along with the total disk usage of the parent directory. Besides the du command, Linux also comes equipped with several other disk analyzers such as gdu that can output disk usage for you.

    A Few du Command Options

    The usefulness of this command can be easily expanded by using various options. Here are some basic flags that you can use with du:

    Display Output in Human Readable Format

    By default, the output generated by Linux commands is not very user-friendly and it is difficult to make out the size of the disk by looking at the output. To make the command human-readable, type du -h and hit Enter.

    du -h

    Get the Summary of the Directory Size

    The du command outputs a lot of file-related information that can be confusing when all you are trying to find out is the total size of your directory. To display the total size of a directory, use the -s flag with the command. The -s flag stands for Summarize.

    du -s

    Display Directory Size in Kilobytes (KB) or Megabytes (MB)

    You also have the option to display disk usage size in either KB or MB. To achieve this, simply use the -k flag for Kilobytes, and the -m flag for Megabytes.

    du -k
    du -m

    Display Disk Usage After System Modification

    To display disk usage after a modification has taken place on your Linux system, use the –time flag with the default command.

    du --time

    Output:

    linux --time command

    Related: How to Check Your Laptop’s Battery Health in Linux

    Monitoring Disk Usage on Linux

    Du is a versatile command for Linux users as it comes with a myriad of options. If keeping track of disk usage is important to you then the du command should be on top of your arsenal of Linux commands.

    Linux allows the superuser to grant administrative access to any user at any time. You can even change the username and other account details associated with a user account on Linux.


    modify user information on linux
    How to Change a Username and Other Account Details on Linux

    Need to change a username and home directory in Linux? Here’s how to change usernames, display names, and directory names.

    Read Next


    About The Author

    Kinza Yasar
    (43 Articles Published)

    Kinza is a technology enthusiast, technical writer, and self-proclaimed geek who resides in Northern Virginia with her husband and two kids. With a BS in Computer Networking and numerous IT certifications under her belt, she worked in the Telecommunications industry before venturing into technical writing. With a niche in cyber-security and cloud-based topics, she enjoys helping clients meet their diverse technical writing requirements across the globe.

    In her spare time, she enjoys reading fiction, technology blogs, crafting witty children’s stories, and cooking for her family.

    More
    From Kinza Yasar

    Subscribe to our newsletter

    Join our newsletter for tech tips, reviews, free ebooks, and exclusive deals!

    Click here to subscribe





    Source link

    Related

    Share. Facebook Twitter Pinterest LinkedIn Tumblr WhatsApp Email
    Previous ArticleHow to Change Line Spacing in Word
    Next Article How to Use the Geography Feature in Microsoft Excel
    1278-funnyvot
    • Website

    Related Posts

    25 Times People Had A Horrible Time During This Year’s Thanksgiving

    November 29, 2021

    Grab This Free LibreOffice Impress Cheat Sheet

    August 7, 2021

    How to View Your Steam Purchase History

    August 7, 2021

    5 Ways to Fix the “System Restore Is Disabled by Your System Administrator” Error on Windows

    August 7, 2021

    Leave A Reply Cancel Reply

    Recent Posts
    • So I Hear You Know Photoshop
    • Here’s 4 Easy Steps to Add More Style to Your Corporate Wardrobe
    • The 4 Best Metallic Swimsuits 2022
    • Dermstore Anniversary Sale Up To 25% Off 2022
    • Venus In Leo Will Make You Show Up For Love
    Recent Comments
    • Lizette Spenser on Here Is How I Increased My Income in 30 Days Or Less
    • Nicole on Here Is How I Increased My Income in 30 Days Or Less
    • Rebekah on Here Is How I Increased My Income in 30 Days Or Less
    • Michelle on Here Is How I Increased My Income in 30 Days Or Less
    • SEO on Hobo Dinner Foil Packets Recipe—How Long Does it Take to Cook a Hobo Dinner
    Archives
    • August 2022
    • July 2022
    • June 2022
    • May 2022
    • April 2022
    • March 2022
    • February 2022
    • January 2022
    • December 2021
    • November 2021
    • October 2021
    • September 2021
    • August 2021
    • July 2021
    • June 2021
    • April 2021
    • January 2021
    • December 2020
    Categories
    • Animals
    • Best of Web
    • Fashion & Lifestyle
    • Fun Corner
    • Laugh Time
    • Most Featured
    • Parody News
    • Sketch
    • Uncategorized
    Meta
    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    Don't Miss

    So I Hear You Know Photoshop

    Here’s 4 Easy Steps to Add More Style to Your Corporate Wardrobe

    The 4 Best Metallic Swimsuits 2022

    Dermstore Anniversary Sale Up To 25% Off 2022

    Demo
    Our Picks

    Remember! Bad Habits That Make a Big Impact on Your Lifestyle

    January 13, 2021

    The Right Morning Routine Can Keep You Energized & Happy

    January 13, 2021

    How to Make Perfume Last Longer Than Before

    January 13, 2021

    Stay off Social Media and Still Keep an Online Social Life

    January 13, 2021
    Don't Miss

    So I Hear You Know Photoshop

    By 1278-funnyvotAugust 9, 20220

    Hey, super quick thing! Can you make me a flyer for my kid’s lemonade stand?…

    Here’s 4 Easy Steps to Add More Style to Your Corporate Wardrobe

    August 9, 2022

    The 4 Best Metallic Swimsuits 2022

    August 9, 2022

    Dermstore Anniversary Sale Up To 25% Off 2022

    August 9, 2022

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    About Us
    About Us

    FunnyVot is your best source for FUN! We deliver the most popular memes, breaking stories, awesome GIFs, and viral videos on the internet!

    Our Sites:
    NewVot.com
    CryptoVot.com
    Gamesvot.com
    Healthvot.com

    Email Us: contact@funnyvot.com

    Our Picks

    Remember! Bad Habits That Make a Big Impact on Your Lifestyle

    January 13, 2021

    The Right Morning Routine Can Keep You Energized & Happy

    January 13, 2021

    How to Make Perfume Last Longer Than Before

    January 13, 2021

    Stay off Social Media and Still Keep an Online Social Life

    January 13, 2021
    • GDPR DPA
    • Privacy Policy
    • Do not sell my personal information
    • Opt out / Unsubscribe
    © 2022 ALL RIGHTS RESERVED FUNNYVOT.

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