RE: My current directory is lost in a bash shell

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Theo Band <theo.band@xxxxxxxxxxxxxxxxxxx> wrote:

> [thba@vink layout]$ nc script/xw_functions.ample
> NEdit: getcwd() fails: No such file or directory
> NEdit: getcwd() fails: No such file or directory
> [thba@vink layout]$ ll script/xw_functions.ample
> -rw-rw-r-- 1 thba thba 16829 Oct 25 16:59 script/xw_functions.ample
> [thba@vink layout]$ pwd
> /home/thba/workarea/colibri/design/ana/layout
> [thba@vink layout]$ /bin/pwd
> /bin/pwd: cannot get current directory: No such file or directory

This is typical when the directory you are in has been removed out from under
you. Try this:

Log into two shells (or use screen, or whatever), A and B. In A, do "cd ~;
mkdir -p xxx/yyy; cd xxx/yyy; touch 123; ls -l 123". Then, in B, do "cd ~; rm
-rf xxx". Finally, back in A, repeat what you did above, "ls -l 123; pwd;
/bin/pwd". You will find the behavior is the same.

Good luck,

robert

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux