Linux Commands – SED

In short, the command to replace some file contents is below.  Read on for more info. sed -i ‘s/ONBOOT=no/ONBOOT=yes/g’ /etc/sysconfig/network-scripts/ifcfg-enp0s3 The above command when issued as the root user will set the default CentOS 7 network adapter to...