[SOLVED] access directory outside of home directory?
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.
I'm using Mac OS X's Terminal.app shell to compile and run Fortran programs. One such program resides outside of my home directory (it is in the Applications folder, which resides on my hard drive but seems to be outside of my home folder).
How can I navigate into this directory using Terminal.app to run the programs that reside there?
Sorry, not sure I understand your post. Are are you asking an OSX question on a linux forum? Or is this a general *nix type question about how to use the command line? Or perhaps something else?
it does indeed change to the applications directory and displays all of it's contents, but I would like to try and understand why. When I change to this directory, this:
Code:
username-MacBook-Pro:~ username$
changes to:
Code:
username-MacBook-Pro:applications username$
In my very limited experience with the command line (just compiling and executing a few fortran code files) I have not seen this, the tilde has always preceded my username. What exactly is happening when I do this?
You appear to simply be showing what your prompt looks like. To find out the current directory (aka "present working directory") you should use the command "pwd".
"~" just means the home directory of the currently logged in user,"~username" means the home directory of the the user "username". Exactly what the prompt shows is a different (but sometimes related) topic.
Some prompts are setup to show what the current directory is. Yours appears to be doing this. It seems to be setup to show:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.