LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-08-2004, 03:44 AM   #1
pbrian17
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Rep: Reputation: 0
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
 
Old 10-08-2004, 04:06 AM   #2
Read_Icculus
Member
 
Registered: Oct 2002
Distribution: MDK 9.2, Debian
Posts: 74

Rep: Reputation: 16
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.
 
Old 10-09-2004, 03:03 AM   #3
pbrian17
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
running programs jdarvwill Linux - Software 3 10-05-2005 10:15 PM
running programs The Oate Debian 3 08-25-2005 01:17 PM
Running Programs Slayer097 Linux - Newbie 3 02-23-2005 04:43 PM
Running programs OtisLinux Linux - Software 13 01-22-2004 04:07 PM
Help on Running Programs mooreted Linux - Software 3 05-16-2003 10:32 PM


All times are GMT -5. The time now is 08:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration