Hacker News new | past | comments | ask | show | jobs | submit login

Those are equivalent.



No. ~etc is equivalent to /home/etc. ~/etc is the same as /home/<current user>/etc.


On most systems, that is not the case. Typically a user's home directory is `/home/USERNAME` so `~/etc` would be `/home/USERNAME/etc`.


Try it for yourself:

[ /home/etc = ~/etc ] || echo theyre different




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: