linux基础命令-文件查看类命令cat/tac/more/less/tail/head
2017-08-21 21:42
1131 查看
cat 查看文本文件内容
-b :给每一行编号不包括空白行-n:给所有行编号
[root@host01 tmp]# cat -An /root/anaconda-ks.cfg 1 # Kickstart file automatically generated by anaconda.$ 2 $ 3 #version=DEVEL$ 4 install$ 5 cdrom$ 6 lang en_US.UTF-8$ 7 keyboard us$ 8 network --onboot no --device eth0 --bootproto dhcp --noipv6$ 9 rootpw --iscrypted $6$WcPbmXB0J/pnlOQB$m8f5TaBOgQ.ipHT4kkkx4eYRqfL3D629ggzC3ryVp68H8mXfhaM.eAl0J3kkmI4j0BPn20usTvMdoLxfbw1lf/$ 10 firewall --service=ssh$ 11 authconfig --enableshadow --passalgo=sha512$ 12 selinux --enforcing$ 13 timezone --utc Asia/Shanghai$ 14 bootloader --location=mbr --driveorder=sda --append="crashkernel=auto rhgb quiet"$ 15 # The following is the partition information you requested$ 16 # Note that any partitions you deleted are not expressed$ 17 # here so unless you clear all partitions first, this is$ 18 # not guaranteed to work$ 19 #clearpart --all --drives=sda$ 20 $ 21 #part /boot --fstype=ext4 --size=500$ 22 #part pv.008002 --grow --size=1$ 23 $ 24 #volgroup vg_host01 --pesize=4096 pv.008002$ 25 #logvol / --fstype=ext4 --name=lv_root --vgname=vg_host01 --grow --size=1024 --maxsize=51200$ 26 #logvol swap --name=lv_swap --vgname=vg_host01 --grow --size=1984 --maxsize=1984$ 27 $ 28 repo --name="CentOS" --baseurl=cdrom:sr0 --cost=100$ 29 $ 30 %packages --nobase$ 31 @core$ 32 %end[root@host01 tmp]# cat -An /root/anaconda-ks.cfg
-
相关文章推荐
- Linux中查看文本文件内容命令cat/tac/nl/more/less/head/tail/vi总结
- Linux命令:查看文件内容cat|tac|more|less|head|tail|nl|od
- Linux中查看文本文件内容命令cat/tac/nl/more/less/head/tail/vi总结
- linux查看日志文件内容命令sed、cat、tac、more、less、head、tail、echo 1、按时间查询 sed -n '/2017-09-20 14:00:/,/2017-
- linux 浏览查看文件more,less,head,tail,cat,tac,od,nl命令使用简介
- Linux中查看文本文件内容命令cat/tac/nl/more/less/head/tail/vi总结
- Linux基础文本查看命令之 cat,tac,more,less,head,tail
- Linux基础之文本查看命令(cat,tac,rev,head,tail,more,less)
- 查看文件命令cat,more,less,tail,tac,nl,od---linux学习笔记
- linux命令---用于查看文件内容cat,more,less,head,tail,sed
- Linux查看文件内容的方法(cat,tac,more,less,head,tail)
- Linux下查看文件常用命令-cat,more,less,head,tail
- Linux 查看文件 cat,tac,more,less,head,tail 用法
- linux文件内容查看(cat,tac,nl,more,less,head,tail,od)
- 文本文件查看命令:cat, tac, more, less, tail, head
- linux用于查看文件内容 tail、cat、more、less、head 、sed 命令
- linux文件内容查看(cat,tac,nl,more,less,head,tail,od)
- 【每天一个Linux命令】25. 查看文件命令(cat/more/less/tail/tac/nl/od)
- linux用于查看文件内容 tail、cat、more、less、head 、sed 命令
- linux用于查看文件内容 tail、cat、more、less、head 、sed 命令