Como descobrir a versão do SO LINUX instalado

De MediaWiki do Campus São José
Ir para navegação Ir para pesquisar

Para descobrir a versão do SO LINUX instalado

1ª opção

lsb_release -a
Resultado

LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:security-4.0-amd64:security-4.0-noarch:security-4.1-amd64:security-4.1-noarch Distributor ID: Ubuntu Description: Ubuntu 14.04.2 LTS Release: 14.04 Codename: trusty </syntaxhighlight>

2ª opção

cat /etc/[A-Za-z]*[_-][rv]e[lr]*
Resultado

jessie/sid DISTRIB_ID=Ubuntu DISTRIB_RELEASE=14.04 DISTRIB_CODENAME=trusty DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS" NAME="Ubuntu" VERSION="14.04.2 LTS, Trusty Tahr" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 14.04.2 LTS" VERSION_ID="14.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" </syntaxhighlight>

3ª opção

cat /etc/lsb-release
Resultado

DISTRIB_ID=Ubuntu DISTRIB_RELEASE=14.04 DISTRIB_CODENAME=trusty DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS" </syntaxhighlight>

4ª opção

cat /etc/issue.net; uname -ar 
Resultado

Ubuntu 14.04.2 LTS Linux sj-redes2-m13 3.13.0-52-generic #85-Ubuntu SMP Wed Apr 29 16:44:17 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux </syntaxhighlight>

Para descobrir as características da maquina (PC)

  • Informação das memórias.
cat /proc/meminfo 
Resultado

MemTotal: 7660836 kB MemFree: 312164 kB Buffers: 144028 kB Cached: 2044192 kB SwapCached: 6080 kB Active: 4295860 kB Inactive: 1967928 kB Active(anon): 3534364 kB Inactive(anon): 1343056 kB Active(file): 761496 kB Inactive(file): 624872 kB Unevictable: 468 kB Mlocked: 468 kB SwapTotal: 5095420 kB SwapFree: 4943360 kB Dirty: 10932 kB Writeback: 0 kB AnonPages: 4070312 kB Mapped: 1081412 kB Shmem: 801852 kB Slab: 612568 kB SReclaimable: 564228 kB SUnreclaim: 48340 kB KernelStack: 7832 kB PageTables: 63452 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 8925836 kB Committed_AS: 12193672 kB VmallocTotal: 34359738367 kB VmallocUsed: 100040 kB VmallocChunk: 34359555764 kB HardwareCorrupted: 0 kB AnonHugePages: 1282048 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB DirectMap4k: 108312 kB DirectMap2M: 4610048 kB DirectMap1G: 3145728 kB </syntaxhighlight>

  • Informação dos processadores.
lscpu
Resultado

Arquitetura: x86_64 Modo(s) operacional da CPU:32-bit, 64-bit Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per núcleo 1 Núcleo(s) por soquete:4 Soquete(s): 1 Nó(s) de NUMA: 1 ID de fornecedor: AuthenticAMD Família da CPU: 16 Modelo: 4 Step: 3 CPU MHz: 800.000 BogoMIPS: 6383.59 Virtualização: AMD-V cache de L1d: 64K cache de L1i: 64K cache de L2: 512K cache de L3: 6144K NUMA node0 CPU(s): 0-3 </syntaxhighlight>

cat /proc/cpuinfo
Resultado

processor : 0 vendor_id : AuthenticAMD cpu family : 16 model : 4 model name : AMD Phenom(tm) II X4 B97 Processor stepping : 3 microcode : 0x10000b6 cpu MHz : 800.000 cache size : 512 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 4 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 5 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt hw_pstate npt lbrv svm_lock nrip_save bogomips : 6383.71 TLB size : 1024 4K pages clflush size : 64 cache_alignment : 64 address sizes : 48 bits physical, 48 bits virtual power management: ts ttp tm stc 100mhzsteps hwpstate

processor : 1 ... </syntaxhighlight>