How to see real pwd instead of symbolic under ksh

Shaun.Racine_at_intier.com
Date: 04/28/03

  • Next message: Shaun.Racine_at_intier.com: "SUMMARY: How to see real pwd instead of symbolic under ksh"
    Date: Mon, 28 Apr 2003 14:34:48 +0100
    To: tru64-unix-managers@ornl.gov
    
    

    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


  • Next message: Shaun.Racine_at_intier.com: "SUMMARY: How to see real pwd instead of symbolic under ksh"

    Relevant Pages

    • Re: Cron logs
      ... the exact same command in the terminal works fine, ... but are you supplying the full path to the wget command in ... I have no idea what the real path actually is, ... "Ah, gentle dames, it gars me greet, To think how monie councels sweet, ...
      (uk.comp.sys.mac)
    • Re: Symbolic Link
      ... That's good if you have the readlink command (and if you don't, ... easy enought to install GNU coreutils). ... some other shells), and it behaves differently than /bin/pwd; ... the command "pwd" don't gives the real path. ...
      (comp.unix.solaris)
    • Re: How to emulate the Unix command "which"
      ... The solution suggested by Chris is just good for me ... I give up the use of the system "which" command because it seems that on ... HPUX it reports the real path) ...
      (comp.lang.perl.misc)
    • output to the screen?
      ... I was wonder if its possible to print the command to the screen so you ... out the variables as they are stepping. ... For example do puts: <the ... de-bugging process.???? ...
      (comp.lang.ruby)