Question

What command would you use to find out which libraries are linked to the /bin/znew executable...

What command would you use to find out which libraries are linked to the /bin/znew executable program?

            When you ran this command what message did you receive on the console?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

INFORMATION ABOUT: "ldd" command

* we can use ldd command to find out which shared libraries are linked to the executables.

* This ldd command invokes dynamic linker to find out library dependencies of an executable program.

> $ ldd /path/to/program

*Note:-This ldd command is NOT recommended to run with any untrusted third-party executable which can leads to security risks it directly invokes the executable to identify its library dependencies.

*we can use a safer way in order to know the dependencies of an unknown executable program use the following command.

$ objdump -p /path/to/program | grep NEEDED

On linux, we can use the following which works better than ldd when the executable uses a non-default loader.

lsof -P -T -p Application_PID.

These are some methods to know the libraries are linked to the executable programs. ;)

I am attaching the screenshots you can refer to them.$ldd /usr/bin/ssh inux-vdso. So.1=> (0x00007 ffff83fe000) libselinux . so. 1-> /lib/x86-64-linux-gnu/libselinux . so. 1 (6x00007f74f3904θ00) libcrypto. so . 1.0.0 => /lib/x86-64-linux-gnu/libcrypto, so. 1.0.0 (6x00007f74f352a000) libdl.so.2/lib/x86_64-linux-gnu/libdl.so.2 (ex00007f74f3325000) libz. so .1 => /lib/x86-64-linux-gnu/libz. so .1 (6x00007174f310c000) libresolv.so.2/lib/x8664-linux-gnu/libresolv.so.2 (ex00007f74f2ef1000) Libgssapi-krb5. so .2 => /usr/lib/x86-64-linux-gnu/libgssapi-krb5. so . 2 (6x88007f74f2caa 00θ ) libc.so.6 >/lib/x86 64-linux-gnu/libc.so.6 (0x00007f74f28e4000) Libpc re . so .3-> /lib/x86-64-linux-gnu/libpcre. so .3 (6x00θ67f74f26a6000) /lib64/ld-linux-x86 . 64 . so . 2 (0x00887 f74f3df1000) libk rb5. so . 3 => /usr/lib/x86-64-linux-gnu/libk rb5 . so.3 (6x00007f74f23da@θθ) libk5crypto. so . 3-> /usr/lib/x86-64-linux-gnu/libk5crypto . so . 3 (6x00007f74f21abeee) libcon-e r r . so . 2 => /lib/x86-64-linux-gnu/libcon_err. so . 2 (0x00007f74f1fa7000) libk rb5support, so.0-> /usr/lib/x86-64-linux-gnu/libk rb5support, so.0 (ΘΧθθ007f74f1d9b 000) Libkeyutils, so. 1-> /lib/x86-64-linux-gnu/libkeyutils. so. 1 (8x00θ67f74f1b97000) libpt h read, so . Θ Ξ> /lib/x86-64-linux-gnu/libpthread, so . θ (0x00007f74f1978000)

Add a comment
Know the answer?
Add Answer to:
What command would you use to find out which libraries are linked to the /bin/znew executable...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • C++ Example 1 of command and output Example 3 of command and output You will create...

    C++ Example 1 of command and output Example 3 of command and output You will create a C++ program that can read the arguments, according to the arguments, your program should output some patterns accordingly. The C++ source codes will become the executable to be tested by the TAs. The result should be outputted to the console. The general call to the executable is as follows in Linux: ./main 1 2 Linux Command: ./main 1 2 Linux Command: ./main 5...

  • In C++ language, need a full executable program!! Build a templated max heap using a linked...

    In C++ language, need a full executable program!! Build a templated max heap using a linked implementation. Insert 100 unique random int’s into the heap. Display the heap. Then, delete the first 50 int’s that were inserted. Display the heap. Keep track of those first 50 int’s using an array or a vector. Display the heap in such a manner that the viewer is convinced that it is a heap. Now, repeat these actions but using an array implementation. Comparing...

  • What does your .profile file say is your default PATH? (what command did you use). What...

    What does your .profile file say is your default PATH? (what command did you use). What is the PATH command syntax to add the directory $HOME/bin to your PATH?

  • please help me to write in PuTTY in which command need to use Create a directory...

    please help me to write in PuTTY in which command need to use Create a directory called CS332 Change to the CS332 directory Create a new directory inside CS332 and name it Lab1 Change to the Lab1 directory Find the current directory using the command “pwd” Create a new file using the touch command by entering “touch file1” List the contents of the Lab1 directory Rename file to new_file1 List the contents of the Lab1 directory Change to the CS332...

  • At the CentOS 6 command line, you want to find out which services are started at...

    At the CentOS 6 command line, you want to find out which services are started at runlevel 5. Explain two ways that you could do this.

  • 2. You are troubleshooting a network connectivity problem. Which command would you use to display the...

    2. You are troubleshooting a network connectivity problem. Which command would you use to display the computer’s local routing table? A. pathping B. netsh C. route D. nslookup 3. You are troubleshooting a network connectivity problem. Which command would help you solve name resolution issues? A. netsh B. pathping C. route D. nslookup You are troubleshooting a network connectivity problem. Which command allows you to modify a computer’s network configuration? A. nslookup B. netsh C. pathping D. route You need...

  • #1. Single linked list - find... Extra info/hint? It's free For this problem, I have a...

    #1. Single linked list - find... Extra info/hint? It's free For this problem, I have a complete linked list program which supports the following commands from the user: insert, display, delete, average, find, insertBefore, insertAfter. insert allows them to insert a number into the current list, display will display the numbers in the current list etc. The program is complete except that I have removed the body of the method for find. Given the following class for the nodes in...

  • * C PROGRAMMING* Outcomes: Demonstrate the ability to create and use linked lists in dynamic memory...

    * C PROGRAMMING* Outcomes: Demonstrate the ability to create and use linked lists in dynamic memory Demonstrate the ability to add nodes and remove nodes from a linked list of structs Program Specifications: Write a program that creates the following struct (you can give it whatever name you want): char name[100]; int age; float weight; Create the following menu system: Add a Record Display All Records Quit When the user selects (1) you will prompt them for a name, age,...

  • 2. Create a directory using “mkdir” and change into that directory using “cd”. Next, create another...

    2. Create a directory using “mkdir” and change into that directory using “cd”. Next, create another directory within the new directory and then change into that directory. Now, run cdwithout any arguments, then run pwd. What do you conclude about the cd command when run with no arguments? 3. You won't find the set command in either /bin or /usr/bin, or in any directory listed in the PATH setting. How is it executed then? (That is, if there is no...

  • On your Fedora Linux virtual machine, switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and...

    On your Fedora Linux virtual machine, switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of LNXrocks!. At the command prompt, type cat /etc/shadow and press Enter. Record the encrypted password for bozo’s user account. At the command prompt, type passwd –l bozo and press Enter to lock bozo’s user account. At the command prompt, type cat /etc/shadow and press Enter. What has been changed...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT