Hacker News new | ask | show | jobs
by birdiesanders 701 days ago
Those are equivalent.
3 comments

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