In this link, there is the unix command
How to go to this place by using terminal?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
$HOME is your home directory. This is the directory you are in when you start a terminal window. Normal using on Mac (and most unix-like systems, is that your home directory has the same name as your short user name. So if you are Mike Smith, and have a short user name of msmith then the value of
$HOME is (usually)
HOME is an environment variable. If I create a script or a set of directions and use
$HOME instead of
/Volumes/Users/msmith, then that script can be used by other people. When I log in, during the startup process MY
HOME variable is set to
The < > notation means, "Don't type this literally, but find out what the value is, and use that instead. No automatic substitution this time.
In general on Mac and UNIX/Linux/*BSD systems a file in your home directory (possibly other places) that starts with a period contains settings for that software package. So
.matlab is a directory of Matlab settings, startup scripts, this and that.
<version> is replaced by the version number of your Matlab installation. You may have several different Matlab versions.
The easiest way to find this is by typing
In your home directory. I don't have Matlab on my Mac, so I'm only guessing, but you will probably see something like
So if your username was
msmith, you could refer to this file as
~ is another shorthand meaning the 'home directory of'. Often you can just use
~ by itself. As
$HOME/.matlab are two ways of saying the same thing.
If you need to GO there -- to see what else is in that directory, just chop off everything after the last
/ and put
cd in front.
will leave you in the folder containing
The default settings folder in newer MatLAB versions seems to be
$HOME/Library/Application Support/MathWorks/MATLAB/version/ though:
the path to
matlab.prf is then e.g.