l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2011 Aug 01 21:31

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Directory name changed out from underneath me.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Directory name changed out from underneath me.

On Mon, Aug 01, 2011 at 08:59:58PM -0500, Chanoch (Ken) Bloom wrote:
> I was just navigating around on one of the machines in my lab, when I
> noticed something wierd: bash is getting the name of one of my
> directories wrong when it tries to print it in the prompt.
> [bloom@zuni ~]$ cd /
> [bloom@zuni /]$ ls
> bin/   etc/         lib/         media/        proc/     srv/  var/
> boot/  home/        lib32/       mnt/          root/     sys/  vmlinuz@
> data/  home-raid/   lib64@       nonexistent/  sbin/     tmp/
> dev/   initrd.img@  lost+found/  opt/          selinux/  usr/
> [bloom@zuni /]$ cd data
> [bloom@zuni dtaa]$ pwd
> /data
> [bloom@zuni dtaa]$ echo ~+
> /data
> [bloom@zuni dtaa]$ mount
> /dev/sda1 on / type ext3 (rw,errors=remount-ro)
> tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
> proc on /proc type proc (rw,noexec,nosuid,nodev)
> sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
> udev on /dev type tmpfs (rw,mode=0755)
> tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
> devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
> fusectl on /sys/fs/fuse/connections type fusectl (rw)
> binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
> nas.lingcog.iit.edu:/home2 on /home-raid type nfs (rw,nosuid,noatime,addr=
> nas.lingcog.iit.edu:/data on /data type nfs (rw,nosuid,noatime,addr=
> It's correctly spelled in the pwd command, and bash's ~+ expansion, and
> also in the mount command (/data happens to be a mountpoint), so
> basically it's correctly spelled everywhere except for the prompt. Any
> ideas why?
What do echo $PWD and echo $PS1 say? $PS1 seems like the next
place to look, and particularly the \w part.
vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.