I have no knowledge about Bitcoin Core and attempted my first transaction, which failed due to low fee due to a basic math error. (Did not notice it was per kilobyte rather than per byte.) It is currently stuck on chain, in its unconfirmed position. I see that I likely had the "Replace-by-fee" option enabled.
How does one trigger an RBF? I have attempted searching around but could not find a definite "guide" on how to perform this in Bitcoin Core. To my understanding I simply send a new transaction with a higher fee to the same recipient and it should replace the old one?
Also, when sending this small transaction (~36k sat), I viewed the txid on explorer and saw that my entire balance was sent, with the remaining BTC being sent to a different address. What is the function behind this?
Hopefully someone could explain this to me in a newbie friendly manner?