difference between /usr/lib/modules and /lib/modules
Valdis Kl=?utf-8?Q?=c4=93?=tnieks
valdis.kletnieks at vt.edu
Sat Mar 21 23:36:45 EDT 2020
On Fri, 20 Mar 2020 12:11:52 +0100, Valentin VidiD <vvidic at 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...)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20200321/d88d5b0a/attachment.sig>
More information about the Kernelnewbies
mailing list