Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1531552@lab-4-siee245:~$ mkdir carpeta1 carpeta2 temporal
- 1531552@lab-4-siee245:~$ cd temporal/
- 1531552@lab-4-siee245:~/temporal$ pwd
- /home/samba/homes/1531552/temporal
- 1531552@lab-4-siee245:~/temporal$ touch prueba.txt
- 1531552@lab-4-siee245:~/temporal$ cp prueba.txt ../carpeta1/
- 1531552@lab-4-siee245:~/temporal$ cd ../carpeta1/
- 1531552@lab-4-siee245:~/carpeta1$ ls
- prueba.txt
- 1531552@lab-4-siee245:~/carpeta1$ # Pregunta 3
- 1531552@lab-4-siee245:~/carpeta1$ cd ..
- 1531552@lab-4-siee245:~$ rmdir temporal/
- rmdir: fallo al borrar 'temporal/': El directorio no está vacío
- 1531552@lab-4-siee245:~$ # No nos deja borrar el directorio porque no esta vacio
- s vacios
- cursivamente los ficheros del directorio. El mismo manual de 'rmdir' lo dice.
- 1531552@lab-4-siee245:~$ rm -r temporal/
- 1531552@lab-4-siee245:~$ # Pregunta 4
- 1531552@lab-4-siee245:~$ wget http://www.gutenberg.org/cache/epub/2000/pg2000.txt
- --2019-10-02 13:08:29-- http://www.gutenberg.org/cache/epub/2000/pg2000.txt
- Resolviendo www.gutenberg.org (www.gutenberg.org)... 152.19.134.47, 2610:28:3090:3000:0:bad:cafe:47
- Conectando con www.gutenberg.org (www.gutenberg.org)[152.19.134.47]:80... conectado.
- Petición HTTP enviada, esperando respuesta... 200 OK
- Longitud: 2198927 (2,1M) [text/plain]
- Grabando a: “pg2000.txt”
- pg2000.txt 100%[=====================================>] 2,10M 571KB/s en 3,8s
- 2019-10-02 13:08:33 (571 KB/s) - “pg2000.txt” guardado [2198927/2198927]
- 1531552@lab-4-siee245:~$ cat pg2000.txt
- The Project Gutenberg EBook of Don Quijote, by Miguel de Cervantes Saavedra
- This eBook is for the use of anyone anywhere at no cost and with
- almost no restrictions whatsoever. You may copy it, give it away or
- re-use it under the terms of the Project Gutenberg License included
- with this eBook or online at www.gutenberg.net
- Title: Don Quijote
- Author: Miguel de Cervantes Saavedra
- 1531552@lab-4-siee245:~$ less
- .android/ .cache/ Documentos/ .local/ .profile
- .AndroidStudio3.1/ carpeta1/ Escritorio/ .mozilla/ Público/
- .bash_history carpeta2/ .gnupg/ Música/ .sqldeveloper/
- .bash_logout .config/ .ICEauthority pg2000.txt typescript
- .bashrc Descargas/ Imágenes/ Plantillas/ Vídeos/
- 1531552@lab-4-siee245:~$ less
- .android/ .cache/ Documentos/ .local/ .profile
- .AndroidStudio3.1/ carpeta1/ Escritorio/ .mozilla/ Público/
- .bash_history carpeta2/ .gnupg/ Música/ .sqldeveloper/
- .bash_logout .config/ .ICEauthority pg2000.txt typescript
- .bashrc Descargas/ Imágenes/ Plantillas/ Vídeos/
- 1531552@lab-4-siee245:~$ mkdir temporal
- 1531552@lab-4-siee245:~$ cp pg2000.txt temporal/
- 1531552@lab-4-siee245:~$ # Pregunta 5
- 1531552@lab-4-siee245:~$ cd temporal/
- 1531552@lab-4-siee245:~/temporal$ ls *.txt
- pg2000.txt
- 1531552@lab-4-siee245:~/temporal$ # El resultado en este caso son el/los ficheros que acaben en .txt
- 1531552@lab-4-siee245:~/temporal$ cat *.txt
- The Project Gutenberg EBook of Don Quijote, by Miguel de Cervantes Saavedra
- This eBook is for the use of anyone anywhere at no cost and with
- almost no restrictions whatsoever. You may copy it, give it away or
- re-use it under the terms of the Project Gutenberg License included
- with this eBook or online at www.gutenberg.net
- Title: Don Quijote
- Author: Miguel de Cervantes Saavedra
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement