You are on page 1of 2

*ls = listar archivos

-a = listar archivos incluso los ocultos (comienzan con punto, ej .ext)


-l = listado ampliado
-r = lista los archivos en orden inverso
-R = lista recursivamente

*touch = cambia los metadatos. si no existe el fichero lo crea.

*mkdir = crea directorio

*cd = cambiar de posici�n

userdel <nombre usuario> = elimina el usuario sin sus datos.


userdel -r <nombre usuario> = elimina el usuario y sus datos.
rm -r <direccion> = elimina directorio y sus contenidos de forma recursiva.
rmdir <direccion> = elimina directorio vac�o.

*tar -cvf archivo.tar /dir/a/comprimir/


-c : indica a tar que cree un archivo.
-v : indica a tar que muestre lo que va empaquetando.
-f : indica a tar que el siguiente argumento es el nombre del fichero.tar.
*tar -xvf archivo.tar
-x : indica a tar que descomprima el fichero.tar.
-v : indica a tar que muestre lo que va desempaquetando.
-f : indica a tar que el siguiente argumento es el nombre del fichero a
desempaquetar.
*gzip -9 fichero
-9 : le indica a gz que utilice el mayor factor de compresi�n posible.
*tar -czvf archivo.tar.gz ficheros
*tar -xzvf archivo.tar.gz

476 configurar eth0


654 ftp

1.-vi /etc/default/grub
*agregar GRUB_CMDLINE_LINUX="vconsole.font=latarcyrheb-sun16 crashkernel=auto rhgb
quiet net.ifnames=0 biosdevname=0"
2.-grub2-mkconfig -o /boot/grub2/grub.cfg
3.-mv /etc/sysconfig/network-scripts/{ifcfg-enp0s3,ifcfg-eth0}
4.-sed -i 's,enp0s3,eth0,g' /etc/sysconfig/network-scripts/ifcfg-eth0
5.-reboot
6.-vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
NM_CONTROLLED=no

*ifdown eth0
ifup eth0
7.-
chkconfig network on
service network restart
8.-
systemctl disable NetworkManager
systemctl stop NetworkManager
chkconfig network on
service network start

1.- yum -y install vsftpd


2.- systemctl start vsftpd.service
3.- vi /etc/vsftpd/vsftpd.comf ---anonymous_enable=yes
---local_enable=yes
4.- firewall-cmd --permanent --add-service=ftp
5.- systemctl restart firewalld.service
6.- vi /etc/vsftpd/vsftpd.conf
agregar: anon-root=/home/miruta (debe existir en el sistema)
7.- vi /etc/vsftpd/chroot_list
agregar:
chroot_local_user=yes
chroot_list_enable=yes
chroot_list_file=/etc/vsftpd/chroot_list
8.- useradd -g ftp -d /home/usuario nombreusuario
9.-passwd nombreusuario
10.- setsebool -P ftp_home_dir on

10.0.2.15

You might also like