With A $ Are User, While # Are Executed By Root)- Q&A
#ip addr show Right Ans - show IP address with the IP command
/etc/sysconfig/network Right Ans - shows network / global network
variables:
NETWORKING=yes
HOSTNAME=shuttlehosti
GATEWAY=192.168.88.1
/etc/hosts Right Ans - local host file (contains hostname). Can contain local
system DNS.
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
/etc/sysconfig/iptables Right Ans - stores filewall rules for the system.
/etc/sysconfig/resolv.conf Right Ans - orig DNS config file. still used
/usr/share/doc/initscripts-*/sysconfig.txt Right Ans - Documentation
about sysconfig network scripts
system config firewall Right Ans - GUI menu
system/administratrion/firewall
**manual iptable rules will be overwritten with this tool.
/etc/services Right Ans - file holding services, ports, protocols assoicated
ip masqu Right Ans - acting as a router with forwarding
System-config-firewall tui Right Ans - shell config tool gropued like GUI
firewall configurater.
**manual iptable rules will be overwritten with this tool.
, /etc/sysconfig/iptables Right Ans - stores IPtables rules (filter)
chains, input forward output
are persistant
IPtables input chain Right Ans - process packets coming into the system
IPtables forward chain Right Ans - process packets being forwarded
through the system
IPtables output chain Right Ans - process packets coming out of the system
#iptables -L Right Ans - list iptables
#iptables -F Right Ans - flush the firewall of all rules
insert as opposed to append Right Ans - append add to the end of the
IPtables rules. insert will put rule above the deny all rule.
#iptables -I INPUT -p tcp --dport 21 -j Accept Right Ans - basic add rule for
iptables
not persistant unless saved with #/etc/init.d/iptables save
#iptables -D INPUT -p tcp --dport 21 -j accpet Right Ans - Delete a rule
from iptables
RPM packages contain these files Right Ans - - .spec file containing
information to create rpm package
- libraries or application
- any documentation
- any configuration files
/var/lib/rpm Right Ans - contains RPM database
name-version-release.architecture.rpm Right Ans - RPM package naming
#yum Right Ans - handles dependencies while RPMs do not
uses preconfigured repos