How can I check which filesystems have greater than 85% usage?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
2
down vote

favorite












How can I check which file systems have greater than 85% usage?



Filesystem Size Used Avail Use% Mounted on
jumpso 200M 3.8M 197M 2% /tmp
none 32G 444K 32G 1% /dev
/dev/md2 24G 13G 11G 56% /var/mnt/local
/dev/md4 16G 3.2G 12G 22% /var/mnt/local









share|improve this question



















  • 1




    Welcome to AskUbuntu. Please be more specific about what exactly you want to archive.
    – derHugo
    Feb 15 at 12:03










  • I meant value more than 85% of something
    – Manoj
    Feb 15 at 12:34










  • look at your provided output and you can see ...
    – RoVo
    Feb 15 at 15:45














up vote
2
down vote

favorite












How can I check which file systems have greater than 85% usage?



Filesystem Size Used Avail Use% Mounted on
jumpso 200M 3.8M 197M 2% /tmp
none 32G 444K 32G 1% /dev
/dev/md2 24G 13G 11G 56% /var/mnt/local
/dev/md4 16G 3.2G 12G 22% /var/mnt/local









share|improve this question



















  • 1




    Welcome to AskUbuntu. Please be more specific about what exactly you want to archive.
    – derHugo
    Feb 15 at 12:03










  • I meant value more than 85% of something
    – Manoj
    Feb 15 at 12:34










  • look at your provided output and you can see ...
    – RoVo
    Feb 15 at 15:45












up vote
2
down vote

favorite









up vote
2
down vote

favorite











How can I check which file systems have greater than 85% usage?



Filesystem Size Used Avail Use% Mounted on
jumpso 200M 3.8M 197M 2% /tmp
none 32G 444K 32G 1% /dev
/dev/md2 24G 13G 11G 56% /var/mnt/local
/dev/md4 16G 3.2G 12G 22% /var/mnt/local









share|improve this question















How can I check which file systems have greater than 85% usage?



Filesystem Size Used Avail Use% Mounted on
jumpso 200M 3.8M 197M 2% /tmp
none 32G 444K 32G 1% /dev
/dev/md2 24G 13G 11G 56% /var/mnt/local
/dev/md4 16G 3.2G 12G 22% /var/mnt/local






command-line disk-usage






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 15 at 19:34









Zanna

48.2k13120228




48.2k13120228










asked Feb 15 at 11:57









Manoj

132




132







  • 1




    Welcome to AskUbuntu. Please be more specific about what exactly you want to archive.
    – derHugo
    Feb 15 at 12:03










  • I meant value more than 85% of something
    – Manoj
    Feb 15 at 12:34










  • look at your provided output and you can see ...
    – RoVo
    Feb 15 at 15:45












  • 1




    Welcome to AskUbuntu. Please be more specific about what exactly you want to archive.
    – derHugo
    Feb 15 at 12:03










  • I meant value more than 85% of something
    – Manoj
    Feb 15 at 12:34










  • look at your provided output and you can see ...
    – RoVo
    Feb 15 at 15:45







1




1




Welcome to AskUbuntu. Please be more specific about what exactly you want to archive.
– derHugo
Feb 15 at 12:03




Welcome to AskUbuntu. Please be more specific about what exactly you want to archive.
– derHugo
Feb 15 at 12:03












I meant value more than 85% of something
– Manoj
Feb 15 at 12:34




I meant value more than 85% of something
– Manoj
Feb 15 at 12:34












look at your provided output and you can see ...
– RoVo
Feb 15 at 15:45




look at your provided output and you can see ...
– RoVo
Feb 15 at 15:45










1 Answer
1






active

oldest

votes

















up vote
7
down vote



accepted










I assume you want to list all file systems that are more than 85% full.



For this, we need to inspect and filter the output of df:



  • virtual file systems like tmpfs are not interesting, as they are located in memory and not on any disk, and also barely contain anything

  • we must filter the output by comparing the numerical value of the output's 5th (Use%) column to our threshold of 85%

df -h -x tmpfs -x devtmpfs | awk '$5+0 > 85'


If you want to include the column titles int he output as well, try



df -h -x tmpfs -x devtmpfs | awk '$5+0 > 85 || NR == 1'





share|improve this answer






















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1006451%2fhow-can-i-check-which-filesystems-have-greater-than-85-usage%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    7
    down vote



    accepted










    I assume you want to list all file systems that are more than 85% full.



    For this, we need to inspect and filter the output of df:



    • virtual file systems like tmpfs are not interesting, as they are located in memory and not on any disk, and also barely contain anything

    • we must filter the output by comparing the numerical value of the output's 5th (Use%) column to our threshold of 85%

    df -h -x tmpfs -x devtmpfs | awk '$5+0 > 85'


    If you want to include the column titles int he output as well, try



    df -h -x tmpfs -x devtmpfs | awk '$5+0 > 85 || NR == 1'





    share|improve this answer


























      up vote
      7
      down vote



      accepted










      I assume you want to list all file systems that are more than 85% full.



      For this, we need to inspect and filter the output of df:



      • virtual file systems like tmpfs are not interesting, as they are located in memory and not on any disk, and also barely contain anything

      • we must filter the output by comparing the numerical value of the output's 5th (Use%) column to our threshold of 85%

      df -h -x tmpfs -x devtmpfs | awk '$5+0 > 85'


      If you want to include the column titles int he output as well, try



      df -h -x tmpfs -x devtmpfs | awk '$5+0 > 85 || NR == 1'





      share|improve this answer
























        up vote
        7
        down vote



        accepted







        up vote
        7
        down vote



        accepted






        I assume you want to list all file systems that are more than 85% full.



        For this, we need to inspect and filter the output of df:



        • virtual file systems like tmpfs are not interesting, as they are located in memory and not on any disk, and also barely contain anything

        • we must filter the output by comparing the numerical value of the output's 5th (Use%) column to our threshold of 85%

        df -h -x tmpfs -x devtmpfs | awk '$5+0 > 85'


        If you want to include the column titles int he output as well, try



        df -h -x tmpfs -x devtmpfs | awk '$5+0 > 85 || NR == 1'





        share|improve this answer














        I assume you want to list all file systems that are more than 85% full.



        For this, we need to inspect and filter the output of df:



        • virtual file systems like tmpfs are not interesting, as they are located in memory and not on any disk, and also barely contain anything

        • we must filter the output by comparing the numerical value of the output's 5th (Use%) column to our threshold of 85%

        df -h -x tmpfs -x devtmpfs | awk '$5+0 > 85'


        If you want to include the column titles int he output as well, try



        df -h -x tmpfs -x devtmpfs | awk '$5+0 > 85 || NR == 1'






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Feb 15 at 16:13

























        answered Feb 15 at 12:34









        Byte Commander

        59.8k26159269




        59.8k26159269



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1006451%2fhow-can-i-check-which-filesystems-have-greater-than-85-usage%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Which professions warranted travel in Medieval times?

            How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

            Trouble downloading packages list due to a “Hash sum mismatch” error