Chinaunix首页 | 论坛 | 博客
  • 博客访问: 239317
  • 博文数量: 91
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 955
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-12 09:38
文章分类

全部博文(91)

文章存档

2017年(1)

2011年(1)

2008年(15)

2007年(74)

我的朋友

分类: LINUX

2007-08-19 16:18:50

tail:
  tail [options] files
  print the last few lines of one or more files,when more than one file is specified, a header is printed at the beginning of each file and each is listed in succession
  parameters
  -c n the option print the last n bytes,if n is followed by k or m,the last n kilobytes or megabytes.respectively
  -f follow the output dynamically as new lines are added to the bottom of a file
  -n m ;print last lines,the default is 10
  
head
  syntax head [options] files print the first few lines of one or more files(the "head" of the file or files).when more than one file is specified.a header is printed at the beginning of each file,and each file is listed in succession
  parameter -c n, -l n
  -c n ;print the first n bytes,if n is followed by k or m,print the first n kilobytes or megabytes
  -n m ;print the first n lines,stitution the default is 10
  
  example: ls -ult|head -5
         ls -ult|tail -6
     head -n 12 file1

阅读(477) | 评论(0) | 转发(0) |
0

上一篇:linux下的vi command

下一篇:linux下的du command

给主人留下些什么吧!~~