Find the answer to your Linux question:
Results 1 to 4 of 4
Hi in the following command what is f? $ tar -cvf all.tar g b d I checked the man, I didnt understand. even when we extract we req f, i ...
  1. #1
    Just Joined!
    Join Date
    Jan 2011
    Posts
    5

    $ tar -cvf all.tar g b d . What is f?

    Hi
    in the following command what is f?
    $ tar -cvf all.tar g b d

    I checked the man, I didnt understand.
    even when we extract we req f, i tried without it, it doesnt work.
    Thanks..

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,970
    -cvf : c)reate archive with v)erbose output using the f)ile named all.tar and put the contents of local directories g, b, and d in that file.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    I believe it stems from its history. Tar = tape archive, originally. The -f flag tells tar it's reading from or writing to a file, not a tape device or whatever the default is these days. Your file name, all.tar, is the argument to the -f flag.

  4. #4
    Just Joined!
    Join Date
    Jan 2011
    Posts
    5
    Thanks Guys.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...