[CentOS] CentOS6 and tilde expansion

m.roth at 5-cent.us m.roth at 5-cent.us
Thu Jan 5 16:23:01 UTC 2012


isdtor wrote:
> Set up NIS and autofs on this new CentOS6 box, but it seems tilde
> expansion no longer works in bash?
>
> [root at frodo ~]# cd ~john
> -bash: cd: ~john: No such file or directory
> [root at frodo ~]# cd /home/john
<snip>
Works jes' fine for me. There's something either in your environment, or
some option that's gotten munged. Please note what you pasted: the PS1
shows you being in your home... with a tilde.

        mark




More information about the CentOS mailing list