bash - Shell Script to find the Operating System of the machine -


how find operating system using bash script? found answer: detect os bash script. not clear work on mac os x.

i find on mac os x vs different linux os's.

for linux can type in following bash command:

$ cat /etc/*-release 

for mac os x can try 1 of these commands:

$ sw_vers -productversion  $ system_profiler spsoftwaredatatype 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

dataset - MPAndroidchart returning no chart Data available -

post - imageshack API cURL -