Getting information about your Linux system
To see which kernel version you are running:
uname -r
To see which version of Ubuntu you are running:
lsb_release -a
To get information about installed hardware:
lspci
To see whether the kernel detected plugging in of an external device:
dmesg | tail