[root@centos7 ~]#find /etc/ \( -type f -a -size +1M \) | xargs ls -lh -rw-r--r--. 1 root root 1.4M Apr 11 2018 /etc/brltty/zh-tw.ctb -rw-------. 1 root root 3.8M Nov 3 2018 /etc/selinux/targeted/active/policy.kern -rw-r--r--. 1 root root 1.4M Nov 3 2018 /etc/selinux/targeted/contexts/files/file_contexts.bin -rw-r--r--. 1 root root 3.8M Nov 3 2018 /etc/selinux/targeted/policy/policy.31 -r--r--r--. 1 root root 7.8M Nov 23 20:28 /etc/udev/hwdb.bin
[root@centos7 src]#tar -czvf /usr/local/src/`date +"%F-%T"`.tar.gz /etc/*.conf [root@centos7 src]#ls 2019-12-28-23:11:57.tar.gz
[root@centos7 src]#ifconfig | sed -nr '/inet\b/s@([^0-9]+)(([0-9]{1,3}.){3}[0-9]{1,3}).*@\2@p' 192.168.43.107 192.168.3.7 127.0.0.1 192.168.122.1
[root@centos7 src]#sed -nr 's/^(#[[:space:]]+)(.*)$/\2/p' /data/fstab /etc/fstab Created by anaconda on Sat Nov 23 20:13:29 2019 Accessible filesystems, by reference, are maintained under '/dev/disk' See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
[root@centos7 src]#echo "/etc/fstab" |sed -nr 's@(^/.*/)([^/]+/?$)@\1@p' /etc/ [root@centos7 src]#echo "/etc/fstab" |sed -nr 's@(^/.*/)([^/]+/?$)@\2@p' fstab
架構班小夥伴看這裏:linux
一、安裝配置kvm虛擬機,並建立虛擬機。centos
二、安裝配置openstack,並建立虛擬機。架構