1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to extract zip files using SSH - Plesk

Discussion in 'Site & Server Administration' started by joujoba, Feb 10, 2010.

  1. #1
    hello

    I'm running Linux 2.6.28.7 with plesk v9.3.0.
    SSH is running and I'm logged in now, when i use the ls command i receive:

    but when entering: bash-3.2cd /httpdocs
    i receive:
    cd: /httpdocs: No such file or director

    the file images.zip inside the folder httpdocs isn't extracting also (samew problem)

    thanks for the help
    btw is there an easier way to extract zip in plesk?
    SEMrush
     
    joujoba, Feb 10, 2010 IP
    SEMrush
  2. sahabcse

    sahabcse Active Member

    Messages:
    272
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    90
    #2
    paste the o/p of

    #pwd
     
    sahabcse, Feb 11, 2010 IP
  3. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    999
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    130
    #3
    You are confusing absolute and relative paths. The above command, pwd, prints the working directory, basically, where you currently are. You need to figure out where the httpdocs folder is (not sure with plesk). What user are you logged in as in ssh?
     
    RHS-Chris, Feb 11, 2010 IP
  4. alan_smithee

    alan_smithee Active Member

    Messages:
    873
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    60
    #4
    try this:
    unzip /httpdocs/images.zip
    Code (markup):
    or

    cd httpdocs
    unzip images.zip
    Code (markup):
     
    alan_smithee, Feb 11, 2010 IP
  5. unkn000wn

    unkn000wn Member

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #5
    yes try using absolute paths.

    use command pwd to get it and then add your images.zip

    root@tripo:~/Documents> pwd
    /home/user1/Documents

    root@tripo:~/Documents> unzip /home/user1/Documents/images.zip
     
    unkn000wn, Feb 20, 2010 IP
  6. joujoba

    joujoba Peon

    Messages:
    100
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    what i have now is: [root@XXX-XXX-XXX-XXX ~]#
    I cannot locate httpdocs, even though on the FTP it's directly under /
    []# cd /httpdocs
    -bash: cd: /httpdocs: No such file or directory
    []# cd httpdocs
    -bash: cd: httpdocs: No such file or directory

    on ls i can only see two folders in blue: parallels & psa which leads to nothing :(

    and if i tried:
    any idea? thanks
    i'm using v9.3.0 of plesk
     
    joujoba, Feb 24, 2010 IP
  7. alan_smithee

    alan_smithee Active Member

    Messages:
    873
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    60
    #7
    your httpdocs is probably in /home dir
     
    alan_smithee, Feb 24, 2010 IP
  8. krisantabela

    krisantabela Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    i have worked with linux systems that has plesk

    usually the path for the httpdocs is

    /var/www/vhosts/domain.com/httpdocs

    you might be having a problem on the path, try doing pwd and see where you are now
     
    krisantabela, Feb 25, 2010 IP