The console said "Executing command using ... wallet", making it appear only one is affected.
I chose another wallet file and executed the same command again.
Despite of what it says, does it only affect the single selected wallet or all of them?
The message will appear regardless if the command used is a wallet rpc or not, if you're using the GUI.
That's just a note that the said wallet is selected in the drop-down menu above it.
If no wallet is selected, it will say "
Executing command without any wallet" instead.
Reference code:
github.com/bitcoin/bitcoin/blob/master/src/qt/rpcconsole.cpp#L1031-L1038
To see if a command is wallet-specific, enter
help in the console;
Those under
== Wallet == are the commands that affects only the selected wallet.