du -a /directory | sort -n -r | head -n 5
*Replace directory with e.g. / to search the entire disk. Or /root for root only etc.
du -a /directory | sort -n -r | head -n 5
*Replace directory with e.g. / to search the entire disk. Or /root for root only etc.
curl https://bintray.com/sbt/rpm/rpm | sudo tee /etc/yum.repos.d/bintray-sbt-rpm.repo sudo yum install sbt
The following fixed the issue on AWS EC2:
unset PYTHON_INSTALL_LAYOUT
/root/.local/share/letsencrypt/bin/pip install --upgrade certbot
find /path -printf '%T+ %p\n' | sort -r | head
Install awscli locally. In this case with brew on a mac:
brew install awscli
Configure the cli:
aws configure
AWS Access Key ID: IAM credential with necessary access
AWS Secret Access Key: IAM credential with necessary access
Default region name: e.g. eu-west-1
Default output format [None]: Leave as none
Now export all instances in this region to csv file:
aws ec2 describe-instances --output text --query 'Reservations[*].Instances[*].[InstanceId, InstanceType, ImageId, State.Name, LaunchTime, Placement.AvailabilityZone, Placement.Tenancy, PrivateIpAddress, PrivateDnsName, PublicDnsName, [Tags[?Key==`Name`].Value] [0][0], [Tags[?Key==`purpose`].Value] [0][0], [Tags[?Key==`environment`].Value] [0][0], [Tags[?Key==`team`].Value] [0][0] ]' > instances.csv
Recent Comments