Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Web Hosting Forum


You are currently viewing our Web Hosting Forum as a guest. Please register to participate.
Login



Reply
Looking for some SHELL magic
Old 01-27-2011, 09:17 PM Looking for some SHELL magic
TWD
TWD's Avatar
King Spam Talker

Posts: 1,190
Trades: 0
I'm very much a beginner at using SHELL
but hope someone can get me pointing in the right
direction here.

Lets say I have an empty public_html directory.
I have a Zip file that contains the full installation
for an ecommerce system I want to install.

Now I can upload the zip file to the root directory
and uncompress it using the CPanel file manager.
That's all fine, but it puts everything into a subdirectory
so that the active URL becomes
www.mydomain.com/ecommerce/index.php
when what I really want is everything to get
unpacked in the root directory so the active URL looks
like this
www.mydomain.com/index.php

The alternative is just to unpack the zip on my desktop
first and then FTP everything from there.
But of course its terribly inefficient.

Is there an easier way to do what I want with SHELL commands?
__________________
RATE-MY-WEBSITE.com "Free website reviews by real web professionals"
Please login or register to view this content. Registration is FREE
TWD is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-27-2011, 10:35 PM Re: Looking for some SHELL magic
Novice Talker

Posts: 8
Trades: 0
If the server has the "unzip" command installed, you can use that (more information here: http://linux.die.net/man/1/unzip check the -d option). Also, if you like cpanel - you can still use that and then in shell go to the document root and run "mv ecommerce/* .".
jenny4pres is offline
Reply With Quote
View Public Profile
 
Old 01-28-2011, 08:24 AM Re: Looking for some SHELL magic
TWD
TWD's Avatar
King Spam Talker

Posts: 1,190
Trades: 0
Quote:
Originally Posted by jenny4pres View Post
Also, if you like cpanel - you can still use that and then in shell go to the document root and run "mv ecommerce/* .".
OK. THAT'S what I'm talking about

Thanks a lot.
__________________
RATE-MY-WEBSITE.com "Free website reviews by real web professionals"
Please login or register to view this content. Registration is FREE
TWD is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Looking for some SHELL magic
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11746 seconds with 12 queries