<div dir="ltr">Hi Professor,<div><br></div><div>When &quot;cd ~&quot; is executed, how does shell translate this &quot;~&quot; to username?</div><div>I have unset HOME, USER and LOGNAME from environment, but shell still can translate ~ to /home/yzhan14(my log name).</div><div><br></div><div><br></div><div>Thank you!</div><div>Yanqiao </div></div>