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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Is it necessary to always type the full path name to run an executable in a shell? In the labs, I've always been able to just the program, but I installed Mandrake 10 at home, and when I type just the file name, which is hw3, I get "bash: hw3: command not found," but it works when I type the full pathname /home/myusername/Desktop/hw3/hw3
It won't work with any other programs I compile either (command used was g++ Queue.cpp Stack.cpp hw3.cpp -o hw3, for what it's worth. When I type ls, I get hw3* with an asterisk after it, and it is in green...weird.
you don't have to call the whole path every time...
If you are the the directory with the programm you would like to call, run it this way:
If you are not in the directory you wether have to call it with the pathname or you put the path to the programm into your environment-variable named $PATH ... it is set in .bashrc or .bash_profile I think. So just add path's as needed.
If you compile a programm, you can test-run it in it's directory like I said above. But if you install the programm ("make install"), it will go to /usr/bin or /usr/local/bin, and those should be in your path.
Last edited by theonebeyond; 10-26-2004 at 01:54 AM.
so, at the computer lab when i haven't been having to type ./ in front of stuff, what's the deal with that? (just curious) maybe they assumed we'd all be s like me and it'd be too tricky so they aliased it somehow? heh
Edit: Hey, while I'm at it, is there a bash command equivalent to the DOS cls (clear screen) command? I like to free myself of my mess occasionally.
The only way I know to get rid of the ./ (which is a path too) is to put the dir with the programms into the $PATH-variable ... don't know any other way. So if you run programms without any path in front of it, it is propably stored in /usr/bin or /usr/local/bin or similar or maybe in ~/bin.
If you enter command/program name (without the path), the system will look for it in the folders specified in the PATH. If you enter ./command/program name, the system will look for it in your current folder.