方式1:直接查看ldd版本
ldd --version
ldd (Buildroot) 2.30
Copyright (C) 2019 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:查看链接文件版本 (适用于部分嵌入式设备无ldd命令)
查看/lib/libc
库,软链接到libc-2.30.so
,说明版本为2.30
ls -l /lib/libc.so.6
lrwxrwxrwx 1 root root 12 Oct 13 2020 /lib/libc.so.6 -> libc-2.30.so