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.
Pixellany, could you direct me to source where I could learn more about file paths and their interpretation. I have learnt thru trial and error (right click on an appl shortcut launcher and under properties it shows you the path to the application i.e. firefox %u, in the case of firefox. I was wondering what that meant and whther we coul duse this ofrmat for other instances where we have to specify a file path to prog launching.
No particular reference comes to mind--its in all the books I have read.
Two kind of paths---relative and absolute:
Relative (ie from where you are): Lets say you want the "frammus" file:
If it is in the current directory: cat frammus
If it is one up: cat ../frammus
If it is in another directory at the same level--eg "otherdir": cat ../otherdir/frammus
Similarly, to cd to subdirectory "stuff":
cd stuff
cd ../stuff
cd ../otherdir/stuff
Absolute paths always start at root, and list all the intermediate directories, so if frammus is in "otherdir", which is in your home folder (you are "smiley"), then you would get to frammus with:
cat /root/home/smiley/otherdir/frammus
If you are running executable files, the system will Look in the PATH variable first. You can bypass this behavior by specifying an absolute or relative path. For example, you often see ./command This means run command in the current directory---and dont check PATH.
to see what is in PATH, type echo $PATH
This should give you the general idea---play with it and it will start to make sense.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.