If you want to check the Ubuntu version you can use this command:
lsb_release -a
How to check IP address on Ubuntu
ip addr show
How to check Mysql version on Ubuntu
mysql -V
How to check Python version in Ubuntu
python -V
How to check PHP version on Ubuntu
php --version
How to check RAM in Ubuntu
free -h
How to check kernel version in Ubuntu
uname -a
How to check Ubuntu packages installed
dpkg -l
How to check package installed in Ubuntu
dpkg -l | grep package_name