Navigation

Operators and Keywords

Function List:

C++ API

: prefdir
: prefdir (1)
: dir = prefdir

Return the directory that holds the preferences for Octave.

Examples:

Display the preferences directory

prefdir

Change to the preferences folder

cd (prefdir)

If called with an argument, the preferences directory is created if it doesn’t already exist.

See also: getpref, setpref, addpref, rmpref, ispref.

Package: octave