# How to Change Uname output?

**URL:** <https://community.unix.com/t/how-to-change-uname-output/165018>\
**Category:** Shell Programming and Scripting\
**Created:** [September 11, 2006, 12:53pm UTC](https://community.unix.com/t/how-to-change-uname-output/165018 "2006-09-11T12:53:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pop\_black](https://community.unix.com/letter_avatar/pop_black/32/5_5575768a8748004e209b776fc1b2916d.png) [@pop\_black](https://community.unix.com/u/pop_black)\
**Post date:** [September 11, 2006, 12:53pm UTC](https://community.unix.com/t/how-to-change-uname-output/165018/1 "2006-09-11T12:53:45Z")

</div>

I want replace 2.6.15-25-server with 2.6.17 ?  
$uname -r  
2.6.15-25-server

1) mv /bin/uname /bin/uname.orig  
2) put the following in the new /bin/uname:  
#!/bin/sh  
echo Uname (New Version)  
/bin/uname.orig  
😕

---

<div class="post-metadata">

**Author:** ![blowtorch](https://community.unix.com/user_avatar/community.unix.com/blowtorch/32/136_2.png) [@blowtorch](https://community.unix.com/u/blowtorch)\
**Post date:** [September 11, 2006, 10:11pm UTC](https://community.unix.com/t/how-to-change-uname-output/165018/2 "2006-09-11T22:11:25Z")

</div>

pop\_black, uname -r prints the release level of your operating system. If you want to change the output of that command, you should be upgrading your system. Just replacing the uname command does not achieve anything.

---

<div class="post-metadata">

**Author:** ![pop\_black](https://community.unix.com/letter_avatar/pop_black/32/5_5575768a8748004e209b776fc1b2916d.png) [@pop\_black](https://community.unix.com/u/pop_black)\
**Post date:** [September 12, 2006, 7:45am UTC](https://community.unix.com/t/how-to-change-uname-output/165018/3 "2006-09-12T07:45:17Z")

</div>

I want use fake uname 😉  
anyone can guide?

---

<div class="post-metadata">

**Author:** ![Perderabo](https://community.unix.com/user_avatar/community.unix.com/perderabo/32/27_2.png) [@Perderabo](https://community.unix.com/u/Perderabo)\
**Post date:** [September 12, 2006, 1:02pm UTC](https://community.unix.com/t/how-to-change-uname-output/165018/4 "2006-09-12T13:02:02Z")

</div>

> [@pop\_black](#):
>
> I want use fake uname 😉  
> anyone can guide?

You basicly provided the answer in your first post. Replace the uname command with your own script.
