title: any programming ways to save variable of program in linux?
body: <p>I only have one machine and want to save some variable values like <code>a = 3</code> in linux. I can <strong>resume</strong> the last progress if <strong>power-off</strong> suddently happens.</p>
  
  <p>I can only figure out two ways, one is to save in <strong>files</strong> and the other one is save to <strong>DB</strong>.</p>
  
  <p>Are there any special ways to do like this <strong><em>without</em></strong> saving in files or db? any programming language is ok.</p>