Search code examples
bashunixsunos

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


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


Solution

  • Use uname -a in your .bashrc file.