in Ubuntu:

#show distribution info
lsb_release -a

#show kernel version
uname -a

#show OS and computer info
neofetch

 

in Oracle Linux:

dmidecode | grep "Product Name" -A 10

cat /etc/oracle-release

ls -l /etc/*-release