Y
Hacker News
new
|
ask
|
show
|
jobs
by
birdiesanders
701 days ago
Those are equivalent.
3 comments
execat
701 days ago
No. ~etc is equivalent to /home/etc. ~/etc is the same as /home/<current user>/etc.
link
michaelmior
701 days ago
On most systems, that is not the case. Typically a user's home directory is `/home/USERNAME` so `~/etc` would be `/home/USERNAME/etc`.
link
ijustlovemath
701 days ago
Try it for yourself:
[ /home/etc = ~/etc ] || echo theyre different
link