Загрузка...

Linux Quickie: How to find the Linux Kernel, Linux Version, Architecture and more!!!!

Linux Quickie: How to find the Linux Kernel, Linux Version, Architecture and more!!!!

#!/bin/bash
# Find version of Linux this has
echo '#########################################'
echo 'Find version of Linux this has'
echo '#########################################'

lsb_release -a

#Find Linux Kernel Version
echo '##########################################'
echo 'Find Linux Kernel Version'
echo '##########################################'

uname -r

#Find if it is 32bit or 64bit Kernel
echo '#########################################'
echo 'Find if it is 32bit or 64bit Kernel'
echo '#########################################'

getconf LONG_BIT

#Find if CPU is 32bit or 64bit if lm shows is 64bit
echo '##########################################'
echo 'Find if CPU is 32bit or 64bit if lm shows is 64bit'
echo '##########################################'

grep -o -w 'lm' /proc/cpuinfo | sort -u

#in some (most) linux this also works
echo '##########################################'
echo 'in some (most) linux this also works'
echo '##########################################'

cat /etc/*os*release

#in RedHat Systems this is also nice
echo '##########################################'
echo 'in RedHat Systems this is also nice'
echo '##########################################'

cat /etc/redhat-release

Видео Linux Quickie: How to find the Linux Kernel, Linux Version, Architecture and more!!!! канала Ozzoy Bits
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять