ilrainyday 发表于 2002-11-13 07:53:50

newbie: Why can't use tar -cvfz ???

I type following:

   tar -cvfz pack.tar.gz test.txt test1.txt

then Linux report:

   tar: pack.tar.gz:cannot stat:no such file or directory
   test.txt
   test1.txt
   tar:error exit delayed form previous errors.

why??!! I'm sure I have those file under my working diretory.
where is error I make??

twlkwind 发表于 2002-11-13 09:01:03

try to use tar cvzf

ilrainyday 发表于 2002-11-13 13:10:09

well ,thanks ,everything is ok.
but,what distinction between "tar -czfv"and "tar czfv"??

twlkwind 发表于 2002-11-13 16:53:29

tar doesn't need '-' and 'f' must be the last parameter which means 'file'.
页: [1]
查看完整版本: newbie: Why can't use tar -cvfz ???