Siedemnaste_21

 0    21 adatlap    michalesq
Nyomtatás játszik ellenőrizze magát
 
kérdés - válasz -
Delete the last line
kezdjen tanulni
sed '$d' file. txt
Print only lines with three consecutive digits
kezdjen tanulni
sed '/[0-9]\{3\}/p' file. txt
Unless boom is found replace aaa with bb
kezdjen tanulni
sed '/boom/! s/aaa/bb/' file. txt
Delete all lines from line 17 to 'disk'
kezdjen tanulni
sed '17,/disk/d' file. txt
How to install software for firewall and firewall-conf
kezdjen tanulni
yum install firewall firewall-config
Display firewall zones
kezdjen tanulni
firewall-cmd --get-zones
Display display default zone
kezdjen tanulni
firewall-cmd --get-default-zone
List services in default zone (public)
kezdjen tanulni
firewall-cmd --list-all
List services in home zone
kezdjen tanulni
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)
kezdjen tanulni
firewall-cmd --zone=home --add-source=192.168.1.0/24
How to reload firewalld
kezdjen tanulni
firewall-cmd --reload
Persistently add source IP to zone home, all services will be allowed for this source (needs reload/restart to appear)
kezdjen tanulni
firewall-cmd --zone=home -- permanent --add-source=192.168.1.0/24
Not persistently add port 80/tcp to zone public
kezdjen tanulni
firewall-cmd --zone=public --add-port=80/tcp
Persistently add port 80/tcp to zone public
kezdjen tanulni
firewall-cmd --zone=public --permanent --add-port=80/tcp
opens a GUI firewall config if you use graphical interface
kezdjen tanulni
firewall-config
how to generate public and private key for authentication
kezdjen tanulni
ssh-keygen -t rsa
display state of selinux
kezdjen tanulni
getenforce
changing state to permissive
kezdjen tanulni
setenforce 0
changing state to enforcing
kezdjen tanulni
setenforce 1
disable selinux
kezdjen tanulni
/etc/selinux/config SELINUX=disabled
Display full SElinux context (user, role and type)
kezdjen tanulni
ls -Z

Kommentár közzétételéhez be kell jelentkeznie.