difference between /usr/lib/modules and /lib/modules

Valentin Vidić vvidic at valentin-vidic.from.hr
Fri Mar 20 07:11:52 EDT 2020


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

-- 
Valentin



More information about the Kernelnewbies mailing list