[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tarlz : can't understand option "--output=<file>"

From: Antonio Diaz Diaz
Subject: Re: tarlz : can't understand option "--output=<file>"
Date: Thu, 30 Sep 2021 17:14:13 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv: Gecko/20110420 SeaMonkey/2.0.14

Hi Fractal,

101@mailu.io wrote:
I was trying to compress a folder using tarlz.

I guess you mean you were trying to archive a folder with '-c'. (Tarlz has an option named '--compress').

I used the option '--output=path/to/some/file'
But it seemed like I was getting garbage output in my terminal.

This is because option -f was absent and the archive was being written to standard output (the terminal).

I assumed that is the option for output file .i.e the archive.

Yes, but only when compressing an existing POSIX tar archive with '-z'. Maybe I should make '-o, --output' a synonym for '-f, --file' when creating an archive.

Anyway '--file=<archive>' seems to do the work that I was trying to do.
But then, '--output=<file>' is not clear to me. What does it do?

-o file
Write the compressed output to file. '-o -' writes the compressed output to standard output. Currently '--output' only works with '--compress'.

Best regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]