Shell
allnlei
这个作者很懒,什么都没留下…
展开
-
source VS exec
http://www.xxlinux.com/linux/article/development/shell/2006-09-22/4499.htmlhttp://www.diybl.com/course/6_system/linux/Linuxjs/20071027/80454.htmlhttp://linux.chinaunix.net/techdoc/system/2008/09/0转载 2012-12-28 16:11:54 · 443 阅读 · 0 评论 -
What’s the Difference Between Sudo & Su?
Sudo and su are two different ways to gain root privileges. Each functions in a different way, and different Linux distributions use different configurations by default.The Root UserBoth su and su转载 2013-01-03 10:00:00 · 637 阅读 · 0 评论 -
Xargs Command Examples
xargs Man Page:xargs [options] [command] Execute command (with any initial arguments), but read remaining arguments from standard input instead of specifying them directly.xargs passes these a转载 2013-01-03 10:30:04 · 525 阅读 · 0 评论 -
source, exec and sh analysis
exec(sh)和source都属于bash内部命令(builtins commands),在bash下输入man exec或man source可以查看所有的内部命令信息。bash shell的命令分为两类:外部命令和内部命令。外部命令是通过系统调用或独立的程序实现的,如sed、awk等等。内部命令是由特殊的文件格式(.def)所实现,如cd、history、exec等等。转载 2013-01-03 09:50:52 · 539 阅读 · 0 评论 -
Linux中find常见用法示例
常见用法及实例:·find path -option [ -print ] [ -exec -ok command ] {} \;find命令的参数;pathname: find命令所查找的目录路径。例如用.来表示当前目录,用/来表示系统根目录。-print: find命令将匹配的文件输出到标准输出。-exec: find命令对匹配的转载 2013-01-02 13:19:53 · 448 阅读 · 0 评论 -
Linux Find 命令使用详解
通过文件名查找法: 这个方法说起来就和在WINDOWS下查找文件一样容易理解了。如果你把这个文件放在单个的文件夹里面,只要使用常见的“ls"命令就能方便的查找出来,那么使用“find”命令来查找它就不能给你留下深刻的印象,毕竟“find”命令的强大功能不止这个。如果知道了某个文件的文件名,而不知道这个文件放到哪个文件夹,甚至是层层套嵌的文件夹里。举例说明,假设你忘记了httpd.conf这个转载 2013-01-02 11:25:25 · 312 阅读 · 0 评论 -
linux下vi命令大全
一、插入文本 ┌──┬────────────┐ │命令│描述 │ ├──┼────────────┤ │i │在当前字符前插入文本 │ ├──┼────────────┤ │I │在行首插入文本 │ ├──┼────────────┤ │a │在当前字符后添加文本 │ ├──┼────────────┤ │A │在行转载 2013-01-02 11:33:11 · 447 阅读 · 0 评论 -
Linux下patch的制作和应用
转自:http://blog.chinaunix.net/u3/100239/showart_1984963.html首先介绍一下diff和patch。在这里不会把man在线文档上所有的选项都介绍一下,那样也没有必要。在99%的时间里,我们只会用到几个选项。所以必须学会这几个选项。1、diff -------------------- NAME转载 2013-01-02 12:03:39 · 379 阅读 · 0 评论 -
linux之sed用法
转载自: http://www.cnblogs.com/dong008259/archive/2011/12/07/2279897.htmlsed的初级用法:sed是一个很好的文件处理工具,本身是一个管道命令,主要是以行为单位进行处理,可以将数据行进行替换、删除、新增、选取等特定工作,下面先了解一下sed的用法sed命令行格式为: sed [-nefri]转载 2013-01-02 13:00:14 · 610 阅读 · 0 评论 -
eval shell command: http://www.softpanorama.org/Utilities/eval.shtml
The internal eval command interprets and expands a command line before the shell interprets and expands the line. Essentially it permits dynamically construct program or statements and then execute转载 2012-12-28 16:52:55 · 1345 阅读 · 0 评论 -
AWK
一. AWK 说明 awk是一种编程语言,用于在linux/unix下对文本和数据进行处理。数据可以来自标准输入、一个或多个文件,或其它命令的输出。它支持用户自定义函数和动态正则表达式等先进功能,是linux/unix下的一个强大编程工具。它在命令行中使用,但更多是作为脚本来使用。 awk的处理文本和数据的方式:它逐行扫描文件,从第一行到最后一行,寻找匹配的特定模转载 2013-05-30 22:43:49 · 379 阅读 · 0 评论