# rpm -qif `which sort`
Name : coreutils Relocations: (not relocatable)
Version : 5.2.1 Vendor: CentOS
Release : 31.4 Build Date: Sun 13 Aug 2006 10:26:34 AM GMT
Install Date: Sat 17 Mar 2007 07:25:40 AM GMT Build Host: build-i386
Group : System Environment/Base Source RPM: coreutils-5.2.1-31.4.src.rpm
Size : 7308841 License: GPL
Signature : DSA/SHA1, Sun 13 Aug 2006 12:54:58 PM GMT, Key ID a53d0bab443e1821
Packager : Johnny Hughes <johnny@centos.org>
URL : ftp://alpha.gnu.org/gnu/coreutils/
Summary : The GNU core utilities: a set of tools commonly used in shell scripts
Description :
These are the GNU core utilities. This package is the combination of
the old GNU fileutils, sh-utils, and textutils packages.
若是下载的src.rpm源码包,则:
1、rpm2cpio coreutils-5.2.1-31.8.el4_7.1.src.rpm| cpio -idv
2、此时会在当前目录下产生coreutils-5.2.1.tar.bz2文件
3、bzip2 -d coreutils-5.2.1.tar.bz2 解压,会产生coreutils-5.2.1.tar 文件
4、tar xvf coreutils-5.2.1.tar 此时在当前目录下将产生coreutils-5.2.1目录,源码便在其中。
进入coreutils-5.2.1目录,下面的src文件夹便是存放cat命令源代码的地方,当然了除了cat,linux的很多基础的外置命令的源代码都存放其中,像cp,chown,chmod,df,ls,rm,dd等等
对了,顺便说一下,coreutils-5.2.1目录下的configure脚本有5w多行哦,里面体现了很多shell的编程技巧,很值得喜欢shell并且想进一步深入学习shell编程的朋友去拜读一下哦。
分享到:
相关推荐
You've experienced the shiny, point-and-click surface of your Linux computer-now dive below and explore its depths with the power of the command line. The Linux Command Line takes you from your very ...
本书是The Linux Command Line 的中文版,帮助新手入门和老鸟进阶,可以中英文对照着读,效果更佳(小小搬运工,省的大家去找,不喜勿喷)
All Linux users and administrators tend to like the flexibility and speed of Linux administration from the command line in byte–sized chunks, instead of fairly standard graphical user interfaces....
The Linux Command Line; 2019/1/28; 19.01; This book is part of the LinuxCommand.org project
This book is part of the LinuxCommand.org project, a site for Linux education and advocacy devoted to helping users of legacy operating systems migrate into the future. You may contact the Linux...
Linux Command Background Linux Command Background Linux Command Background
linux command (全) 介绍各种linux指令代码,相当的全。
linux command line.pdf 介绍关于linux命令行的知识。
command line to tell a Linux system what to do. Here’s an example command that counts lines of text in a file, myfle: wc -l myfile We’ll cover the most important Linux commands for the aver‐ age ...
Designed for the new command line user, this 555-page volume covers the same material as LinuxCommand.org but in much greater detail. In addition to the basics of command line use and shell scripting,...
The Linux command line.pdf 英文版 此书英文本是免费的
The Linux command line tool(快乐的linux命令行)中文高清版,无水印
The Linux Command Line英文版
The Linux Command Line 中文版 高清
ping源码 亲测~完美安全可靠,推荐使用 Arm ping command package can compile and transplant source code
NULL 博文链接:https://lindows.iteye.com/blog/223297
The Linux Command Line: A Complete Introduction
Complete Linux Command Reference
Apress - Beginning The Linux Command Line, 2009.zip