Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-08-2005, 05:06 AM   #1
Registered: Dec 2004
Distribution: FC3, RH enterprise 3
Posts: 46

Rep: Reputation: 15
opening a program from shell

i am unable to open some programs without cd-ing into the directory concerned. what shall be done to open a program directly from the shell whichever the pwd is?
thanking you
Old 03-08-2005, 05:10 AM   #2
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
Create a symlink to the file in /usr/local/bin. Like so
ln -s /path/to/executable /usr/local/bin/executable
Old 03-08-2005, 07:38 AM   #3
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
Either that or type the full path to the executable.


put program directory in your path

put this in your .bash_profile


Last edited by Boow; 03-08-2005 at 07:39 AM.
Old 03-08-2005, 07:40 AM   #4
Registered: Oct 2003
Location: Ohio
Distribution: Gentoo
Posts: 47

Rep: Reputation: 16
whereis is your friend, also.

whereis program_name

Then just cut and paste the whole path.
Old 03-08-2005, 09:33 AM   #5
Registered: Dec 2004
Distribution: FC3, RH enterprise 3
Posts: 46

Original Poster
Rep: Reputation: 15
thanks a lot for your replies.. it is fine now


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
opening file with .xls on linux shell prompt suchi_s Programming 1 07-28-2004 07:40 AM
Opening file with default application from shell script? bourbon_beast Programming 4 04-13-2004 01:52 AM
Program opening off screen garf12 Linux - Newbie 1 03-06-2004 08:58 PM
Program Not opening Neo22589 Linux - Software 22 03-10-2003 10:32 PM
opening a d/l program purelific Linux - Newbie 4 03-31-2002 11:10 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:20 AM.

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