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

Clash 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
command-line disk-usage
add a comment |Â
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
command-line disk-usage
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
add a comment |Â
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
command-line disk-usage
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
command-line disk-usage
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
add a comment |Â
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
add a comment |Â
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
tmpfsare 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'
add a comment |Â
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
tmpfsare 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'
add a comment |Â
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
tmpfsare 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'
add a comment |Â
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
tmpfsare 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'
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
tmpfsare 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'
edited Feb 15 at 16:13
answered Feb 15 at 12:34
Byte Commander
59.8k26159269
59.8k26159269
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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