Another question: Should I open electrum first and from the menu open some terminal to execute these commands? or do I have to open the regular Linux terminal?
Electrum should be opened with those command line options.
In the terminal, open electrum with the "
-D ELECTRUM_PATH" global command line option (
command depends on how you installed Electrum);
e.g.:
$ ./run_electrum -D ELECTRUM_PATHAnd also do I need to copy the content of /.electrum to the new directory? or is it created automatically?
A fresh data directory will be created; if you want to keep your old settings and wallet, copy it.