`
ljl_xyf
  • 浏览: 618113 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

查看Linux 32 or 64 bit及Linux版本命令

 
阅读更多

用命令查询系统是32位还是64位
getconf LONG_BIT or getconf WORD_BIT
例如:
[root@sy02 /]# getconf LONG_BIT
64

2.file command
例如:
[root@sy02 /]# file /bin/ls
/bin/ls: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped

 

查看linux的版本主要有三种方法:

 

1)uname -a
2)cat /proc/version
3)cat /etc/issue
4) ls /boot
5) lsb_release -a

1) 登录到服务器执行 lsb_release -a ,即可列出所有版本信息,例如:

[root@3.5.5Biz-46 ~]# lsb_release -a
LSB Version: 1.3
Distributor ID: RedHatEnterpriseAS
Description: Red Hat Enterprise Linux AS release 4 (Nahant Update 1)
Release: 4
Codename: NahantUpdate1
[root@3.5.5Biz-46 ~]#

这个命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版。

2) 登录到linux执行cat /etc/redhat-release ,例如如下:
[root@3.5.5Biz-46 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 1)
[root@3.5.5Biz-46 ~]#

这种方式下可以直接看到具体的版本号,比如 AS4 Update 1

3)登录到linux执行rpm -q redhat-release ,例如如下

[root@3.5.5Biz-46 ~]# rpm -q redhat-release
redhat-release-4AS-2.4
[root@3.5.5Biz-46 ~]#

这种方式下可看到一个所谓的release号,比如上边的例子是2.4
这个release号和实际的版本之间存在一定的对应关系,如下:

redhat-release-3AS-1 -> Redhat Enterprise Linux AS 3
redhat-release-3AS-7.4 -> Redhat Enterprise Linux AS 3 Update 4
redhat-release-4AS-2 -> Redhat Enterprise Linux AS 4
redhat-release-4AS-2.4 -> Redhat Enterprise Linux AS 4 Update 1
redhat-release-4AS-3 -> Redhat Enterprise Linux AS 4 Update 2
redhat-release-4AS-4.1 -> Redhat Enterprise Linux AS 4 Update 3
redhat-release-4AS-5.5 -> Redhat Enterprise Linux AS 4 Update 4

注意:第(2)(3)两种方法只对Redhat Linux有效

 

 

 

 

 

分享到:
评论

相关推荐

    IxChariot Endpoint Windows,LINUX ,macOS,Android 版本全集

    ) 版本 + LINUX (32bit & 64bit) 版本+ Apple macOS版本 + Android 版本 全集 包含文件如下:pewin32_95.exe( Microsoft Windows 7 / 8.x / 10 - 32-bit),pewin64_95.exe(Microsoft Windows 7 / 8.x / 10 / ...

    wftpserver-linux-64bit.tar.zip

    The Text Editor is used to view or edit text files in the Web Client. It supports all kinds of text files, such as .txt, .xml, .java... You can open the Text Editor by double-clicking on the common ...

    genymotion-3.2.1-linux_x64.bin

    Ubuntu 20.04LTS (Focal Fossa) - 64bit Debian 9 (Stretch) or above - 64bit Fedora 30 or above - 64bit

    Linux压缩工具unzip

    linux压缩工具,是unzip,可以用于Linux解压文件。

    5.2-linux64bit-scitools.tar.gz

    Linux源码查看工具Understand5.0(build960) with keygen 输入步骤:Enter License Code -> Options -> Use Legacy Licensing -> Add Eval or SDL (RegCode) -> use keygen AMPED and any e-mail

    Packet Tracer 7.1.1 for Linux 64 bit

    Cisco Packet Tracer is a powerful network simulator that can be utilized in training for CCNA TM and CCNP TM certification exam by allowing ...troubleshooting without having to buy real CiscoTM routers or switches.

    go1.21.1.linux-amd64.tar.gz

    go1.21.1.linux-amd64.tar.gz 适用于Linux 2.6.32 or later, Intel 64-bit 处理器

    jdk-8u221-linux-x64.tar.gz

    jdk-8u221-linux-x64.tar.gz for linux 64bit欢迎大家踊跃下载

    Introduction to 64Bit Windows Assembly

    This book introduces programmers to 64 bit Intel assembly language using the Microsoft Windows operating system. The book also discusses how to use the free integrated development environment, ebe, ...

    license intel parallel studio xe 2015 for linux or wins

    license intel parallel studio xe 2015 for linux or wins 你值得拥有! 在rhel 7 和win 7 64bit测试pass!

    FRP-Linux服务端安装-一键安装脚本

    frps Latest release file frp_0.8.1_linux_amd64.tar.gz #此步骤会自动获取frp最新版本,自动操作,无需理会 Loading You Server IP, please wait... You Server IP:12.12.12.12 #自动获取你服务器的IP地址 Please ...

    go1.14.3.linux-amd64 (1).tar.gz

    Microsoft Windows Windows 7 or later, Intel 64-bit processor go1.14.3.windows-amd64.msi (115MB)

    Motorola Handset USB Driver v4.0.0 (64-bit) 摩托罗拉USB驱动64位

    (2009-09-15 发布) September 15, 2009 Motorola USB Driver v4.0.0 for Windows (64-bit) ...A 64-bit version of Windows XP or Windows Vista OS You must have Administrator permissions to install this driver

    cpptools-linux.vsix

    Instructions To use the "offline" .vsix (that doesn't download OS-based dependencies on ...32-bit Linux is no longer supported. #5346 https://github.com/microsoft/vscode-cpptools/releases/tag/0.28.1

    genymotion-2.9.0-linux_x64.bin

    System Requirements ...Microsoft Windows 7, 8/8.1, 10 (32/64 bit) 64 bit CPU, with VT-x or AMD-V capability, enabled in BIOS settings Recent and dedicated GPU 400 MB disk space 2GB RAM

    Oracle SQL Developer 2.1.0.63.73 for 32bit-windows-no-jre.part1

    Oracle SQL Developer 2.1.0.63.73 for 64bit-windows-no-jre下载地址: part1: http://download.csdn.net/source/1990232 part2: http://download.csdn.net/source/1990238 -------------------------------------...

    Motorola Handset USB Driver v4.0.0 (32-bit) 摩托罗拉USB驱动32位

    2009-09-15 发布 摩托罗拉官方USB驱动文件, 支持全系列摩托手机. ...A 32-bit version of Windows 2000, Windows XP or Windows Vista OS You must have Administrator permissions to install this driver

    Git-2.14.1-64-bit

    Git windows 64位 代码管理工具 Git for Windows focuses on offering a lightweight, native set of tools that bring the full feature set of the Git SCM to Windows while providing appropriate user ...

    vscode cpptools-linux.vsix 0.29.0依赖包

    Instructions To use the "offline" .vsix (that doesn't download OS-based dependencies on extension activation), download the .vsix that matches your OS and run ...32-bit x86 Linux is no longer supported.

    Foxit Quick PDF Library 16.13 sn

    著名的PDF编程插件16.13版本,带sn,支持Delphi ... Quick PDF Library for Linux Linux – 64-bit operating system Ubuntu – version 16 and later CentOS – version 6 and later Debian – version 8 and later

Global site tag (gtag.js) - Google Analytics