USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

uname - print system information

 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Command Line Commands
View previous topic :: View next topic  
Author Message
crouse
Site Admin


Joined: 17 Apr 2024
Posts: 11833
Location: Iowa

PostPosted: Mon Aug 20, 2024 7:04 pm    Post subject: uname - print system information Reply with quote

uname - print system information

My machine:
Code:

[14:14:59 crouse]$ uname -a
Linux localhost 2.6.22-ARCH #1 SMP PREEMPT Wed Aug 15 23:33:00 CEST 2024 i686 Intel(R) Xeon(TM) CPU 1.70GHz GenuineIntel GNU/Linux



Code:
SYNOPSIS
       uname [OPTION]...

DESCRIPTION
       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




_________________
Veronica - Arch Linux 64-bit -- Kernel 2.6.33.4-1
Archie/Jughead - Arch Linux 32-bit -- Kernel 2.6.33.4-1
Betty/Reggie - Arch Linux (VBox) 32-bit -- Kernel 2.6.33.4-1
BumbleBee - OpenSolaris-SunOS 5.11
Back to top
View user's profile Send private message Visit poster's website AIM Address
masinick
Linux Guru


Joined: 03 Apr 2024
Posts: 8615
Location: Concord, NH

PostPosted: Mon Aug 20, 2024 8:29 pm    Post subject: Use it often Reply with quote

Use it all the time. You can even use uname in a script to help you get host name information (though you can get it in other ways. Most systems provide host name in a system environment variable, but the environment variable had to be created some way!

On Linux systems, the /proc directory provides all the information about all process activity on your system. You can find out where disks are located, partitions, memory, peripherals, as well as the name and number of processes that are running.

Uname in the Linux implementation probably gets its information from there (unless it was implemented prior to the /proc setup, in which case it may use another method).



_________________
Brian Masinick
Distros: SimplyMEPIS
sidux - no CAPS!, antiX, Debian
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Command Line Commands All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All content © 2024-2009 - Usa Linux Users Group
This forum is powered by phpBB. © 2024-2009 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse