Make an Alias command
I made an Alias command and it disappears.......
How to make it stay forever?
It looks like you're new here. If you want to get involved, click one of these buttons!
I made an Alias command and it disappears.......
How to make it stay forever?
Comments
You know, some of you guys need to consider your audience before you make comments like this.
You made an alias command how? Where?
We can't read your mind.
oh, sorry.....
I made an alias command to do this:
zcat /var/log/user.log.3.gz >> /tmp/kiwi.log;
zcat /var/log/user.log.2.gz >> /tmp/kiwi.log;
cat /var/log/user.log.1 >> /tmp/kiwi.log;
cat /var/log/user.log >> /tmp/kiwi.log;
#Show everything that has 'leaving' in the line grep -i leaving
#Don't Show anything that has 'kf6vo' in the line grep -vi kf6vo
#Don't Show anything that has '192.168.254.*' in the line grep -vi 192.168.254.*
#IE. My Local Intranet address's of my computers that I use to access my Kiwisdr
#Don't Show anything that has '127.0.0.1' in the line grep -vi 127.0.0.1
cat /tmp/kiwi.log | grep -i leaving | grep -vi kf6vo | grep -vi 192.168.254.* | grep -vi 127.0.0.1 >> /tmp/kiwi-users.log
#Delete User List:
#rm -f /tmp/kiwi.log
to see the users of where there from and to see what frequency's they want to hear...
I used this to do alias commands.... :
and saved it in bash... but it is gone now..... I did something wrong....
@ShaneBrook
Assuming you only typed the alias command in the shell?
You have to put them in .bashrc to make them permanent. That file is loaded duringn login. There you will also find the definition of the kiwi-specific aliases.
I did save in .bashrc, after reboot or update it disappeared. I listed all alias and it was gone.
where did it go?
/root/.bashrc can be overwritten by a Kiwi update as that file is considered to be part of the Kiwi distro. Put your private shell customizations in /root/.bashrc.local
OK, Thanks a lot....