标签:at命令 roo nbsp scripts sysconfig pytho dha lease nta
查看及检索文件:
cat命令:
显示并连接文件内容;
[root@1 ~]# cat /etc/sysconfig/network-scripts//ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
[root@1 ~]#
也可以同时查看多个文件内容,即添加多个文件路劲作为查看对象:
[root@1 ~]# cat /etc/redhat-release /proc/version
CentOS Linux release 7.4.1708 (Core)
Linux version 3.10.0-693.2.2.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) ) #1 SMP Tue Sep 12 22:26:13 UTC 2017
[root@1 ~]#
cat命令:
显示并连接文件内容;
1
2
3
4
5
|
[root@ 1 ~] # cat /etc/sysconfig/network-scripts//ifcfg-eth0 DEVICE = eth0 BOOTPROTO = dhcp ONBOOT = yes [root@ 1 ~] # |
也可以同时查看多个文件内容,即添加多个文件路劲作为查看对象:
1
2
3
4
|
[root@ 1 ~] # cat /etc/redhat-release /proc/version CentOS Linux release 7.4 . 1708 (Core) Linux version 3.10 . 0 - 693.2 . 2.el7 .x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8 . 5 20150623 (Red Hat 4.8 . 5 - 16 ) (GCC) ) #1 SMP Tue Sep 12 22:26:13 UTC 2017 [root@ 1 ~] # |
标签:at命令 roo nbsp scripts sysconfig pytho dha lease nta
原文地址:http://www.cnblogs.com/LinuxGeek/p/7803244.html