Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In the section "Installing Portage", the Gentoo installation docs say:

# tar xvjf /mnt/gentoo/portage-latest.tar.bz2 -C /mnt/gentoo/usr

What does this command do?

share|improve this question

Tar is used to handle archives (historically saved on tapes).

  • The x tells it to extract files from the archive
  • v stands for verbose
  • j for bzip2 archive
  • f indicates the file name
  • finally: C tells it to change directory (so the package content will be unpacked there)

See also man tar.

share|improve this answer

If you ever need to know what a parameter does again, try to read the man first. The command man tar, and then doing /-C will get you to the section describing what -C stands for, which in this example represents 'change directory' (i.e. sends the results of the unpacking to /mnt/gentoo/usr).

share|improve this answer

It unpacks /mnt/gentoo/portage-latest.tar.bz2 in /mnt/gentoo/usr/

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .