[CentOS] tar question

Michael Boman michael.boman at gmail.com
Sat Sep 3 16:20:04 UTC 2005

On 9/4/05, Todd Cary <todd at aristesoftware.com> wrote:
> Basic tar question:
> I have created a ar file with
> tar -prvf /tmp/ib_backup.tar /opt/interbase/data/*
> The file has been copied to another box and I want to untar the file into
> /opt/interbase/data/
> I am not sure about the syntax; how to specify where I want the data to
> be placed.
> Here is my start of the command:
> tar -xvf /tmp/ib_backup.tar                   #The tar file is in /tmp

You can always use the '-C' option to tar, which specifies the
destination directory.

Best regards
  Michael Boman

IT Security Researcher & Developer

More information about the CentOS mailing list