Generalidades en Ubuntu y Centos

1. Si deseo saber el nombre del Pc uso el comando hostname, si quiero saber la ip, pe, mask y la MAC, uso el comando ifconfig, si quiero editarlas ejecutar en terrminal setup en centOS y en Ubuntu /etc/network/interfaces y para ver el detalle es route -n

sudo ifconfig eth0 netmask sudo route add default gw eth0

2. Si quiero ver que hosts, servicios y protocolos tengo que ver sus archivos, en este caso debo ejecutar el comando vi hosts, vi protocols, o vi services.

3. Si quiero activar un puerto, por ejemplo 6667 para que IRC no esté bloqueado entonces:

root@V20304:~# cd /etc/

root@V20304:/etc# gedit services

Nota: las ediciones sólo están permitidas si se ha logueado como superusuario sudo -i

About Julita Inca

System Engineering degree at UNAC, Computer Science Masters at PUCP, High Performance Masters at University of Edinburgh, Winner OPW GNOME 2011, GNOME Foundation member since 2012, Fedora Ambassador since 2012, winner of the Linux Foundation scholarship 2012, Linux Admin at GMD 2012, IT Specialist at IBM 2013. Academia experience in lecturing at PUCP, USIL and UNI Peru (2010-2018). HPC intern at ORNL 2018. HPC Software Specialist at UKAEA since 2020. Tech Certifications: RHCE, RHCSA, AIX 6.1, AIX 7 Administrator, and ITILv3. Leader of LinuXatUNI Community, Creator of the "Mujeres Imperfectas | I'm perfect woman" channel, Reviewer of the Technological Magazine of ESPOL-RTE, Online trainer at BackTrackAcademy, blogger, photographer, IT-Linux-HPC-science worldwide speaker, graphic designer, researcher, content creator, press communicator... a simple mortal, just like you!
This entry was posted in τεχνολογια :: Technology, networking and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s