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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -