more:
引用
Usage: more [options] file...
Options:
-d display help instead of ring bell
-f count logical, rather than screen lines
-l suppress pause after form feed
-p suppress scroll, clean screen and disblay text
-c suppress scroll, display text and clean line ends
-u suppress underlining
-s squeeze multiple blank lines into one
-NUM specify the number of lines per screenful
+NUM display file beginning from line number NUM
+/STRING display file beginning from search string match
-V output version information and exit
less
比more灵活些,可以trl+f,ctrl+b
head
引用
Usage: head [OPTION]... [FILE]...
Print the first 10 lines of each FILE to standard output.
With more than one FILE, precede each with a header giving the file name.
With no FILE, or when FILE is -, read standard input.
tail
引用
Usage: tail [OPTION]... [FILE]...
Print the last 10 lines of each FILE to standard output.
With more than one FILE, precede each with a header giving the file name.
With no FILE, or when FILE is -, read standard input.
cat
引用
Usage: cat [OPTION]... [FILE]...
Concatenate FILE(s), or standard input, to standard output.
-A, --show-all equivalent to -vET
-b, --number-nonblank number nonempty output lines, overrides -n
-e equivalent to -vE
-E, --show-ends display $ at end of each line
-n, --number number all output lines
-s, --squeeze-blank suppress repeated empty output lines
-t equivalent to -vT
-T, --show-tabs display TAB characters as ^I
-u (ignored)
-v, --show-nonprinting use ^ and M- notation, except for LFD and TAB
--help display this help and exit
--version output version information and exit
With no FILE, or when FILE is -, read standard input.
Examples:
cat f - g Output f's contents, then standard input, then g's contents.
cat Copy standard input to standard output
某次面试,某个面试官问,这五个有什么区别?
分享到:
相关推荐
大数据基础-Linux基础详解课程
1、cat命令 描述:查看文件内容;文件创建;文件合并。常用来显示文件内容,或者将几个文件连接起来显示,或者从标准输入读取内容并显示,它常与重定向符号配合使用。 用法:cat [参数选项] [文件名称] 参数: 参数 ...
head指令:查看文件开头的内容; tail指令:显示文件尾部的内容; cat指令:显示文件内容; 例如: more file1 查看文件file1的文件内容; more -10 file2 查看文件file2的内容,一次显示10行; more +15 file3 查看...
Linux 文件内容查看命令 - 关键词:cat, head, tail, more, less, sed, vi, grep Linux 文件压缩和解压 - 关键词:tar, gzip, zip, unzip Linux 用户管理 - 关键词:groupadd, groupdel, groupmod, useradd, userdel...
more/less: 分页查看文件 head/tail: 查看文件头/尾部 这些命令涵盖了Linux日常操作的方方面面,无论是文件管理、系统监控、网络操作还是软件包管理等,都有对应的命令可供使用。作为Linux用户,熟练掌握这些命令是非常...
ls(list)列表显示目录的文件以及子目录 l (long)以长格式显示文件和目录的列表 -a 显示所有的子目录和文件的信息 -d 显示目录本身的属性,常与-l 同时使用 -h 人性化的方式显示出目录的大小,常与-l 同时使用 ...
cat: 显示文件内容并输出到控制 more: 分页显示文件内 less: 类似 more,但允许向前翻页 head: 显示文件的前 N 行内容(默认为 10 行) tail: 显示文件的最后 N 行内容(默认为 10 行) 系统信息: uname: 显示操作系统...
linux基础命令教程豪华版,来源于红联linux.适合于初学者。 linux基础命令教程目录:ShellLinux的登陆Linux...cat显示文件内容-more显示文件内容-less显示文件内容-head和tail从Windows转向Linux教程Linux海量资源
cat:一次可以显示整个文件,适用内容较少的情况 more:适用与查看内容较多的文件,可以适用空格键翻页查看后面的内容 less:适用与查看内容较多的文件,less 比more更灵活可以往上往下翻页 head:用于查看文件的前n行 ...
more、less head、tail 修改文件内容 vi vim echo 没有实际含义 目录 列出目录中包含的内容 ls 更改目录清单,对目录中的文件个数做增加或减少操作 mkdir rm touch cp mv rmdir 进入目录 cd 权限实际意义 修改权限 ...
-关键词: cat , head , tail , more , less , sed , vi , grep -关键词: tar , gzip , zip , unzip -关键词: groupadd , groupdel , groupmod , useradd , userdel , usermod , passwd , su ...
head、tail:查看文件的开头或结尾部分。 grep:在文件中搜索指定的字符串。 sed、awk:流编辑器,用于对文本进行复杂的处理。 系统信息命令: uname:显示系统信息。 df:显示磁盘使用情况。 du:查看文件和目录的...
more 或 less:分页显示文件内容。 head:显示文件的开头几行。 tail:显示文件的结尾几行。 文件内容处理命令: grep:在文件中搜索指定的模式。 sed:流编辑器,用于对文件内容进行编辑和替换。 awk:文本处理...
第一部分:常用命令 ... 1:Linux系统需要备份的数据 2:安装服务的数据 3:备份策略 1:完全备份 2:增量备份 3:差异备份 备份与恢复/dump和restore命令 1:dump备份数据 2:restore恢复命令 第十一部分:shell
1. cat:查看文件内容,可以显示整个文件的内容。 2. head:显示文件的头部内容,默认显示前10行。 3. tail:显示文件的尾部内容,默认显示后10行。 4. less:以交互式方式查看文件,可以上下滚动和搜索文件内容。 5...
6. cat 7. mkdir 8. rmdir 9. chmod 10. chown 11. chgrp 12. touch 13. cp 14. mv 15. rm 16. find 17. grep 18. more 19. less 20. head 21. tail 22. cut 23. at 24. crontab 25. sleep 26. kill 27. ps pstree ...
2. 使用cat,more,less,head,tail命令显示/etc/inittab文件 实验二; 1. 新建目录/home/test 2. 使用pwd命令显示当前目录 3. 使用cd命令先转到/root目录再转到当前目录 4. 将/etc目录及其下所有内容复制到/home/test 5...
1、对于文件:可查看文件内容(cat/tac/more/less/head/tail) 2、对于目录:可以列出目录中的内容(ls) 2)w:写 1、对于文件:可以修改文件内容(vim) 2、对于目录:可以在目录中创建、删除文件(mkdir/rm/rmdir/...
字处理 : grep, agrep, less, cat, tail, head 文件工具: mv, cp, du, ls, pwd, rmdir, whereis 开发工具: make, diff, diff3, sleep, cvs, dos2unix, unix2dos 用户下载一个 Win 安装程序并安装后,它会...
2.7.1 cat 2.7.2 less 2.7.3 head 2.7.4 tail 2.8 管道相关命令 2.8.1 grep 2.8.2 echo 2.8.3 &&和 || 2.8.4 软硬连接 2.8.5 cut命令 2.8.6 sort命令 2.8.7 wc命令 2.8.8 uniq命令 2.8.9 tee命令 2.8.10 tr命令 ...