Find the answer to your Linux question:
Results 1 to 4 of 4
how do i use the option to set thye block size option in tar command I tried to do it by "tar -b 1 " but it gave me errors ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    May 2005
    Location
    Chennai,TamilNadu, India
    Posts
    141

    tar command


    how do i use the option to set thye block size option in tar command

    I tried to do it by

    "tar -b 1 " but it gave me errors such as

    tar: You must specify one of the `-Acdtrux' options

    i am not too sure.. or should u specify some file with it..

    what is the command syntax.. since i need to set the block size to 512 bytes from the default 10240 bytes...

    please advice

  2. #2
    Banned CodeRoot's Avatar
    Join Date
    Sep 2005
    Posts
    567
    The problem is not with the '-b' option. What the error is telling you is that whatever other options you may or may not use, you must use one of the options 'Acdtrux' (which tell 'tar' what you want to do - create, extract, etc.).

    From the 'tar' man page:

    One of the following options must be used:

    -A, --catenate, --concatenate
    append tar files to an archive

    -c, --create
    create a new archive

    -d, --diff, --compare
    find differences between archive and file system

    --delete
    delete from the archive (not for use on mag tapes!)

    -r, --append
    append files to the end of an archive

    -t, --list
    list the contents of an archive

    -u, --update
    only append files that are newer than copy in archive

    -x, --extract, --get
    extract files from an archive
    Please see the 'tar' man page for more information:

    Code:
    man tar

  3. #3
    Linux Newbie
    Join Date
    May 2005
    Location
    Chennai,TamilNadu, India
    Posts
    141
    but still how do you specify the -b option..
    what is the syntax for that... the others i understood

  4. #4
    Banned CodeRoot's Avatar
    Join Date
    Sep 2005
    Posts
    567
    but still how do you specify the -b option.. what is the syntax for that...
    just like you had it ('-b 1', assuming that is the value you wanted)

Posting Permissions

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