access directory outside of home directory?
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? |
cd /applications ?
|
If you try:
Code:
echo $PATH If not, than as bakdong suggests, you can change directory (cd) to path name (/path/to/application) |
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?
Evo2. |
When I type:
Code:
cd/applications Code:
username-MacBook-Pro:~ username$ Code:
username-MacBook-Pro:applications username$ |
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: Code:
<hostname>:<current directory> <username>$ |
You're seeing the current directory and the user you are logged into. What is the output of pwd, and whoami?
pwd username-MacBook-Pro:applications whoami username and the $ sign signifies the account doesn't have root privileges. btw, cd has to have a space after it. cd/applications will always give an error. |
Thanks for your responses. I see now that my question really should have been: what does the prompt show me.
Like I said, very limited experience. |
All times are GMT -5. The time now is 01:49 AM. |