Tried following things:
1) added "export OSTYPE=linux" in .bashrc
closed the terminal
opened the terminal
echo $OSTYPE
o/p - linux-gnu
2) added "export OSTYPE=linux" in .profile
closed the terminal
opened the terminal
echo $OSTYPE
o/p - linux-gnu