How would you check if an Ethereum node is in sync with the latest block?

First of all, this might be a stupid question, I'm kinda a newbie and I was wondering.
AFAIK you can tell that a node is synced with the latest block if their block number matches the latest block number, right? Also how would you check it?
submitted by /u/CptainLevi
[link] [comments]