LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 03-24-2004, 09:38 AM   #1
Vnet1
LQ Newbie
 
Registered: Mar 2004
Posts: 1

Rep: Reputation: 0
Question Executing files in a terminal by default


Hi im new to linux and KDE.

Im wondering why I can only exec a file from the terminal by typing "./myprog". Whenever I type in "myprog" it says the command is not found. Can I change this? Also can I change what happens when a file is double clicked on the KDE desktop to automatically run in a terminal window.
 
Old 03-24-2004, 09:52 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Seems this question has been popping up lately.
./ is a shortcut for current working directory.

BASH does not search the current working directory first. If your current working directory is not in your environment path then you will get a command not found error.

You can add the a directory to your path in the bashrc file.
 
Old 03-24-2004, 12:54 PM   #3
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
"can I change what happens when a file is double clicked on the KDE desktop to automatically run in a terminal window"

You can probably change the command in the icon's properties (i'm not an icon person, so i'm a bit rusty here). If the command is originally "mutt" you'd change it to "aterm -e mutt"
This is only if the icon is a link, though (which i assume it is)...if it's the actual program file you'd probably need to adjust the file associations for that specific application.
 
  


Reply



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
executing shell script in terminal directly with a double click kushalkoolwal Programming 15 11-26-2012 02:32 PM
executing a program in new terminal? kashifbilal Programming 7 04-26-2004 04:52 AM
Executing programs from a terminal window subzero0 Linux - General 0 09-26-2003 12:36 PM
help executing files safil Linux - Newbie 7 09-03-2003 01:51 AM
executing files jiggaracci Linux - General 8 10-13-2002 01:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:19 AM.

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
Open Source Consulting | Domain Registration