How to discover what Linux distribution is in use

前端 未结 12 1559
青春惊慌失措
青春惊慌失措 2020-12-02 20:46

Sometimes I need to access some servers running Linux (or maybe another Unix-like SO), but I don\'t know how to verify which distribution is in use on the server (there are

12条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-02 21:38

    cat /etc/*release
    

    Most distributions put a release file in /etc/ (like /etc/redhat-release, /etc/gentoo-release, etc.) which usually has the version number of your distribution in it.

提交回复
热议问题