[root@rocky8 ~]# head -n 20 anaconda-ks.cfg 

head -n 20 +文件名 查看文件的首20行_其他