[root@localhost ~]# cat -n initial-setup-ks.cfg
1 #version=DEVEL
2 # X Window System configuration information
3 xconfig --startxonboot
4 # License agreement
5 eula --agreed
6 repo --name="Server-HighAvailability"--baseurl=file:///run/install/repo/addons/HighAvailability
7 repo --name="Server-ResilientStorage"--baseurl=file:///run/install/repo/addons/ResilientStorage
8 # System authorization information
9 auth --enableshadow --passalgo=sha512
10 # Use CDROM installation media...省略之后信息
more
格式:more [选项] [文件]
作用:查看纯文本文件(内容较多的大文件)
用空格或回车进行翻页
[root@localhost ~]# more initial-setup-ks.cfg #version=DEVEL# X Window System configuration information
xconfig --startxonboot
# License agreement
eula --agreed
repo --name="Server-HighAvailability"--baseurl=file:///run/install/repo/addons/
HighAvailability
repo --name="Server-ResilientStorage"--baseurl=file:///run/install/repo/addons/
ResilientStorage
# 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
# System services
services --enabled="chronyd"# Keyboard layouts
keyboard --vckeymap=cn --xlayouts='cn'# System language
lang zh_CN.UTF-8
--More--(32%)
head
格式:head [选项] [文件]
作用:查看纯文本文档的前N行
[root@localhost ~]# head -n 10 initial-setup-ks.cfg #version=DEVEL# X Window System configuration information
xconfig --startxonboot
# License agreement
eula --agreed
repo --name="Server-HighAvailability"--baseurl=file:///run/install/repo/addons/HighAvailability
repo --name="Server-ResilientStorage"--baseurl=file:///run/install/repo/addons/ResilientStorage
# System authorization information
auth --enableshadow --passalgo=sha512
# Use CDROM installation media
[root@localhost ~]# tail -n 10 initial-setup-ks.cfg %addon com_redhat_subscription_manager
%end%addon com_redhat_kdump --enable --reserve-mb=auto
%end%anaconda
pwpolicy root --minlen=6 --minquality=50 --notstrict --nochanges --notempty
pwpolicy user --minlen=6 --minquality=50 --notstrict --nochanges --notempty
pwpolicy luks --minlen=6 --minquality=50 --notstrict --nochanges --notempty
%end[root@localhost ~]# tail -f /var/log/messages
Nov 5 11:15:57 localhost systemd: Started Fingerprint Authentication Daemon.
Nov 5 11:16:01 localhost gnome-keyring-daemon[2780]: couldn't initialize slot with master password: The password or PIN is incorrect
Nov 5 11:16:01 localhost dbus[766]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service'
Nov 5 11:16:01 localhost dbus-daemon: dbus[766]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service'
Nov 5 11:16:01 localhost systemd: Starting Hostname Service...
Nov 5 11:16:02 localhost dbus[766]: [system] Successfully activated service 'org.freedesktop.hostname1'
Nov 5 11:16:02 localhost dbus-daemon: dbus[766]: [system] Successfully activated service 'org.freedesktop.hostname1'
Nov 5 11:16:02 localhost systemd: Started Hostname Service.
Nov 5 11:16:22 localhost rhsmd: In order for Subscription Manager to provide your system with updates, your system must be registered with the Customer Portal. Please enter your Red Hat login to ensure your system is up-to-date.
Nov 5 11:16:27 localhost fprintd: ** Message: No devices in use,exit