★ FAQ ★ Development environment
■ | Advance ▼
FAQ / Development environment UNIX environment
What about data compression on UNIX?
- Q) How do I decompress a UNIX compressed file?
- A)
- There are generally two types of UNIX compressed files:
LHA of DOS performs archiving and compression at the same time, but in UNIX, the two processes are generally performed separately. Archive is a program called tar, and compression uses gzip or compress. Therefore, if you want to compress the entire directory, first tar the directory image into one file and then compress it with gzip or compress.
To explain how to use each- compress file:
- Uncompress files with extensions .Z, .taz, etc. using the uncompress program that comes standard with UNIX. The format is
uncompress filename
- However, if the extension is not .Z, we will search for the file name with .Z added to the file name, so you need to change the file name in advance for such a file.
- gzip file:
- It has .gz, .tgz, etc. extensions and is compressed using GNU gzip.
To unzip gzip -df filename
- Or
gunzip filename
- tar file:
- When you unzip a file such as .taz or .tgz, it changes to another file called .tar. This is a collection of multiple files for each directory information, and to disassemble this, use tar, a program that comes standard with UNIX.
tar xvf filename
- * If you have GNU tar (gtar),
gtar zxvf foo.tgz
- You can also decompress and unarchive at the same time.
Ask your system administrator if you have GNU tar.
■ | Advance ▼
★ FAQ ★ Development environment
Copyright SEGA ENTERPRISES, LTD ,. 1997