Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 07-01-2004, 06:27 AM   #1
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?

Old 07-01-2004, 06:33 AM   #2
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


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

Original Poster
Rep: Reputation: 15

Thanks a lot.


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 > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:35 PM.

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