In order to know last block hash in bitcoin I can just call
from command line.
Is there something like that in ethereum or I should use RPC and curl?
When your node is running, you can use:
geth --exec 'eth.getBlock(eth.blockNumber).hash' attach
If it is not running, then there is no way to be synchronized, so you cannot get this information.