command to know disk ussage in ec2 instance
#To check disk space:
# Using Linux Command
df -h
#output
Filesystem Size Used Avail Use% Mounted on
/dev/xvda2 38G 26G 9.7G 73% /
# Using AWS CLI
aws ec2 describe-volumes --filters Name=attachment.instance-id,Values=i-1234567890abcdef0
#output
{
"Volumes": [
{
"AvailabilityZone": "us-east-1a",
"Attachments": [
{
"AttachTime": "2013-12-18T22:35:00.000Z",
"InstanceId": "i-1234567890abcdef0",
"VolumeId": "vol-049df61146c4d7901",
"State": "attached",
"DeleteOnTermination": true,
"Device": "/dev/sda1"
}
],
"Encrypted": false,
"VolumeType": "gp2",
"VolumeId": "vol-049df61146c4d7901",
"State": "in-use",
"SnapshotId": "snap-1234567890abcdef0",
"CreateTime": "2013-12-18T22:35:00.084Z",
"Size": 8
}
]
}
Also in Shell:
- undo add stage git
- mount: cdrom: failed to setup loop device for
- ubuntu add public key to server
- host key verification failed
- ngbmodal angular 9 yarn install
- linux set environment
- bash call another script relative to current script
- cambiar nombre branch git
- crop video from specific time to specific time ffmpeg
- Why are there two ways to unstage a file in Git?
- check installed packages apt-get
- image converter linux
- git add .
- git change remote origin address
- linux shell loop through all inputs except last
- list hdfs running linux
- how to make your own linux distro
- git delete branch after merge
- "at" ubuntu script dschedule
- delete a deployment in kubernetes
- how to check which packages homebrew has installed
- how to get mac cpu temp
- IP adress terminal
- could not connect to server: Connection refused Is the server running on host and accepting TCP/IP connections on port 5432?