"cd tomcat" vs. "gotoTom" a directory name issue.
When you do either you go to the same directory. However the directory name is computed differently.
[j-siegel@hoare7 ~]$ pwd
/classes/Java/j-siegel
[j-siegel@hoare7 ~]$ cd tomcat
[j-siegel@hoare7 tomcat]$ pwd
/classes/Java/j-siegel/tomcat
[j-siegel@hoare7 tomcat]$ ls W*
Whoisit.html WhoJSP.html
WEB-INF:
classes lib myothertags.tld mytags.tld web.xml
AND
[j-siegel@hoare7 ~]$ pwd
/classes/Java/j-siegel
[j-siegel@hoare7 ~]$ gotoTom
[j-siegel@hoare7 j-siegel]$ pwd
/var/lib/tomcat/webapps/j-siegel
[j-siegel@hoare7 j-siegel]$ ls W*
Whoisit.html WhoJSP.html
WEB-INF:
classes lib myothertags.tld mytags.tld web.xml
[j-siegel@hoare7 j-siegel]$