The English name Joshua is a rendering of the Hebrew 'Yehoshua', meaning 'Jehovah is salvation'.
'Jesus' is the English of the Greek transliteration of 'Yehoshua' via Aramaic.
So the name 'Jesus' is the same as Joshua meaning 'Jehovah is salvation'.
Matt 1:21 She will give birth to a son, and you are to give him the name Jesus, because he will save his people from their sins.'
So while Joshua saved the Israelites by leading them from the land of slavery to the Promised Land, Jesus saves 'all who believe' from a much greater slavery – that of slavery to sin.
John 8:34 Jesus replied, 'I tell you the truth, everyone who sins is a slave to sin. 35 Now a slave has no permanent place in the family, but a son belongs to it forever. 36 So if the Son sets you free, you will be free indeed.'