({{, (RefLink[$LocalSymbolBase, paclet:ref/$LocalSymbolBase]) 
gives the base directory for storing values of (RefLink[LocalSymbol, paclet:ref/LocalSymbol]) objects.}})

OpenersNotesSection(Spacer1)Details

(RefLink[$LocalSymbolBase, paclet:ref/$LocalSymbolBase]) is typically the LocalSymbols subdirectory of (RefLink[$LocalBase, paclet:ref/$LocalBase]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (4)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

(RefLink[$LocalSymbolBase, paclet:ref/$LocalSymbolBase]) is a subdirectory of (RefLink[$LocalBase, paclet:ref/$LocalBase]):

$LocalSymbolBase

$LocalBase

OpenersExampleSection2(Spacer1)Properties & Relations  (3)

Local symbols can be saved to any file:

LocalSymbol["/tmp/testsym"]=42

FileType["/tmp/testsym"]

The directory where a symbol should be saved can be given as the second argument:

mybase=FileNameJoin[{$TemporaryDirectory,"symbols"}];

LocalSymbol["sym1",mybase]=17

The default base is (RefLink[$LocalSymbolBase, paclet:ref/$LocalSymbolBase]):

LocalSymbol["sym1"]=18

{LocalSymbol["sym1",mybase],LocalSymbol["sym1",$LocalSymbolBase]}

(RefLink[$CloudSymbolBase, paclet:ref/$CloudSymbolBase]) is the default location for symbols stored in the cloud:

$CloudSymbolBase

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[LocalSymbol, paclet:ref/LocalSymbol])  ▪  (RefLink[$LocalBase, paclet:ref/$LocalBase])  ▪  (RefLink[LocalObjects, paclet:ref/LocalObjects])  ▪  (RefLink[$CloudSymbolBase, paclet:ref/$CloudSymbolBase])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Wolfram System Setup, paclet:guide/WolframSystemSetup])}, {▪(RefLinkPlain[Local Objects, paclet:guide/LocalObjects])}})}})