Used by thousands of professionals since 1999       Register or sign in
Contractor Solutions
Welcome guest. To get the most out of our site, please sign up as a candidate or apply for a recruiter account. Registration is fast and simple and gives you access to the facilities available to make recruitment easier.

Linux Interview Answers

  1. Explain the difference between a static library and a dynamic library?

    Static library is linked into the executable, while a dynamic library (or shared object) is loaded while the executable has started.

  2. How do you create a static library?

    If you have a collection of object (.o) files, you can do it by running ar command. Generally a static library has a .a extension, and you can link it into an executable by providing -l libraryname to gcc.

  3. Where should the developed libraries be installed on the system?

    GNU recommends /usr/local/bin for binaries and /usr/local/lib for libraries.

  4. What is LD_LIBRARY_PATH?

    It’s an environment variable that lists all the directories which should be searches for libraries before the standard directories are searched.

  5. How do you create a shared library?

    Create the object file with -fPIC for position-independent code, then run gcc with -shared option.

  6. How do you install a shared library?

    Run ldconfig in the standard directory that it’s installed in.

  7. What does ldd do?

    It shows a list of installed shared libraries.

  8. How do you dynamically load a library in your app?

    Use dlopen()

  9. What does nm command do?

    It reports the list of symbols in a given library.

Click on the link to search and apply for Linux jobs

Answers sourced from www.techinterviews.com

Previous Page

Help On This Page

Tags/Keywords

Our innovative and custom-written search engine places an importance upon tags chosen to be representative of the content, however it also indexes all content to provide you with the most relevant results

Please note that the Quick Search operates as Boolean search, so you can narrow your search by including operators such as "and" if more than one term is required to feature in the results. "+" will also work in the same way. I.e. "php and mysql london" is the same as "+php +mysql london".

The operator "or" does not need to be included as this is the default, i.e. "php or mysql or london" is the same as "php mysql london". You can also use "not" or - to exclude terms.

About | Contact | Privacy | Advertise on Technojobs | Terms & Conditions | Technical Recruitment | Links | IT Jobs