查看linux系统信息个人总结

首先可用:
lsb_release
{
    lsb_release --help
Options:
  -v, --version
    Display the version of the LSB specification against which the distribution is compliant.
  -i, --id
    Display the string id of the distributor.
  -d, --description
    Display the single line text description of the distribution.
  -r, --release
    Display the release number of the distribution.
  -c, --codename
    Display the codename according to the distribution release.
  -a, --all
    Display all of the above information.
  -s, --short
    Use short output format for information requested by other options (or version if none).
  -h, --help
    Display this message.

常用方式:lsb_release -a
   
    
}

uname
{
 uname --help
 Print certain system information.  With no OPTION, same as -s.

-a, --all                print all information, in the following order,
                             except omit -p and -i if unknown:
  -s, --kernel-name        print the kernel name
  -n, --nodename           print the network node hostname
  -r, --kernel-release     print the kernel release
  -v, --kernel-version     print the kernel version
  -m, --machine            print the machine hardware name
  -p, --processor          print the processor type or "unknown"
  -i, --hardware-platform  print the hardware platform or "unknown"
  -o, --operating-system   print the operating system
  --help     display this help and exit
  --version  output version information and exit

常用方式:uname -a
}

cat /etc/issue
{
    显示系统的版本信息
}

时间: 2024-08-06 03:43:28

查看linux系统信息个人总结的相关文章

查看linux系统信息命令(kernel、os、cpu等)

1.查看当前操作系统内核信息 [[email protected] tomcat6]$ uname -a Linux S1PA222 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux 2.查看当前操作系统发行版信息 [[email protected] tomcat6]$ cat /etc/issue CentOS release 6.4 (Final) Kernel

查看linux系统信息

查看cpu信息cat /proc/cpiinfo 查看ubuntu版本:cat /etc/issue 查看系统是32位还是64位方法1:#查看long的位数,返回32或64 getconf LONG_BIT 方法2:#查看文件信息,包含32-bit就是32位,包含64-bit就是64位file /sbin/init

查看Linux系统信息命令

系统 # uname -a # 查看内核/操作系统/CPU信息 # head -n 1 /etc/issue # 查看操作系统版本 # cat /proc/cpuinfo # 查看CPU信息 # hostname # 查看计算机名 # lspci -tv # 列出所有PCI设备 # lsusb -tv # 列出所有USB设备 # lsmod # 列出加载的内核模块 # env # 查看环境变量 资源 # free -m # 查看内存使用量和交换区使用量 # df -h # 查看各分区使用情况 #

Linux下查看操作系统信息、内存情况及cpu信息:cpu个数、核心数、线程数

文章转载:http://blog.snsgou.com/post-793.html 1.查看物理CPU的个数 [[email protected] ~]# cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l1 2.查看逻辑CPU的个数 [[email protected] ~]# cat /proc/cpuinfo |grep "processor"|wc -l4 3.查看CPU是几核(即,核心数) [[em

linux系统信息查看命令学习笔记

承蒙自己导师的大力支持,给我申请了一个美团服务器,让我用来做实验部署一些东西,突然来了兴趣,想好好看看这个服务器的系统信息,并回顾下查看系统信息的命令.(内容主要参照<linux如何查看系统信息>) 非常感谢刘老师的大力支持和不离不弃!!! 接下来开始系统信息查看之旅. 1.cpu信息的查看: [email protected]:~# more /proc/cpuinfo |grep "model name" model name      : QEMU Virtual C

Linux系统信息查看命令大全

Linux系统信息查看命令大全 最近看了一些Linux命令行的文章,在系统信息查看方面学到不少命令. 想起以前写过的一篇其实Linux这样用更简单, 发现这些系统信息查看命令也可以总结出一篇小小的东西来了. 另外这里还有非常多的命令, 可以作为参考. 系统# uname -a # 查看内核/操作系统/CPU信息 # head -n 1 /etc/issue # 查看操作系统版本 # cat /proc/cpuinfo # 查看CPU信息 # hostname # 查看计算机名 # lspci -

查看Linux Centos 系统信息 内核 CPU 系统版本 磁盘 分区 网络配置 进程 命令

linux系统信息 # uname -a # 查看内核/操作系统/CPU信息 # head -n 1 /etc/issue # 查看操作系统版本 # cat /proc/cpuinfo # 查看CPU信息 # hostname # 查看计算机名 # lspci -tv # 列出所有PCI设备 # lsusb -tv # 列出所有USB设备 # lsmod # 列出加载的内核模块 # env # 查看环境变量 # arch 显示机器的处理器架构(1) # uname -m 显示机器的处理器架构(2

Linux系统信息

Linux系统信息 arch 显示机器的处理器架构(1) uname -m 显示机器的处理器架构(2) uname -r 显示正在使用的内核版本 dmidecode -q 显示硬件系统部件 - (SMBIOS / DMI) hdparm -i /dev/hda 罗列一个磁盘的架构特性 hdparm -tT /dev/sda 在磁盘上执行测试性读取操作 cat /proc/cpuinfo 显示CPU info的信息 cat /proc/interrupts 显示中断 cat /proc/memin

查看linux系统常用的命令,Linux查看系统配置常用命令

一.linux CPU大小  cat /proc/cpuinfo |grep "model name" && cat /proc/cpuinfo |grep "physical id" 说明:Linux下可以在/proc/cpuinfo中看到每个cpu的详细信息.但是对于双核的cpu,在cpuinfo中会看到两个cpu.常常会让人误以为是两个单核的cpu.其实应该通过Physical Processor ID来区分单核和双核.而Physical Pr