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?

  • 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.

  • #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...

  • 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...

  • Copy/Paste your script from 5b here. 4. Let's look at a more complicated script executable. a....

    Copy/Paste your script from 5b here. 4. Let's look at a more complicated script executable. a. Write the following as script6.sh and change its permissions to count for num in d do if num eq 100 then count (count+1) done echo The number 10 was found $count times What is the output? Run the script as ./script6.sh 10 20 30 10 40 20 50 10 60 <enter Summarize what the script does r using the read command. The following script...

  • For each command give me the ENTIRE COMMAND SEQUENCE. If I ask you 'What command would...

    For each command give me the ENTIRE COMMAND SEQUENCE. If I ask you 'What command would I use to move the file one.txt to the parent directory and rename it to two.txt?", the answer is NOT 'mv'. That is only part of the command. 16. What command could I run to determine whether the ssh daemon is listening? With OpenSSH installed and running, the result should show that ssh/port 22 as "listening.' (5 pts) 17. Create a crontab entry that...

  • Please help. Thanks. From your libraries of clones, how do you use colony hybridization to find...

    Please help. Thanks. From your libraries of clones, how do you use colony hybridization to find the “correct” clone?  Discuss the steps you would use.  You are attempting to clone novel kinase genes using the DNA from the protein kinase B [PKB] gene’s kinase domain as your probe.

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
Active Questions
ADVERTISEMENT