prosenjit-itobuz
8/2/2017 - 12:52 AM

Amazone instance management

Amazone instance management

# Connect to wp.0eefortstheme.com
ssh ec2-user@ec2-34-203-121-131.compute-1.amazonaws.com

# CHeck free space 
df -H

# Check memory usage 
free -m


# Install sar for system stat
sudo yum install sysstat

# CHeck cpu usage 
sar -u 12 5

# Start ssh agent
eval `ssh-agent -s`

# clear history
history -c

#Know external ip
dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'"' '{ print $2}'