Siedemnaste_21

 0    21 tarjetas    michalesq
imprimir jugar test de práctica
 
término - definición -
Delete the last line
empezar lección
sed '$d' file. txt
Print only lines with three consecutive digits
empezar lección
sed '/[0-9]\{3\}/p' file. txt
Unless boom is found replace aaa with bb
empezar lección
sed '/boom/! s/aaa/bb/' file. txt
Delete all lines from line 17 to 'disk'
empezar lección
sed '17,/disk/d' file. txt
How to install software for firewall and firewall-conf
empezar lección
yum install firewall firewall-config
Display firewall zones
empezar lección
firewall-cmd --get-zones
Display display default zone
empezar lección
firewall-cmd --get-default-zone
List services in default zone (public)
empezar lección
firewall-cmd --list-all
List services in home zone
empezar lección
firewall-cmd --zone=home --list-all
Not persistently add source IP to zone home, all services will be allowed for this source (disappaear after a reload/restart)
empezar lección
firewall-cmd --zone=home --add-source=192.168.1.0/24
How to reload firewalld
empezar lección
firewall-cmd --reload
Persistently add source IP to zone home, all services will be allowed for this source (needs reload/restart to appear)
empezar lección
firewall-cmd --zone=home -- permanent --add-source=192.168.1.0/24
Not persistently add port 80/tcp to zone public
empezar lección
firewall-cmd --zone=public --add-port=80/tcp
Persistently add port 80/tcp to zone public
empezar lección
firewall-cmd --zone=public --permanent --add-port=80/tcp
opens a GUI firewall config if you use graphical interface
empezar lección
firewall-config
how to generate public and private key for authentication
empezar lección
ssh-keygen -t rsa
display state of selinux
empezar lección
getenforce
changing state to permissive
empezar lección
setenforce 0
changing state to enforcing
empezar lección
setenforce 1
disable selinux
empezar lección
/etc/selinux/config SELINUX=disabled
Display full SElinux context (user, role and type)
empezar lección
ls -Z

Debes iniciar sesión para poder comentar.