In a script or in a terminal, you can get some informations with the command : uname.
To know the name of your computer, you can use :
You can print the kernel name with :
In general, the result is « Linux », but the result will be different if you use other UNIX systems, such as SunOS for instance.
Besides, you can display the kernel release :
All these informations are displayed with the command :
For other informations about this command, as usual, the manual page is well-documented.