Visit the LQ Articles and Editorials section
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 12-06-2002, 09:10 AM   #1
LQ Newbie
Registered: Oct 2002
Posts: 26

Rep: Reputation: 15
Three Simple Questions

These should be easy but I can't figure them out.

1. On my university's machines in an Xterm window, if you want to run a script in the current directory called compile, all you have to do is type 'compile' at the prompt. On my RH8 machine at home, you have to type './compile'. Why, and how do I change it?

2. Is there any huge difference in the functionality of the gcc java and javac that comes with RH8, and the Sun SDK versions? Will it affect my very basic programs?

3. When I had RH7.3, there was a useful thing called KPackage. I can't find it even though I've done a full install. Where did it go? Similarly, if you try to install a package and dependencies are missing, what do you do? I tend to search for it on Google but is there a better way (or even an automated process)?

Old 12-06-2002, 10:40 AM   #2
Senior Member
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345

Rep: Reputation: 57
I'm not sure if this would work, but if you put $PWD in at the end of your PATH it might work.
Old 12-06-2002, 10:53 AM   #3
Registered: Dec 2002
Location: North West England
Distribution: fedora
Posts: 52

Rep: Reputation: 15
you can add "." to your path as in
export PATH=.:$PATH ( takes ./<file> before /bin/<file> etc )
but I wouldn't reccomend this for your root account as some fool could put a file called "ls" in their home dir that contains "cd / ; rm -rf *" and get you to cd into it , run ls and bang....

If you are the only user and you know that you will run the script in $(pwd) then Ok. You are root, you have the power
I personally like ./<file> - at least you know what you are running . Try
$ type <file>
to find out where in the path <file> is
2) & 3) ?? Haven't a scooby
Old 01-04-2003, 04:06 PM   #4
LQ Guru
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 47
For automatic dep resolution check out

it doesn't always work, but when it does it works a charm
Old 01-04-2003, 06:49 PM   #5
Registered: Dec 2002
Location: China
Distribution: Arch
Posts: 359

Rep: Reputation: 33
as you are using RedHat you should be able to find most things on


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
Simple Questions...Hopfully Simple Answers. caps_phisto Linux - General 3 12-21-2004 12:40 PM
3 simple questions dave bean Linux - Newbie 5 09-29-2003 08:20 PM
simple questions safrout Linux - Hardware 4 12-08-2002 10:00 AM
Three simple questions ErikD Linux - Software 2 10-15-2001 09:03 AM
Two simple questions M.I. Linux - General 3 07-12-2001 10:27 AM

All times are GMT -5. The time now is 01:19 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