achow101 already answered your question.
In case you did not found out how to use RPC commands:
- Start the bitcoin daemon (bitcoin -daemon) from command line
- Then use the bitcoin-cli for RPC calls
Command to scan from height X to height Y:
bitcoin-cli rescanblockchain X YBoth arguments (start-/stop height) are optional.
The documentation (with examples) can be found
here.