Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
birdiesanders
· 2y ago · 0 comments
Those are equivalent.
Comments
[–]
execat
2y ago
No. ~etc is equivalent to /home/etc. ~/etc is the same as /home/<current user>/etc.
[–]
michaelmior
2y 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`.
[–]
ijustlovemath
2y ago
Try it for yourself:
[ /home/etc = ~/etc ] || echo theyre different