Linux查看系统glibc版本号
2023-09-14 09:09:56 时间
1.第一种
# ldd --version
ldd (Ubuntu GLIBC 2.27-3ubuntu1) 2.27
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
2.第二种
# ls -alh /lib/x86_64-linux-gnu/libc.so.6
lrwxrwxrwx 1 root root 12 Apr 17 2018 /lib/x86_64-linux-gnu/libc.so.6 -> libc-2.27.so
注意:libc-2.27.so :版本号即2.27
# strings /lib/x86_64-linux-gnu/libc-2.27.so |grep -in5 version
GNU C Library (Ubuntu GLIBC 2.27-3ubuntu1) stable release version 2.27.
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
3.第三种
//glibc_version.c
#include <stdio.h>
#include <gnu/libc-version.h>
int main(void)
{
printf("glic_version = %s\n",gnu_get_libc_version());
return 0;
}
# gcc glibc_version.c
# ./a.out
glic_version = 2.27
相关文章
- Linux系统查看系统是32位还是64位方法总结
- Linux系统CPU核数等信息查看
- Linux - 查看和更改系统字符集
- linux 查看系统编码和修改系统 编码方法
- 重新梳理Linux系统中Python环境的问题
- linux 系统tar文件压缩打包命令
- Linux查看系统位数命令
- paip.注册java程序为LINUX系统服务的总结。
- Linux系统 vi怎么编辑文件
- Linux从零开始(一、安装系统)
- linux - 查看系统磁盘数据、查看文件夹占用磁盘大小 指令
- 【Linux 内核 内存管理】内存管理架构 ① ( 内存管理架构组成 | 用户空间 | 内核空间 | MMU 硬件 | Linux 内核架构层次 | Linux 系统调用接口 )
- 【Linux 内核】编译 Linux 内核 ⑦ ( 安装内核模块 | 安装内核 | 重启系统 | 查看当前内核版本 )
- Linux核心设计依据(七)系统调用
- Linux 系统使用命令行工具查看 TLS/SSL 效期时间
- Linux系统之查看进程监听端口方法
- Linux系统,设置时间
- 在 Linux 开发 FastAdmin 遇到的 Git 文件权限问题
- Linux系统下查看系统时间和硬件时间
- Linux系统中安装mysql注意事项
- Linux面试试题选粹
- [ Linux ] 如何查看Linux系统版本