On Fri, 20 Mar 2020 12:11:52 +0100, Valentin VidiD <vvidic@valentin-vidic.from.hr> said:
On Fri, Mar 20, 2020 at 10:56:15AM +0000, Bernd Petrovitsch wrote:
Are you sure they are actually different (and don't have e.g. the same inode number)?
Looks like that to me (on Debian):
$ ls -lid /usr/lib/modules /lib/modules 9804 drwxr-xr-x 4 root root 4096 Feb 15 11:31 /lib/modules 9804 drwxr-xr-x 4 root root 4096 Feb 15 11:31 /usr/lib/modules
$ ls -lid /usr/lib /lib 29 lrwxrwxrwx 1 root root 7 Jul 27 2019 /lib -> usr/lib 30 drwxr-xr-x 79 root root 4096 Feb 15 11:27 /usr/lib
So /lib is a symlink to /usr/lib. Fairly common on many distros. (Try 'ls -Lid' instead - the -L option makes it show the target of a symlink rather than the symlink itself...)