Is Zhuge Liang's Commandment the same as Nephew Commandment?

Compared with Commandments and Nephew Commandments, Zhuge Liang has some similarities in writing (educating them to have lofty aspirations, abstain from lust, have a peaceful mind, cherish time and attach importance to learning).

The content is briefly analyzed as follows:

The Commandment written by Zhuge Liang, the prime minister of Shu, can be said to be a masterpiece that has been passed down through the ages, and it is often used as the motto of bureaucrats in past dynasties. Zhuge Liang said: "A gentleman's trip is to cultivate one's morality by quietness and frugality. If you don't stay in the garden, you will be unclear, restless and not far away. You must be quiet before you can study. If you don't learn, you can't be versatile, and if you don't want to learn, you can't succeed. If you are slow, you can't be energetic, and if you are dangerous, you can't be radical. Time goes by, meaning goes by, and then becomes withered, not meeting the world, and staying in a poor house sadly. What will happen?

Zhuge Liang not only wrote to his son to persuade him to strengthen his moral cultivation, but also wrote to his nephew to teach him how to be a man.

He wrote in the book of my nephew's commandments: "A husband should aim high, worship sages, abandon lust and doubt, so that ordinary people's ambitions can be revealed and they feel sad." Endure flexion and extension, remove details, ask questions extensively, except being too stingy. Although I have stayed for a long time, why bother to harm the beauty, why bother to suffer it? If the will is not strong and the intention is not generous, it will be vulgar, silently tied to the feelings, and it will be indecent forever in the ordinary. "We warn children to make friends with people they know, not snobbish friends, because" snobbish friends are hard to travel far ". Only friends who know each other will make friendship last forever, and friends in need will see the truth.

For reference.