![]() |
|
|
|
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| PHP / MySQL Assistance We understand. Not all of you are experienced programmers, but some of you are highly skilled at coding. So we've set aside this forum so you can ask questions, and provide answers to the most commonly asked PHP / MySQL issues. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi, newbie question, been driving me crazy... my server is VPS, and I can't figure out how to automate unzipping of files using SSH. Manually, it seems to work using the following:
gzip -d -f file.txt.gz And in fact, the gz file is auto-deleted (odd, but true?) Can someone pls tell me the correct syntax to run this for numerous files..? This doesn't work: gzip -d -f file2.txt.gz gzip -d -f file3.txt.gz It returns "file2.txt.gz.gz: No such file or directory" (even when I delete the gz extension) And also to continue the steps, if one file isn't found. Thanks! |
|
||||
|
You can do this to unzip a file:
unzip filename.zip to unzip an archive. ![]() You can do this: 1. gunzip filename.tar.gz 2. tar -vxf filename.tar 3. Now you're only left with filename ![]()
__________________
Thanks, Denis Motova Affiliate / Operations Manager HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|