免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 878 | 回复: 0
打印 上一主题 下一主题

linux下的rm rmdir touch pipe commands [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-08-23 16:22 |只看该作者 |倒序浏览

               
               
                rm
  rm [options] files
  -d remove directory even if they are not empty.the option is reserved(保留,预定) for privilege users
  -f force removal of write-protected files without prompting
  -i query interactive before removing files
  -r -R if the files is a directory,recursively remove the entire directory and all of its contents,include subdirectories
  the parameter -d ,I can't test success.
rmdir
  rmdir [options] directories
  delete directories ,which must be empty
  -p remove directories and any intervening(插入,干涉,干预) parent directories that become empty as a result.
touch
  touch [options] files
  change the access and/or modification times of files.
  -a change only the access time
  -m change only the modification time
  -t timestamp  ;instead of the current time,use timestamp in the form of [[cc]yy]MMDDhhmm[.ss],for example,the timestamp for january 12,2001,at 6:45 p.m is 200101121845
  
pipes
  this is accomplished using a pipe(|) to join two or more commands together.for example:
  grep "01254" order*|less
  this command searches through all files whose names begin with order to find lines contains the word 01254.


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/45689/showart_366149.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP