Results 1 to 4 of 4

Thread: extract .tgz file to filesystem (/) with the terminal.

  1. #1
    Join Date
    Feb 2011
    Beans
    8
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Question extract .tgz file to filesystem (/) with the terminal.

    I want to copy the files in my .tgz file to / with the terminal. so i don't want to move them to a folder just the harddrive itself.
    How can i do this?

  2. #2
    Join Date
    Apr 2005
    Location
    Wales, UK
    Beans
    36
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: extract .tgz file to filesystem (/) with the terminal.

    To extract from .tar.gz

    Code:
    tar -zxvf FILENAME
    However, is there any particular reason why you want to extract them to / rather than to your home directory? I'd advise against extracting into the file system as it should really be left alone unless you have a specific reason to put files there and know what you are doing.

  3. #3
    Join Date
    Feb 2011
    Beans
    8
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: extract .tgz file to filesystem (/) with the terminal.

    It's a backup file. So i want to replace te folders without removing the originals.
    for example:
    In my .tgz file i have the folder /usr/share/

    And i want to replace this folder. but without removing the original /usr/ folder + content.
    is this possible?

  4. #4
    Join Date
    Oct 2010
    Beans
    50

    Re: extract .tgz file to filesystem (/) with the terminal.

    Yes, that should work. I just did the same thing myself. Any files that get in the way will be overwritten, of course, so be careful with the sudoing.

Tags for this Thread

Bookmarks

Posting Permissions

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