[Ilugc] Re: uname

  • From: rkarthick@xxxxxxx (R Karthick)
  • Date: Sun Jun 27 20:57:17 2004

ok!! so if u really want it that way,

just add
      
        alias uname='echo foobar'

to make it spit foobar everytime u call uname. u can add it in ur 
.bashrc file or the global bashrc in /etc/bash.bashrc ;-)

regards,
R K       

Ullas wrote:

gopu.bhaskar@xxxxxxxxx wrote:


#uname  linux


but, in place of linux i want another word like venu, how?




The uname utility I guess would inturn call the uname function.
I think the uname function is a syscall, going though the glibc
Code should confirm that.
In the file /usr/include/linux/uts.h
(/lib/modules/`uname -r`/build/include/linux/uts.h),
the following can be found.

/*
 * Defines for what uname() should return
 */
#ifndef UTS_SYSNAME
#define UTS_SYSNAME "Linux"
#endif

I feel that changing this entry and recompiling the kernel should work.
HTH,
Gopu.


I think Gopu is right. Some article is available at 
http://www.icewalk.com/Linux/ManPages/uname-2.html about doing this.

T.Ullas


_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with "unsubscribe 
<password> address"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc



Other related posts: