102.3 Manage shared libraries Flashcards

1
Q

What is a shared library?

A

A shared library is a file containing functionality that other apps can use.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the extension of shared libraries?

A

.so (shared object)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What quality do .so files have?

A

They are dynamic shared libraries

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a file that ends in .a?

A

It is a statically linked library file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a statically linked library file compiled for?

A

It is compiled for applications that need to make sure that when they call out to a particular function that it is the same version of the function every time it calls it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What command prints out shared object libraries used by a binary file (an app or program)?

A

ldd pathtoprogram

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What command lists the most recently used libraries?

A

ldconfig

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which is the configuration file that points to directories and other config files that hold references to library directory locations?

A

/etc/ld.so.conf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What do the /lib and /lib64 directories contain?

A

They contain library files that contain code shared to other applications in the system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What location in the FS can you find shared libraries on?

A
/lib
/usr/lib (for 32bit systems)
/usr/lib64 (for 64bit systems)
/usr/local/lib
/usr/share
How well did you know this?
1
Not at all
2
3
4
5
Perfectly