4 ms·
/home/etc or ~/etc?
by ijustlovemath 2y ago
/home/etc or ~/etc?
- birdiesanders 2y agoThose are equivalent.
- michaelmior 2y agoOn most systems, that is not the case. Typically a user's home directory is `/home/USERNAME` so `~/etc` would be `/home/USERNAME/etc`.
- execat 2y agoNo. ~etc is equivalent to /home/etc. ~/etc is the same as /home/<current user>/etc.
- ijustlovemath 2y agoTry it for yourself: [ /home/etc = ~/etc ] || echo theyre different
- Shorel 2y ago/home/etc It is a backup directory owned by root. The reason is that it sits in the partition that is preserved, and it is outside my user folder, because it is better organized that way.