How can I check if the Operating System is Sun Os or Unix or Solaris from by bashrc

Kumar Alok picture Kumar Alok · Feb 3, 2012 · Viewed 35.2k times · Source

I want to know, how can we check in the bashrc file, what operating system is it?

Answer

Basile Starynkevitch picture Basile Starynkevitch · Feb 3, 2012

Use uname -a in your .bashrc file.