格式 [root@linux ~]# dd if="input_file" of="output_file" bs="block_size" count="number" 参数: if:就是 input file (或设备名称)。 of:就是 output file(或设备名称)。 bs:规划的一个 bl
类似Windows平台下的计划任务,Linux下使用cron服务来实现一些特定任务的定时执行。目前流行的系统都已默认安装了cron并随机启动。 cron服务相关命令: /sbin/service crond start //启动服务 /sbin/service crond stop &nb
显示时间是个常用的命令,在写shell脚本中也经常会用到与日期相关文件名或时间显示。无论是linux还是windows下都是date命令。 Linux下date命令用法 date [OPTION]… [+FORMAT] date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]] date命令参数 -d, &nd
linux中 .tar 文件与 .tar.gz 是什么关系? tar文件只是把多个文件或文件夹打包合成一个文件,本身并没有进行压缩。 gz是进行过压缩的文件。 如果一个文件的后缀是tar.gz,那么说明打包的时候进行了压缩,所以解包的使用也同样需要解压缩。 可以使用如下命令得到解好的文件: tar -zxvf xxxx.tar.gz 也可以分两步走,先解压,再解包: gunzip
[root@tomcat ~]# cat xingfujie.log http://www.etiantian.org/index.html http://www.etiantian.org/1.html http://post.etiantian.org/index.html http://mp3.etiantian.org/index.html http://www.etianti
“ ” 双引号用来使Shell无法认出空格,制表符和其他大多数特殊符号。 ‘ ’ 单引号使Shell无法认出其中所有的特殊字符,除结尾的单引号以外。 ` ` 倒引号用于命令替换。在倒引号中间的命令产生的输出将代替原命 令中的倒引号字符串。 反斜线字符使Shell无法认
1 # 替换标识符下一行的内容 2 sed -e '/zone "hexun.com" IN {/,+1s/slave/master/' *.conf 3 # 删除标识行的下5行 4 sed -i -e '/also-notify
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号