How to determine which distribution version is in a shell script?
认证0级讲师
View operating system:
lsb_release -a
Check the shell version, if you are using bash, and so on for other types of shells:
bash --version
View operating system:
Check the shell version, if you are using bash, and so on for other types of shells: