文章分类 - RHEL
摘要:在Linux系统下mail命令的测试
阅读全文
摘要:Bash数组 1.描述 Bash的数组,其元素的个数没有限制。数组的索引由0开始,但不一定要 连续(可以跳号)。索引也可以算术表达式。bash仅支持一维数组。 1.1 declare 名称:设置变量和属性(可以用来声明一个数组) 用法: declare [-aAfFilrtux] [-p] [Name[=Value]...] 选项: -f 显示函数名和函数定义 -F 仅显示函数名 下面是用来设置属性的选项 -a 表示Name为一个索引数组 -A 表示Name为一个关系数组 -i 表述Name为一个整数 -l 将Name的值转换为小写 -u 将Name的值转换为大写...
阅读全文
摘要:看了一篇关于用户和密码处理的文章不错。以下是引用:# useradd –d /usr/sam -m sam 此命令创建了一个用户sam,其中-d和-m选项用来为登录名sam产生一个主目录/usr/sam(/usr为默认的用户主目录所在的父目录)。 # useradd -s /bin/sh -g group –G adm,root gem 此命令新建了一个用户gem,该用户的登录Shell是/bin/sh,它属于group用户组,同时又属于adm和root用户组,其中group用户组是其主组。 增加用户账号就是在/etc/passwd文件中为新用户增加一条记录,同时更新其他系统文件如/e...
阅读全文
摘要:This text is a brief description of the features that are present in the Bash shell (version 4.2, 28 December 2010).
This is Edition 4.2, last updated 28 December 2010, of The GNU Bash Reference Manual, for Bash, Version 4.2.
阅读全文
摘要:grep (global search regular expression(RE) and print out the line,全面搜索正则表达式并把行打印出来)是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹配的行打印出来。
阅读全文
摘要:Most people don’t know this, but you can also run emacs from within your shell (like vi). There are some moments where it just doesn’t make sense to load the emacs GUI, and it’s just nice to know that we don’t have to use vi in those circumstances. All you need to do is add the “-nw” tag when runnin
阅读全文

浙公网安备 33010602011771号