Documentos de Académico
Documentos de Profesional
Documentos de Cultura
México
Objetivo
En esta práctica se va a trabajar con archivos, se describirá como archivar y recuperar
documentos, así como también se describirán los comandos tar y jar.
Descripción
1. What type of file does the tar command create?
Un archivo de tipo tar
2. Archive your home directory on a tape.
3. Which command do you use to enable the system to detect a new diskette?
El comando volcheck -v /dev/diskette o el comando volcheck -v
4. Which command do you use to copy files to a diskette?
El comando cp
5. Archive your home directory to a file called username.tar in the /tmp directory by using
the tar command.
6. Use the tar command to view the contents of your home directory archive.
7. Create a new directory in your home directory called Retrieve. Use the cd command to
move to the new directory. You can use the new directory to practice retrieving files from
archives. Retrieve the contents of the archive tar file that you created on tape.
8. Ensure that all files in the ~/dir1 directory are readable, then use the jar command to
archive the ~/dir1 directory.
9. Use the tar command to archive the ~/dir1 directory and the contents of the dir1
directory.
10. Distinguish between the tar command and the jar command.
El comando tar archiva documentos en un solo documento llamado tar
El comando jar comprime el nombre de los archivos en adición para archivarlos
11. Compare the current size of the tar file and the jar file archives.
Conclusiones
Los comandos vistos en esta práctica se pueden utilizar para hacer que varios documentos estén
guardados en un mismo archivo y así estos no ocupen mucho espacio. Por otro lado, estos sirven
para recuperar archivos que fueron archivados con anterioridad
Bibliografía
Sun Microsystems, Inc. (2005). UNIX® Essentials Featuring the Solaris™ 10 Operating
System SA-100-S10. Santa Clara, California 95054, U.S.A.: Network Circle