If you want to know more about the Linux system, it is still necessary to be familiar with some of the underlying systems. We can first understand how some Linux commands implement related functions. How do you get the source code of the commands? This article will introduce in detail.
Let's take the source code of the cat command as an example:
rpm -qif `which cat` will display the following information:
-------- -------------------------------------------------- ----------------
Name : coreutils Relocations: (not relocatable)
Version : 5.2.1 Vendor: Red Hat, Inc.< Br>
Release : 31.8.el4_7.1 Build Date: Thursday, October 23, 2008 21:04:08
Install Date: Tuesday, April 07, 2009 10:17:33 Build Host: ls20-bc2-14.build.redhat.com
Group : System Environment /Basic Source RPM: coreutils-5.2.1-31.8.el4_7.1.src.rpm
Size : 7314345 License: GPL
Signature : DSA/SHA1, Monday, October 27, 2008 22:56:59, Key ID 219180cddb42a60e
Packager : Red Hat, Inc. < ;http://bugzilla.redhat.com/bugzilla>
URL : ftp://alpha.gnu.org/gnu/coreutils/
Summary : GNU Core Tools: A set of tools commonly used in shell scripts.
Description :
These are the core tools of GNU. This package is a combination of the old GNUfileutils, sh-utils,
, and textutils packages.
-------------------------------------------- ------------------------------
With the above information, we can know that the cat command is from coreutils -5.2.1-31.8.el4_7.1.src.rpm source package, we can go to ftp://alpha.gnu.org/gnu/coreutils/mentioned above to download tarball, you can also go to rpmfind.net website Go to search coreutils-5.2.1-31.8.el4_7.1.src.rpm to download this source package.
If you download the tar.gz package, then tar zxvf tar.gz package can be;
If you download the src.rpm source package, then:
1, rpm2cpio Coreutils-5.2.1-31.8.el4_7.1.src.rpm
Preparation before erection: To set up a DNS server, you must install a software program that provi
Here is a way for you to quickly find a large file in the system. Recently received a users report,
1. Get root privileges without logging in. If you dont set the GRUB password, we can use the easiest
Computer Store News: first Linux systems for flat panel launch For those who have tired of the N
Rpm package and yum installation and uninstallation under CentOS
Anti-spam technology widely used in Linux
Linux prohibits a user from logging in to the system.
Linux crashes the problem of processing
Linux is a very useful command to find the software installation directory
Linux sar command using basic tutorial
Linux history: What is the relationship between Linux and GNU?
Making embedded Linux file system with busybox
A recovery method for accidentally deleting files under Linux
WebLogic installation and configuration on Linux operating system
Microsoft License - Free use of Windows 7 360 Day
Evernote native Android 4.0 version interface exposure
How to download software on your computer
How to take screenshots of Win10 Three Win10 screenshot methods
LOL point a set of word activities how to set the word LOL fast set word method
What is the meaning of the file can not be rendered, the video file can not be rendered how to solve
There are three reasons why our common Win 7 installation fails when installing the system
Win10 system activation failure prompt error code 0xc004f074 failure cause and solution
How to turn off Win7 offline file service to increase computer running speed