LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   HElP Running Programs (https://www.linuxquestions.org/questions/linux-newbie-8/help-running-programs-240137/)

pbrian17 10-08-2004 03:44 AM

HElP Running Programs
 
Hey i am a complete newbie to linux so please if u could explain in details.....

I just installed limewire i installed it to usr/local/limewire it gave me a link in my root directoy
it wont work with the terminal or runprogram. is there a file i could edit to make it when i type limewire in the terminal run the program which is in /usr/local/limewire/Limewire

that and what about changing the commands of other programs like xine to xi

thanks
please help

Brian

Read_Icculus 10-08-2004 04:06 AM

You can do this by using the ability to "ailias" commands. Just edit your .bash_profile that is in your HOME directory, here is the format -

alias owndir='find -type d -exec chmod -v 0755 {} \;'
alias ownfiles='find -type f -exec chmod -v 0644 {} \;'
alias m='mc -b'
alias pss='ps -A u'
alias fingerprint='metaflac --show-md5sum'
alias sbecheck='shntool len'

so for your limewire command your alias that you add would be this -

alias limewire='/usr/local/limewire/Limewire'

xine would be -

alias xi='xine'

You can add as many of these as you want to your profile, or bashrc file. Just keep it in that format.

pbrian17 10-09-2004 03:03 AM

ok i looked in my root which is my home directory and couldnt find .bashrc or .bash_profile but i did an emacs in the terminal and got this

.bashrc

#.bashrc

# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

#Source global definitions
if [ -f /etc/bashrc ]: then
. /etc/basrc
fi

bash_profile

#.bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
.~/.bashrc
fi

#User specif enviroment and startup programs

PATH=$PATH:$HOME/bin
BASH_ENV=$HOME/.bashrc
USERNAME="root"

export USERNAME BASH_ENV PATH



now how would i edit these files to be able to add an alias and remove them. like to add xi for xine and how to remove it. same for limewire.

thanks for your help sorry about the misunderstanding


All times are GMT -5. The time now is 02:39 AM.