Managed Shared libraries Flashcards

1
Q

What is a shared library

A

Files containing functionality that other apps can use

Files end in a .so extension for shared object

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

Where can you find a shared library in linux

A

/lib
/usr/lib (for 32bit systems and /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
3
Q

What types of library files are there

A
Dynamic (ends in .so)
Statically linked (ends in .a)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the command ldd do

A

Prints out shared object (library) dependencies

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

What does the command ldconfig do

A

Configures dynamic linker run-time bindings, creates a cache based on library directories and can show you what is currently cached

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

What is stored inside this file /etc/ld/so/config

A

Config file that points to directories and other config files that hold references to library directory locations

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

What is the LD-LIBRARY_PATH

A

Legacy envir. variable that points to a path where library files can be read from

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