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

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

post - imageshack API cURL -