This question already has an answer here:
I'm reading Peter Orner's The Raft and find a sentence as this
I told the boy to can it.
From the Chinese translation, it seems "can it" means "close your mouth" just liking "shut up". Is it truly? And what is the difference of "can it" and "shut up"?