Академический Документы
Профессиональный Документы
Культура Документы
cd /etc/httpd/conf/
cp /etc/httpd/conf/httpd.conf httpd.conf-bck
rm -f /etc/httpd/conf.d/welcome.conf
==================================================================
touch /var/www/html/index.html
<html>
<body>
<div style="width: 100%; font-size: 40px; font-weight: bold; text-align: center;">
Test Page
</div>
</body>
</html>
+
sed -i '1i <aaaaaaa>\' /var/www/html/index.html ===> agregar una linea
IncludeOptional conf.d/*.conf=
IncludeOptional conf.d/*.conf=
1111111111111111
No alimenten
al troll 's/
3333333333333333
Solo insertar:
sed 's/2222222222222222/2222222222222222\nNo alimenten\nal troll/' texto
1111111111111111