LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-01-2004, 06:27 AM   #1
jwijesundra
Member
 
Registered: Jun 2004
Posts: 52

Rep: Reputation: 15
How do you start programs without typing ./


I'm pretty new to Linux. I've tried doing some coding using Free Pascal and GCC but to run them I have to type ./ before the program name. Is there anyway to override this?

Thanks
 
Old 07-01-2004, 06:33 AM   #2
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
You can add the current directory (.) to your path.

This is not a recommended practice though as you might run something sometime that you didn't intend to.

A better idea is to keep all your code in a given directory (e.g. ~/bin) and add that to your path.

You can do that in your .profile, if you're using bash, with this line

export PATH=$PATH:$HOME/bin

John

Last edited by jkobrien; 07-30-2004 at 06:28 AM.
 
Old 07-01-2004, 06:36 AM   #3
jwijesundra
Member
 
Registered: Jun 2004
Posts: 52

Original Poster
Rep: Reputation: 15
Thanks

Thanks a lot.
:-)
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting programs to start browser Slackware 5 07-29-2005 09:36 AM
Programs in FluxBox take ages to start or don't start at all hubabuba Slackware 1 02-20-2005 09:21 AM
How to start KDE automaticlly without typing "startx" then "startkde" Jonescity Slackware 8 10-29-2004 09:32 PM
Why i can't start programs!?? FreakboY Linux - Software 5 09-13-2002 02:20 AM
How can I start typing in the commands? Rutnut Linux - Newbie 1 12-13-2000 04:48 AM


All times are GMT -5. The time now is 06:41 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration