Computing.Net > Forums > Unix > /bin/pwd against pwd

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

/bin/pwd against pwd

Reply to Message Icon

Name: frank dolivka
Date: February 10, 2005 at 07:35:39 Pacific
OS: AIX
CPU/Ram: RS6000
Comment:

Hi,

I get different results when I execute pwd with full path.

If I execute in my home dir the pwd command.
edckeon1-a1xrdb1-/u/a1xrdb1>pwd
/u/a1xrdb1
edckeon1-a1xrdb1-/u/a1xrdb1>which pwd
/usr/bin/pwd
edckeon1-a1xrdb1-/u/a1xrdb1>/usr/bin/pwd
/home/a1xrdb1
edckeon1-a1xrdb1-/u/a1xrdb1>ls -ld /u
lrwxrwxrwx 1 bin bin 5 Nov 15 2003 /u -> /home

I know that /u is just a link to /home but why do I get different output from the same command ?

Any help is welcome.
Thanks in advance Frank Gerigk


Regards
Frank Dolivka
No Risk No Fun




Sponsored Link
Ads by Google

Response Number 1
Name: vgersh99
Date: February 12, 2005 at 09:31:02 Pacific
Reply:

'pwd' is a built-in for ksh/bash.

'man yourShell' and search for 'pwd'.

vlad
#include<disclaimer.h>


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: /bin/pwd against pwd

FTP files in an interval www.computing.net/answers/unix/ftp-files-in-an-interval/5308.html

Nested while loop www.computing.net/answers/unix/nested-while-loop/7684.html

tired of 'pwd' www.computing.net/answers/unix/tired-of-pwd/4452.html