How to Check Disk Space Usage in Linux?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to Check Disk Space Usage in Linux?

    What is Disk space usage?

    #2
    What is Disk space usage?
    Disk space usage indicates how much space a system uses to perform various tasks or run a program.

    To check Linux disk space usage:
    Use the 'df' command in the terminal to check disk space. The output shows available disk space and space used by the system.

    '--output' lets you check disk usage in a specific format.

    'awk' is used to check disk usage in GB.
    Scott Harwood
    AccuWebHosting | Affordable Forex VPS Hosting Provider

    Comment


      #3
      The percentage of a computer's storage that is now being used is referred to as disk usage (DU). In contrast, the total amount of space that a specific disk is capable of storing is known as disk space or capacity. Kilobytes (KB), megabytes (MB), gigabytes (GB), and/or terabytes are often used units to describe disk utilisation (TB).

      Comment


        #4

        To check the disk space usage in Linux, you can use the “df” command. Here are the steps:

        1. Open the terminal on your Linux system.

        Type “df –h” and press Enter.

        2. This will display a list of all the partitions on your system along with their disk space usage. The “-h” flag is used to display the disk space usage in a human-readable format.

        3. You can also specify a specific partition to check its disk space usage. For example, to check the disk space usage of the /dev/sda1 partition, type:

        df -h /dev/sda1

        4. This will display the disk space usage of the /dev/sda1 partition only.

        5. In addition to “df”, you can also use the du command to check the disk space usage of a specific directory. For example, to check the disk space usage of the /home/user/Documents directory, type:

        du -sh /home/user/Documents
        6. This will display the disk space usage of the /home/user/Documents directory in a human-readable format. The “-s” flag is used to display the summary of the disk space usage, and the “-h” flag is used to display it in a human-readable format.​

        Comment


          #5
          How can I test my disk space?

          Comment


            #6
            From the Activities list, launch the System Monitor programmer. To view the system's partitions and disk space use, select the File Systems tab. The data is presented in the following ways: Total, Free, Available, and Used.

            Comment


              #7
              Okay. Thanks.

              Comment


                #8
                Delete the programs you never use to increase the disk space.

                Comment


                  #9
                  How to Check Disk Space Usage in Linux?​

                  Comment


                    #10
                    Does performance suffer while using a disk?

                    Comment


                      #11
                      Does performance suffer while using a disk?

                      Comment


                        #12
                        Thank to everybody. I enjoyed your explanations, all of you. It is simple to grasp.

                        Comment

                        Working...
                        X