Clearning space - File compression issue

Hi,

We have access to 2 filesystems:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/system-oraoid 30G 30G 119M 100% /app
/dev/mapper/system-tmp 2.0G 442M 1.6G 22% /tmp

As you can observe the file system on /app is full. In order to recover the space, I need to compress the logs on /app. I have a log file of 3.9 Gb in /app which needs to be compressed. How can I do that?

Options attempted:

  1. gzip - It will create file over the same place. However there is no space available in /app
  2. zip - this doesn't support file of size greater than 2 Gb. Since zip can redirect the compressed file to /tmp directory, it would have been better choice had it supported bigger log files.
  3. Copy the log to /tmp and then gzip - no possible since the /tmp size in just 2 Gb

Unfortunately, I don't have admin access to install any 3rd party utility. Please help.

Try if this works

gzip -c filename > /tmp/filename.gz

This works. Thanks a lot dude. :b: