Linux learning note (3)

Source: Internet
Author: User

Check which shared libraries an executable file is lazy:

LDD commands are available for local executable files.

For cross-compiling, you can use arm-None-Linux-gnueabi-LDD to specify the root directory. You can use arm-None-Linux-gnueabi-LDD -- help to view help.

In addition, you can use: Arm-None-Linux-gnueabi-readelf-a test | grep shared # test is an executable file. In this way, test is a shared file that is directly lazy, there is no path.

Duplicate rows are often deleted during text processing. The following are three methods:

First, use sort + uniq. Note that uniq alone cannot be used.
Sort-N test.txt | uniq

Second, use the sort + awk command. Note that awk alone does not work, for the same reason.

Sort-N $ file | awk '{if ($0! = Line) print; line = $0 }'

Third, use the sort + sed command, which also requires the sort command to be sorted first.

Sort-N $ file | sed '$! N;/^ \ (. * \) \ n \ 1 $ /! P; D'

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.