[student@h006 public_html]$ pwd /home/student/public_html [student@h006 public_html]$ cd /tmp [student@h006 tmp]$ pwd /tmp [student@h006 tmp]$ cd [student@h006 ~]$ pwd /home/student
bash では、環境変数PWDにカレントディレクトリがセットされているので、
[student@h006 ~]$ echo $PWD /home/studentとしても、同じ値を求めることができます。