linux基本和常用命令讲述.ppt

* grep支持以正则表达式书写的字符串,几个常用的正则表达式符号:^ [] $ . * sed awk * * * * 指定输入结束的字符串 * * * * * * * * * 添加图片演示 * * * * * * * * * * * usermod * * * * * * * * DATE(1) User Commands DATE(1) # 请注意上面这个括号内的数字,代表这个说明文档是针对命令date的。 NAME ==这个命令的完整全名,如下所示为 date且说明简单用途为设定与显 示日期/时间 date - print or set the system date and time SYNOPSIS ==这个命令的基本语法如下所示 date [OPTION]... [+FORMAT] date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]] DESCRIPTION ==详细说明刚刚语法谈到的选项与参数的用法 Display the current time in the given FORMAT, or set the system date. -d, --date=STRING ==左边-d为短选项名称,右边--date为完整选项名称 display time described by STRING, not now ENVIRONMENT ==与这个命令相关的环境参数有如下的说明 TZ Specifies the timezone, unless overridden by command line parameters. If neither is specified, the setting from /etc/localtime is used. AUTHOR ==这个命令的作者啦! Written by David MacKenzie. REPORTING BUGS ==有问题请留言给底下的 email 的意思! Report bugs to bug-coreutils@. COPYRIGHT ==受到著作权法的保护!用的就是 GPL 了! Copyright ? 2006 Free Software Foundation, Inc. This is free software. You may redistribute copies of it under the terms of the GNU General Public License /licenses/gpl.html. There is NO WARRANTY, to the extent permitted by law. SEE ALSO ==这个重要,你还可以从哪里查到与date相关的说明文件 The full documentation for date is maintained as a Texinfo manual. If the info and date programs are properly installed at your site, the command info date * * 例如:/root/hello ./hello hello * * * * * ls -a * * * * 创建一个512MB的大文件 dd if=/dev/zero of=/tmp/loopdev bs=1M count=512 设备文件/dev/zero能提供无数个字节零。 * * * 选项-exec 用法:-exec command command 为其他命令,-exec 后面可再接额外的命令来处理搜寻到的结果。 例子 find ./ -type l -exec ls -l {} \; {} 代表的是由 find 找到的文件,如上所示,find 的结果会被放置到 {}

文档评论(0)

1亿VIP精品文档

相关文档