How to check remaining space in storage device EC2
Asked Answered
A

4

61

I've connected to amazon Ec2 instance through putty. How can I check the remaining space in instance?

Audrit answered 22/10, 2014 at 19:59 Comment(0)
G
121

After you login using putty, enter command:

$ df -h

df - Disk filesystem -h is human readable format

Grecism answered 22/10, 2014 at 20:2 Comment(0)
V
60

After you login using putty, enter command:

$ df -hT /dev/xvda1
Vanhouten answered 31/10, 2019 at 9:15 Comment(2)
This is a more useful answer than the accepted one.Revolt
the question is how do I check what is inside xvda1 volumeShowiness
H
1

df - Disk Filesystem

  • -h is human readable format

    df -f

enter image description here

  • -i is inode format

    df -i

enter image description here

Hundredfold answered 23/12, 2021 at 5:55 Comment(0)
P
0

Depending on the kinds of storage volumes you have mounted, df -h can often hang or take a very long time to run. If this happens, you can check storage on your EBS volumes by running df with the -l, --local argument:

df -hl

The --local argument limits it to local file systems (which include EBS volumes) so it runs much more quickly, while the -h argument makes it print sizes in a human readable format

-h, --human-readable  print sizes in human readable format (e.g., 1K 234M 2G)
-l, --local           limit listing to local file systems
Parentage answered 7/7, 2023 at 16:2 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.