I want to know, how can we check in the bashrc file, what operating system is it?
Use uname -a in your .bashrc file.
uname -a
.bashrc