User Tools

Site Tools


find_os_information

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
find_os_information [2023/04/03 07:39] walkeradminfind_os_information [2023/04/03 07:44] (current) walkeradmin
Line 38: Line 38:
 we can use the command uname with a few switches to get OS and Kernel information: we can use the command uname with a few switches to get OS and Kernel information:
     uname -a     uname -a
 +\\ 
 +This displays the Kernel version as well as OS version, albeit a slightly cryptic way of reporting the OS version.
 +\\ 
 \\  \\ 
 Linux controller 4.18.0-348.el8.x86_64 #1 SMP Tue Nov 9 06:28:28 EST 2021 x86_64 x86_64 x86_64 GNU/Linux Linux controller 4.18.0-348.el8.x86_64 #1 SMP Tue Nov 9 06:28:28 EST 2021 x86_64 x86_64 x86_64 GNU/Linux
Line 43: Line 46:
 \\  \\ 
     uname -or     uname -or
 +\\ 
 +uname -<color #ed1c24>or</color> where the <color #ed1c24>o</color> is the operating system name and the <color #ed1c24>r</color> is the release.
 +\\ 
 \\  \\ 
 4.18.0-348.el8.x86_64 GNU/Linux 4.18.0-348.el8.x86_64 GNU/Linux
Line 50: Line 56:
 We can also use the cat command to display the contents of /proc/version, use the following command for this: We can also use the cat command to display the contents of /proc/version, use the following command for this:
     cat /proc/version     cat /proc/version
 +\\ 
 +This gives both the Kernel version and the OS release version.
 +\\ 
 \\  \\ 
 Linux version 4.18.0-348.el8.x86_64 (mockbuild@koji.corp.cloudlinux.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-3) (GCC)) #1 SMP Tue Nov 9 06:28:28 EST 2021 Linux version 4.18.0-348.el8.x86_64 (mockbuild@koji.corp.cloudlinux.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-3) (GCC)) #1 SMP Tue Nov 9 06:28:28 EST 2021
find_os_information.1680507596.txt.gz · Last modified: by walkeradmin