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 08:36] walkeradminfind_os_information [2023/04/03 08:44] (current) walkeradmin
Line 35: Line 35:
  
 </file> </file>
 +----
 +we can use the command uname with a few switches to get OS and Kernel information:
 +    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
 +\\ 
 +\\ 
 +    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
 +\\ 
 +\\ 
 +----
 +We can also use the cat command to display the contents of /proc/version, use the following command for this:
 +    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
 +\\ 
 +\\ 
 ---- ----
 +
  
find_os_information.1680507400.txt.gz · Last modified: 2023/04/03 08:36 by walkeradmin