The uncompress command is used to decompress files that have been compressed using the compress command and have the ".Z" extension. It performs the same operation as compress -d. If your distribution does not include this tool, you can also use gunzip to decompress ".Z" files.
Here is the syntax for the uncompress command:
uncompress [OPTIONS] FILE .
In this syntax, "FILE" is the name of the compressed file you want to decompress.
Common options for the uncompress command include:
$ uncompress *.Z ← 解壓縮工作目錄內所有〝.Z〞檔案 |
This command decompresses all files with a ".Z" extension in the current working directory.
Alternatively, you can achieve the same result using gunzip, as you mentioned.
For more uncompress examples and information, you can refer to the provided link.