Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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)?
Howdy,
1)
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
HTH
Ian
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.