Linux查看文件内容命令-cat

3,574次阅读
没有评论

共计 2691 个字符,预计需要花费 7 分钟才能阅读完成。

提醒:本文最后更新于2019-07-17 19:37,文中所关联的信息可能已发生改变,请知悉!

[v_error]此命令特点:内容不分页直接全部显示,因此不适合用于大文件的查阅。[/v_error]
[v_act]格式:cat [OPTION]… [FILE]…
    -n:查看内容时标注行号,仅为便于查看,不属于文件内容。[/v_act]

[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 ~]#
正文完
 0
Yvan
版权声明:本站原创文章,由 Yvan 于2017-01-31发表,共计2691字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(没有评论)