Answer the question
In order to leave comments, you need to log in
How to add value from console?
Dear time of day!
Tell me how to add the DOMAIN=domain.domain parameter to the network interface from the console?
I tried doing like this
echo "DOMAIN=domain.domain" | tee -a /etc/sysconfig/network-scripts/ifcfg-eth0
Answer the question
In order to leave comments, you need to log in
> cat ifcfg-eth0
DOMAIN=localhost
> export DOMAIN=local.lan && sed -i '' -e "s|DOMAIN=.*$|DOMAIN=$DOMAIN|" ifcfg-eth0
> cat ifcfg-eth0
DOMAIN=local.lan
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question