小编Bil*_*oon的帖子

确定 Linux 发行版

我正在尝试确定正在运行的 linux 服务器的风格。我不是要确定内核版本 - 而是要评估分销商。

gcc 已安装,在版本输出中显示 RedHat

# gcc --version
gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-11)
Run Code Online (Sandbox Code Playgroud)

这是否意味着我可以安全地假设我的服务器是 RedHat 服务器。有没有更好的 - 100% 防弹方法来解决这个问题?也适用于其他 linux 风格 - 不仅仅是这台服务器?

编辑:内容/etc/以防万一 - 但我想要一个也适用于其他版本的 linux 的解决方案。

# ls /etc/
./              backupmxhosts  domainusers     host.conf     localdomains  mailips        pam.d/      relayhosts               shadow              trustedmailhosts
../             bashrc*        exim.conf       inputrc       localtime     man.config     passwd      resolv.conf              skipsmtpcheckhosts  userdomains
DIR_COLORS      cron.deny      exim.pl         ld.so.cache   lynx.cfg      mtab           profile     secondarymx              spammeripblocks     vimrc
aliases         demodomains    exim.pl.local*  ld.so.conf    mail/         my.cnf         profile.d/  senderverifybypasshosts  sudoers
antivirus.exim  demouids       group …
Run Code Online (Sandbox Code Playgroud)

linux shell

11
推荐指数
3
解决办法
6068
查看次数

标签 统计

linux ×1

shell ×1