Extracting a file with bash

Discussion in 'Site & Server Administration' started by splatcatballa99, Oct 22, 2007.

  1. #1
    How do I extract a file using bash?
     
    splatcatballa99, Oct 22, 2007 IP
  2. nwilkens

    nwilkens Member

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #2
    Bash is the shell, or command language interpreter..

    Can you explain a bit further?
     
    nwilkens, Oct 22, 2007 IP
  3. Camay123

    Camay123 Well-Known Member

    Messages:
    3,423
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #3
    Maybe this :

     
    Camay123, Oct 22, 2007 IP
  4. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #4
    OR if it's a zip or rar, then you'll need unzip and unrar packages installed.
     
    agnivo007, Oct 22, 2007 IP
  5. splatcatballa99

    splatcatballa99 Well-Known Member

    Messages:
    400
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    130
    Digital Goods:
    1
    #5
    Ok, it's a rar, how do I install these packages.
     
    splatcatballa99, Oct 23, 2007 IP
  6. hycari

    hycari Peon

    Messages:
    228
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Use tar to extract it, and after that you can install it.
     
    hycari, Oct 23, 2007 IP
  7. inworx

    inworx Peon

    Messages:
    4,860
    Likes Received:
    201
    Best Answers:
    0
    Trophy Points:
    0
    #7
    tar for rar tar etc.
    unzip for .zip
    gunzip for gunzip.

    Search on Google for EXACT parameters of the command you're trying to run, or it might cause an error in file, it wrong parameter is chosen.
     
    inworx, Oct 23, 2007 IP
  8. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Assuming you have redhat based OS, type in shell :

    To install unrar package :
    # yum install unrar

    To extract a rar archive :
    # unrar e file.rar
     
    agnivo007, Oct 23, 2007 IP
  9. splatcatballa99

    splatcatballa99 Well-Known Member

    Messages:
    400
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    130
    Digital Goods:
    1
    #9
    Thank you :) I will try the things above and get back to you guys.
     
    splatcatballa99, Oct 23, 2007 IP