How to see real pwd instead of symbolic under ksh

From: Shaun.Racine@intier.com
Date: Mon Apr 28 2003 - 09:34:48 EDT


Hi all,

TRU64 v5.1A pk4 non-clustered

Under ksh, when I cd /usr/spool/cron and pwd I see "/usr/spool/cron",
although I am really in /var/cluster/members/{memb}/spool/cron/.

Is there a command to see the real path of a directory, without stepping
through each one in turn with ls -ld?

Background: I backed up /, /usr & /var to a new on-line disk partitions
called /exroot, /exusr & /exvar before trashing /, /usr & /var and
reinstalling Unix. When I wanted the original cron jobs I instinctively
went to /exusr/spool/cron, but found it empty because I was really in the
new, clean /var partition. I should have gone to /exvar/spool/cron, didn't
occur to me until following week (duh!).

TIA
Shaun Racine



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:17 EDT