Jump to content

uname -a gives unknowns


marafa
 Share

Recommended Posts

According to the man page for uname, use this:

 

uname -snrvmo

 

 

If this is too long, then simply add an alias to your .bash_profile

 

alias uname="uname -snrvmo"

 

Make sure there are no spaces around the equals sign or it won't work.

Link to comment
Share on other sites

uname --help

shows

Usage: uname [OPTION]...

Print certain system information.  With no OPTION, same as -s.



 -a, --all                print all information, in the following order:

 -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

 -i, --hardware-platform  print the hardware platform

 -o, --operating-system   print the operating system

     --help     display this help and exit

     --version  output version information and exit



Report bugs to <bug-coreutils@gnu.org>.

Obviously, the -a option covers all other options so the the alias with "uname -snrvmo" will not help. The reason behind the unknowns is that the -p and -i options do not have values set.

 

If u want info about the processor, run

cat /proc/cpuinfo

.

Link to comment
Share on other sites

what about this "alias"?

arusabal@mandrakeusers ~$ function uname { ( /bin/uname -snrvmo && cat /proc/cpuinfo ) | awk '/^Linux/ {o = $NF; for (i=1;i<=NF-1;i++){ snrvm = snrvm$i" "}};  /vendor_id/ {FS=":"; id = $3}; /model name/ {FS=":"; p = $2};  END {print snrvm p" "id" "o}'; }



arusabal@mandrakeusers ~$ uname

Linux mandrakeusers.foo.org 2.4.19-32mdk #1 Tue Mar 25 20:45:38 MST 2003 i586  Pentium MMX GenuineIntel GNU/Linux



arusabal@mandrakeusers ~$

 

:mrgreen:

Link to comment
Share on other sites

hi again

 

it basically came down to this situation:

when i used easysw.com' easy package manager (the makers of cups) it created rpms for me but it was like epm-3.0.6-2.4-intel-linux.rpm (yes i have an i686 rpm of epm)

 

and when i checked uname -a i saw all those unknowns and figured epm was using uname to get the data to name the rpm.

 

and so i wanna make rpms that are fully named everytime i make an rpm instead of me renaming it

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...