#Linux Tema 3 #Joaquín Bello Jiménez
ls *.jpg
ls /isr/bin j*
ls /usr/bin k?a*
ls /bin *n
ls -R /etc
mkdir /home/joaquin/test cp /bin/gzip /home/joaquin/test cp /home/joaquin/test/gzip /home/joaquin/test/gzip2
mv test test2 (Cambiar nombre de test) mkdir test3 (Crear test3) cp test2/* /test3 (Copiar todo en test3) rm -R test2 (borrar test2)
Si puedes crearlo, es mala idea crear archivos con caracteres especiales. Los nombres de los archivos deben ser de texto simple para no interferir con comandos. Letras de A-Z(sin ñ ni tildes) y en minúscula.
cp -u -R multimedia/* multimedia_test
rm -i -R multimedia/pictures/others
mv multimedia/video/films.txt multimedia/my_films.txt
#Ejercicios Tema 4
654 - rw-r-xr-- 766 777 520 - r-x-w---- 764 - rwxrw-r--
addgroup office1, office2
adduser gearoid -g office1 adduser paul -g office2
adduser anna -g office2 adduser emma -g office2
su gearoid cd touch topsecret.txt chmod 600 topsecret.txt
touch sales.txt chmod g+rw sales.txt
su anna touch amployees.txt chmod 664 amployees.txt
adduser student cd /home/anna sudo cp employees.tx/home/student cd/home/student sudo chown student employees.txt sudo chgrp office2 employees.txt
No, porque n otienes acceso a la carpeta.