To check your Ubuntu system version using the command line you will have to open the terminal (you can use this shortcut: Ctrl+Alt+T) and enter the command lsb_release -a
Check if you are running on a 32-bit or a 64-bit machine
On the other hand, if you just want to check if you are running on a 32 or 64-bit architecture:
- you will want to type: getconf LONG_BIT
An alternative way to find the Ubuntu version number and if you have 32 or 64 bits architecture
If you are a developer and do not always have access to the console. you can simply use the PHP info function:
- you can use it like this: phpinfo();
Drop this into a new PHP file and you will get a complete list of stuff installed on your server besides your Ubuntu version.