
此命令特点:内容不分页直接全部显示,因此不适合用于大文件的查阅。) N! O0 Z4 T1 I' D" ]
6 Q# B" `" A) C- X格式:cat [OPTION]… [FILE]…6 x0 K; K4 O' y
1 |0 H- B- r) S! |* |' @: i
- [root@localhost # cat anaconda-ks.cfg
- #version=DEVEL
- # System authorization information
- auth --enableshadow --passalgo=sha512
- # Use CDROM installation media
- cdrom
- # Use graphical install
- graphical
- # Run the Setup Agent on first boot
- firstboot --enable
- ignoredisk --only-use=sda
- # Keyboard layouts
- keyboard --vckeymap=us --xlayouts='us'
- # System language
- lang en_US.UTF-8
-
- # Network information
- network --bootproto=static --device=eno16777736 --gateway=192.168.1.1 --ip=192.168.1.251 --nameserver=61.177.7.1 --netmask=255.255.255.0 --ipv6=auto --activate
- network --hostname=localhost.localdomain
-
- # Root password
- rootpw --iscrypted $6$JQBUj0EzywJPx59P$e8E3iEnmvoof0UxzNFq8xKgIVXTSCGPZ5b3DE0PJdFoESlvMcZTIXv8qnOlRiEc9AAhL0fqhHuKAnUkMZr5o61
- # System services
- services --enabled="chronyd"
- # System timezone
- timezone Asia/Shanghai --isUtc
- # System bootloader configuration
- bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
- # Partition clearing information
- clearpart --none --initlabel
- # Disk partitioning information
- part /boot --fstype="xfs" --ondisk=sda --size=200
- part / --fstype="xfs" --ondisk=sda --size=44999
- part swap --fstype="swap" --ondisk=sda --size=6000
-
- %packages
- @^minimal
- @compat-libraries
- @core
- @debugging
- @development
- chrony
- kexec-tools
-
- %end
-
- %addon com_redhat_kdump --enable --reserve-mb='auto'
-
- %end
- [root@localhost #
7 o; o6 C/ b* a' D8 |% J+ b. L9 o -n:查看内容时标注行号,仅为便于查看,不属于文件内容。
* A6 Y2 S4 X, |5 ~8 ^4 {" P- [root@localhost # cat -n anaconda-ks.cfg
- 1 #version=DEVEL
- 2 # System authorization information
- 3 auth --enableshadow --passalgo=sha512
- 4 # Use CDROM installation media
- 5 cdrom
- 6 # Use graphical install
- 7 graphical
- 8 # Run the Setup Agent on first boot
- 9 firstboot --enable
- 10 ignoredisk --only-use=sda
- 11 # Keyboard layouts
- 12 keyboard --vckeymap=us --xlayouts='us'
- 13 # System language
- 14 lang en_US.UTF-8
- 15
- 16 # Network information
- 17 network --bootproto=static --device=eno16777736 --gateway=192.168.1.1 --ip=192.168.1.251 --nameserver=61.177.7.1 --netmask=255.255.255.0 --ipv6=auto --activate
- 18 network --hostname=localhost.localdomain
- 19
- 20 # Root password
- 21 rootpw --iscrypted $6$JQBUj0EzywJPx59P$e8E3iEnmvoof0UxzNFq8xKgIVXTSCGPZ5b3DE0PJdFoESlvMcZTIXv8qnOlRiEc9AAhL0fqhHuKAnUkMZr5o61
- 22 # System services
- 23 services --enabled="chronyd"
- 24 # System timezone
- 25 timezone Asia/Shanghai --isUtc
- 26 # System bootloader configuration
- 27 bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
- 28 # Partition clearing information
- 29 clearpart --none --initlabel
- 30 # Disk partitioning information
- 31 part /boot --fstype="xfs" --ondisk=sda --size=200
- 32 part / --fstype="xfs" --ondisk=sda --size=44999
- 33 part swap --fstype="swap" --ondisk=sda --size=6000
- 34
- 35 %packages
- 36 @^minimal
- 37 @compat-libraries
- 38 @core
- 39 @debugging
- 40 @development
- 41 chrony
- 42 kexec-tools
- 43
- 44 %end
- 45
- 46 %addon com_redhat_kdump --enable --reserve-mb='auto'
- 47
- 48 %end
- [root@localhost #
, w @2 H# X5 U* b1 j3 h
3 j0 W, U( \ P7 o6 b/ x
: ]4 V1 o' I/ y+ T1 E |
|