Get system data
This article will contain commands that help to find information
about different aspects of a Linux based system.
Get the available disk space:
df -h
Get the size of directory:
du -sh
Search for unsuccessful SSH authentications:
egrep -i fail /var/log/auth.log
Get the distribution info:
lsb_release -a
Get the kernel info:
uname -a
Get the remote IP address. Replace REMOTE_URL with
http://ipecho.net/plain
wget -qO- REMOTE_URL ; echo
Get info on RAM cards. Speed, size and so on...
sudo dmidecode --type 17
Get RAM info:
free -mh