Reputation:
I've connected to amazon Ec2 instance through putty. How can I check the remaining space in instance?
Upvotes: 66
Views: 86539
Reputation: 12165
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
Upvotes: 1
Reputation: 704
df - Disk Filesystem
-h is human readable format
df -f
-i is inode format
df -i
Upvotes: 2
Reputation: 2109
After you login using putty, enter command:
$ df -h
df - Disk filesystem -h is human readable format
Upvotes: 128
Reputation: 739
After you login using putty, enter command:
$ df -hT /dev/xvda1
Upvotes: 65