Professional Documents
Culture Documents
PID
NOTA: En este caso se están buscando únicamente los procesos
relacionados con sshd.
• El comando pgrep busca el PID del patrón de búsqueda
• Sintaxis
pgrep [Opciones] [Patrón]
• Ejemplos:
[maxwell@station maxwell]$ pgrep -l sshd
829 sshd
[maxwell@station maxwell]$ pgrep -lu maxwell
2112 bash
2146 mozilla-bin
2155 mozilla-bin
• Las señales son distinguidas por un número. Para visualizarlas utilice el comando
kill -l
• Los comandos pkill y killall pueden ser utilizados para entregar señales a los
procesos especificados por nombre de comando, o el usuario propietario.
NUMBER SYMBOL ACTION
• Por lo general los nombres asignados a las interfaces de red son eth0, eth1, etc.
NAME TYPE
eth0 Ethernet
• SINTAXIS:
ifconfig interface [options] [address]
Archivos de configuración /etc/sysconfig/network-scripts/
EJEMPLO:
[root@station root]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
IPADDR=10.1.1.3
NETMASK=255.0.0.0
VARIABLE SAMPLE VALUES USE
A required entry, which defines the interface for which this file contains
DEVICE eth0
configuration information.
How the interface should receive its configuration information. "static", which is
the same as "none", and is also the default, indicates that the configuration
BOOTPROTO none|static|dhcp
information will be supplied by the local file. "dhcp" implies that information will
be supplied by a DHCP server whenever the interface is activated.
IPADDR 192.168.0.1 The IP address to associate with the interface.
NETMASK 255.255.255.0 netmask
Should the interface be started automatically as part of the bootup process? If
ONBOOT yes|no the answer is no, the interface would need to be started manually by an
administrator before it can be used. The default is yes.
Can normal users control the interface? By default, only the root user may raise,
USERCTL yes|no
lower, or otherwise configure network interfaces. The default is no.
GATEWAY 192.168.0.254 Gateway to use for routing packets out of the local network. See next lesson.
Comandos ifup/ifdown
o http://cursos.redsena.net/file.php/61/archivo_interfaces.txt
• Archivo /etc/network/interfaces
Las líneas que comienzan con la palabra "auto" se utilizan para identificar
las interfaces físicas que se modificarán cuando se ejecute el comando
ifup -a. (Esta opción es usada por los scripts de arranque del sistema)
• Problemas de dependencias
• La mayoría de los usuarios no tendrán que crear sus propios repositorios, sino
simplemente suscribirse a un repositorio bien conocido en la red o en Internet.
Por lo general, los repositorios se definen en archivos de configuración del lado del
cliente y se encuentran en el directorio /etc/yum.repos.d/ y convencionalmente terminan
con extensión repo.
SUBCOMMAND PROPÓSITO
install Instala nuevo software
remove Remueve paquetes instalados resolviendo dependencias
list Lista paquetes instalados y paquetes disponibles
info Provee información detallada de cada paquete
search Busca por patrones arbitrarios relacionados con el paquete.
resolvdep Install whatever is needed to resolve a RPM dependency.
Realizará un chequeo de los repositorios configurados y
update automáticamente descargará e instalará cualquier actualización
Esencialmente, mantiene el sistema actualizado.
• Dpkg es la herramienta fundamental dentro del sistema de paquetes de Debian
GNU/Linux.
Instalar (-i ó --install) y desinstalar (-r ó --remove) paquetes. Si desea borrar todo lo
instalado por un paquete, incluyendo ficheros de configuración utilice --purge.