Operating instructions
SEA M300USERSGUIDE
GENERALINFORMATION
48
1. In a QNX shell type gzip filename where ‘filename’ is the file you wish to compress. For
example, gzip seam300.tar will compress the file ‘seam300.tar’.
2. Type ls -a. The compressed file should have the extension ‘.gz’ appended to the end of it.
To decompress files.
1. In a QNX shell, type gunzip filename where ‘filename’ is the file you wish to compress. For
example, gunzip seam300.tar.gz will decompress the file ‘seam300.tar.gz’.
2. Type ls -a. The compressed file should have the extension ‘.gz’ removed from the end of it.
To compress a file (for example, 120101.sea) keeping the original file, use gzip -c 120101.sea
>120101.sea.gz
Note: Forfurtherdetailsonusingthegzip/gunziputilities,refertotheQNX4documentation
(See “Getting
Help for QNX 4 and Photon” on page 31).
GROUPING/UNGROUPINGFILES(THE‘TAR’UTILITY)
To group a set of files, in order to keep files permissions.
1. In the directory containing the files you wish to group, type tar -cvf tarfile.tar
filenames
where ‘tarfile.tar’ is the filename of the tar file to be created and ‘filenames’ are the
filenames, one after the other separated by a space, of the files that are to be grouped into
‘tarfile.tar’. For example, tar -cvf seam300.tar * Note that this example will create a tar file
called ‘seam300.tar’ and the ‘*’ in the command sentence instructs QNX to use all of the files in
that particular directory.
2. Type ls -a to verify that the tar file has been created.
To group all files in the current directory excluding ‘*.sea’ files use:
1. In the directory containing the files you wish to group, type find ! -name ‘*.sea’ -type f
| xargs tar -cvf tarfile.tar
where ‘tarfile.tar’ is the filename of the tar file to be created.
2. Type ls -a to verify that the tar file has been created.
To un-group a set of files.
1. In the directory where you wish the files to be ungrouped, type tar -xvf tarfile.tar where
‘tarfile.tar’ is the filename of the tar file to be ungrouped. For example,
tar -xvf seam300.tar
Note that this example will ungroup the file ‘seam300.tar’ into the current directory.
2. Type
ls -a to verify that the tar files have been ungrouped.
Note: Forfurtherdetailsonusingthetarutility,refertotheQNX4documentation(See “Getting Help for
QNX 4 and Photon” on page 31).