9.[d]. ! by possession and conquest in the revealed end. The fourth principle is that at the beginning of the Redemption in our time, i.e., the final redemption in the last generation--all activities must be in accord with one of two lines or paths: one is the line of Ezra and Nehemia; the other is the line of Joshua. Regarding the sentence, [Deut. 11:31] you shall possess it and you shall settle in it, Rabbi Eliyahu, the Vilna Gaon says (in Aderet Eliyahu, on Deut. 11), Because of your merit in taking possession of it, you will dwell in it, and how will you take possession of it, by establishing your claim. How does one establish a claim? This is done by building and planting as is the law in general with regard to possession of land. This is in line with what was done by Ezra and Nehemia. However, when necessary, force may also be used (in this case, there is a kametz under the Het--meaning by force; if there is a hataf-patach under the het, it means by establishing a claim, by possession), and this is in line with what was done by Joshua. The Gaon showed us a wonderful hint regarding this idea, i.e., that according to gematria ! Ezra and Nehemia together equal Joshua  Joshua was a descendant of Efraim ben Joseph, the one who fought Amalek. in gematria, when counting the value of all the letters pronounced when saying the word [that is, ], equals  Sitra Achra. The mission of Joshua son of Nun, a descendant of Efraim, was to fight Amalek. Joshua was the Mashiach ben Yosef, who was supposed to counterattack [lit.: bring the war back to the gates of Jerusalem] at the entrance to the city. Here would be the center of the war against Esau, as it says [Ps. 76:4] there he broke the flames of the bow. This mission of Mashiach ben Yosef was hinted at in the sentence above, [Ps. 76:3] his tabernacle [was/ will be] in Shalem and his dwelling-place in Zion.
23.Yosef is still alive. Our forefathers and many of the Prophets of God, kings of Israel, and many of the Tannaim and Amoraim, many of the great men of Israel and the men of deeds in every generation were in the line of Mashiach ben Yosef. The first one was our forefather Abraham, as revealed in the words, whereby will I know that I will inherit it? As known, wherever the term inheritance is used in connection with Eretz Israel, it is in the line of Mashiach ben Yosef.This is hinted at in the word I will inherit which in gematria equals Mashiach ben Yosef . Our forefather Abraham started the beginning of the first Redemption, that is the redemption of the holiness from below, which is the land of the Land of Israel [Eretz Israel]. Our forefather Isaac was in the line of the Mashiach ben Yosef from the time he was bound as a sacrifice. His name even hints at " end of life. Our forefather Jacob was in the line of Mashiach ben Yosef from the time he fought the Angel of Esau, after which it says, Jacob came to Shalem. Shalem, to Succoth. Judah was in the same line, from the time he saved Yosef; Yosef, from the time of his first dream; Moshe Rebbeinu, from the time he took along the bones of Yosef. Joshua son of Nun was the first who fought in the battle of the Lord against Amalek.
Both Saul and David fought in the war of the Lord. And it is known that every war of the Lord is considered to be in the line of Mashiach ben Yosef, etc., etc. During recent generations, the Holy Ari and his special student, the holy and pure R. Chaim Vital, and the Holy Rabbi, author of Or Hachaim were also in the line of Mashiach ben Yosef as is known. And in the last generation, it was the Gaon, our Rabbi, Rabbi Eliyahu, light of Mashiach ben Yosef whose light goes before us, and whose light increases until the day will be established. A few of his students, who fulfilled his commandment regarding the vision of Zion to accept and be inspired with his spirit and his great light, are also in the line of Mashiach ben Yosef.