public void save(OutputStream out) throws IOException {
    try {
      Properties props = toProperties();
      // don't save maxwidth: it is automatically set based on
      // the terminal configuration
      props.remove(PROPERTY_PREFIX + "maxwidth");
      props.store(out, beeLine.getApplicationTitle());
    } catch (Exception e) {
      beeLine.handleException(e);
    }
  }
The save directory if HOME/.beeline/ on UNIX, and
HOME/beeline/ on Windows.
beeline/src/java/org/apache/hive/beeline/BeeLineOpts.java