search

Home  >  Q&A  >  body text

linux - How to determine the distribution version in shell script?

How to determine which distribution version is in a shell script?

PHP中文网PHP中文网2837 days ago1301

reply all(1)I'll reply

  • 学习ing

    学习ing2017-06-19 09:09:26

    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

    reply
    0
  • Cancelreply