Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Mar 2000 14:52:43 -0500
From:      David_Gadoury@ccnotes.ccity.com
To:        freebsd-questions@FreeBSD.ORG
Subject:   tar question
Message-ID:  <852568A4.006C7023.00@danube.ccity.com>

next in thread | raw e-mail | index | archive | help


what exactly does the following command do. (how does it work)

tar cf - . | (cd /usr/var; tar xf - )

i understand what the following parts do

tar cf
cd /usr/var
tar xf

i understand to a degree that | runs the first part through the second.  i asked
the local linux guy here and he wasn't exactly sure how it worked.  he said
something about the - being standard input or output but he couldn't remember
which.

i hate typing in commands w/o knowing what they do.

thanks for answering such a simplistic question




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?852568A4.006C7023.00>