If I gave a name for my wallet (wallet 1) , the file store on my computer 1 , what is the purpose of that file?
That is the actual wallet file that Electrum is accessing while you're using your wallet.
It contains wallet-specific settings, transaction & address history, labels, contacts, invoices, master (
private/public) keys, and others data depending on the wallet type.
if I want to restore the (wallet 1) on another computer2, I made creat new wallet and have already the seed phrase and give it another name say(wallet 2) and there will be file stored on computer2 (wallet 2) and it have all hostrical transaction that I made on wallet 1 computer 1? I am right or not
After syncing to the Bitcoin network via the server that you're connected to, Yes.
But for other data like labels, contacts and active invoices;
you'll need to copy "
wallet_1" file to computer2's 'wallets' folder inside electrum datadir and open it via Electrum's "
File->Open" menu.
There's also a "
LabelSync" plugin if you want to backup your labels (
encrypted) on a server to be restored when you restore your wallet via seed phrase.
Both clients should have the plugin enabled (
Tools->Plugins) for it to apply.