Get the corresponding kernel source command under Ubuntu

Source: Internet
Author: User

Input: Apt-cache Search Linux-source//view kernel version

1. Using the Apt-get source method, it will be downloaded to the current directory and will be extracted directly:

Apt-get Source linux-source-2.6.32 #或者其他编号

2. Use apt-get Install, will download to/USR/SRC, will not decompress. After the following command, you can press TAB two times to see what kernel source you can install (not necessarily in the library).

sudo apt-get install Linux-source

If the hint is already installed, but/USR/SRC is not, you can do it first, sudo apt-get remove Linux-source and then execute the above installation command

Find a file under Ubuntu

sudo find./-depth-name "filename.h"-print

In the current file and its subdirectories, look for the file "Filename.h" and print it out

Get the corresponding kernel source command under Ubuntu

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.