Linux View Command Source code

Source: Internet
Author: User

First, Introduction

Sometimes you want to see the source code for the LS, cat, more commands, this article describes the appropriate viewing methods.

Second, the method

Reference:

http://blog.csdn.net/silentpebble/article/details/41279285http://blog.csdn.net/ zhenwo123/article/details/19190189

View the source code for this command uname

# Whereis uname uname:/bin/uname /usr/share/man/man1/uname. 1. gz/usr/share/man/man2/uname. 2. gz/usr/share/ Man
# Rpm-qf/bin/uname
coreutils-8.5-7.fc14.i686
# Rpm2cpio coreutils-8.5-7.fc14.src.rpm | Cpio-idv COREUTILS-8.5.TAR.XZ

Coreutils-8.5.tar.xz

9446 blocks

Third, source code analysis

Reference:

http://blog.csdn.net/yxc135/article/details/22161907

Linux View Command Source code

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.