Linux常用命令--cat 、more、less、head、tail
2016-10-08 14:07
1371 查看
1、cat作用及用法:
cat [-option] 文件名
NAME
cat - concatenate files and print on the standard output 连接文件并显示标准输出
-n 显示文件内容并附带行号。
-E 显示每一行行尾结束符
-T 显示制表符
-A 显示所有内容
tac 从尾行到首行显示。
2、more作用及用法:
more [-option] 文件名
NAME
more - file perusal filter for crt viewing分屏查看文件内容
more /etc/passwd
3、less作用及用法:
less [-option] 文件名
NAME
less - opposite of more
4、head作用及用法:
head [-option] 文件名
NAME
head - output the first part of files 输出显示前几行
-n 显示前n行,默认显示前10行
5、tail作用及用法:
tail [-option] 文件名
NAME
tail - output the last part of files 输出显示后几行
-n 显示后n行,默认显示后10行
-f 查看文件尾部并不退出查看状态,等待显示后续追加至此文件的新内容,按ctrl+c退出
cat [-option] 文件名
NAME
cat - concatenate files and print on the standard output 连接文件并显示标准输出
-n 显示文件内容并附带行号。
-E 显示每一行行尾结束符
-T 显示制表符
-A 显示所有内容
tac 从尾行到首行显示。
2、more作用及用法:
more [-option] 文件名
NAME
more - file perusal filter for crt viewing分屏查看文件内容
more /etc/passwd
3、less作用及用法:
less [-option] 文件名
NAME
less - opposite of more
4、head作用及用法:
head [-option] 文件名
NAME
head - output the first part of files 输出显示前几行
-n 显示前n行,默认显示前10行
5、tail作用及用法:
tail [-option] 文件名
NAME
tail - output the last part of files 输出显示后几行
-n 显示后n行,默认显示后10行
-f 查看文件尾部并不退出查看状态,等待显示后续追加至此文件的新内容,按ctrl+c退出
相关文章推荐
- linux常用命令-查看文件内容(tail/head/cat/more/less)
- linux常用命令touch,cat,tac,more,less,head,tail
- Linux下查看文件常用命令-cat,more,less,head,tail
- Linux 常用命令——cat, tac, nl, more, less, head, tail, od
- Linux下查看文件常用命令—cat,more,less,head,tail
- linux常用命令简单介绍(netstat,awk,top,tail,head,less,more,cat,nl)
- Linux 常用命令——cat, tac, nl, more, less, head, tail, od
- linux常用命令-查看文本/cat,tac,more,less,head,tail
- Linux常用命令(3):cat,more,less,head,tail
- Linux_常用命令简单介绍(netstat,awk,top,tail,head,less,more,cat,nl)
- Linux下查看文件常用命令—cat,more,less,head,tail,od,file
- Linux中cat、more、less、head、tail内容查看命令解析与比较
- linux 浏览查看文件more,less,head,tail,cat,tac,od,nl命令使用简介
- linux cat,tac,more,less,head,tail,cut,sort,uniq,wc,tr命令的使用
- linux用于查看文件内容 tail、cat、more、less、head 、sed 命令
- linux中cat、more、less、tail、head命令的区别
- [转] linux中cat more less head tail 命令
- linux命令,文件与目录(cp,pwd,mkdir,rmdir;ls,cp,rm,mv,basename,dirname;cat,tac,more,less,head,tail,touch,umask,chattr,file,which,locate,find)
- linux中cat、more、less、tail、head命令的区别
- Linux显示文本的命令(cat, tac,more,less,head,tail,nl)