Different ways to tar in Linux -
guys can take @ following:
tar cf foo.tar foo/ bar/ tar cf foo.tar a.txt b.txt tar -cf foo.tar foo/ are 3 lines of commands same this?
tar cf foo.tar foo/
effectively, yes.
since, in group of three, you're creating archive file fresh each time c or -c option, last 1 matter (a).
so comes down whether following 2 equivalent:
tar -cf foo.tar foo/ tar cf foo.tar foo/ and are: - in front of c optional.
(a) unless have set directory permissions , umask settings in such bizarre way can create files not overwrite them :-)
Comments
Post a Comment