Web Hosting Forum Login
Not a member yet? Sign up

Zip all files in a directory?

  • FORUMS
  • WEB DESIGN
  • WEB HOSTING OFFERS
  • ADVERTISING
  • WEB HOSTING
  • REQUEST A HOST
  • BEST WEB HOSTING
  • QUICK MENU
  • REGISTER HERE - Join us for FREE
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2014
    Location
    Houston
    Posts
    24
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Thumbs Up/Down
    Received: 0/0
    Given: 1/0

    Zip all files in a directory?

    I am learning Linux and purchased a small vps 1GB of RAM to install hosting software on it. I uploaded many files and folders to my host, I heard that ssh can allow me to zip all files in a directory? how can i do that and how to download my zipped file to my pc?

    Your help would be appreciated!
    Find more about Alison Dadow
    Alison Dadow | Alison Dadow

  2. #2
    Join Date
    Jun 2017
    Posts
    38
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Thumbs Up/Down
    Received: 8/0
    Given: 2/0
    For example you want to zip all files in a folder named : cyberpersons


    You can use this command,

    zip -r cyberpersons.zip cyberpersons

    Now your zip file will be present in the current directory, please note that your current directory should not be "cyberpersons" while creating a zip file.

    After the zip file is created, you can use WinSCP or FileZilla to connect to your vps and download it to your computer.
    || Look for VPS Hosting Offers ||

  3. The Following User Says Thank You to cyberpersons For This Useful Post:
    walker.king89 (06-20-2017)

  4. #3
    Join Date
    Jun 2014
    Location
    Houston
    Posts
    24
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Thumbs Up/Down
    Received: 0/0
    Given: 1/0
    Quote Originally Posted by cyberpersons View Post
    zip -r cyberpersons.zip cyberpersons
    I ran this command on public_html folder and saw zip file there.

    Quote Originally Posted by cyberpersons View Post
    After the zip file is created, you can use WinSCP or FileZilla to connect to your vps and download it to your computer.
    and downloaded zip file to my computer but when I opened it, I don't see .htaccess file in the zip package, seem it ignored hidden files or .htaccess fle. How to be sure I will zip all files in a folder without missing any files or folder.
    Find more about Alison Dadow
    Alison Dadow | Alison Dadow

  5. #4
    Join Date
    Jun 2017
    Posts
    38
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Thumbs Up/Down
    Received: 8/0
    Given: 2/0
    Quote Originally Posted by walker.king89 View Post
    I ran this command on public_html folder and saw zip file there.



    and downloaded zip file to my computer but when I opened it, I don't see .htaccess file in the zip package, seem it ignored hidden files or .htaccess fle. How to be sure I will zip all files in a folder without missing any files or folder.

    Which operating system are your on? Windows or linux?
    || Look for VPS Hosting Offers ||

  6. #5
    Join Date
    Jan 2017
    Location
    Miami, FL
    Posts
    74
    Thanks
    12
    Thanked 11 Times in 11 Posts
    Thumbs Up/Down
    Received: 54/0
    Given: 29/0
    zip yourfilename.zip directory/* .*

    this will zip the hidden files too

Newer Threads

  1. walker.king89
    HostBastic
    Replies: 2 | Views: 59
    Last post by HostBastic, 06-20-2017, 08:19 PM
  2. DaRecordon
    Vimeo Pro vs Amazon s3?
    By DaRecordon in forum Web Hosting
    instacarma
    Replies: 1 | Views: 65
    Last post by instacarma, 06-21-2017, 07:35 AM
  3. Chris Worner
    WHGBTom
    Replies: 3 | Views: 74
    Last post by WHGBTom, 06-20-2017, 08:14 PM
  4. Chris Worner
    macklong
    Replies: 4 | Views: 131
    Last post by macklong, 06-20-2017, 02:19 PM
  5. djsmiley2k
    24x7CSM
    Replies: 5 | Views: 101
    Last post by 24x7CSM, Yesterday, 01:37 AM

Older Threads

  1. Dr. McKay
    hostproton
    Replies: 10 | Views: 202
    Last post by hostproton, 06-20-2017, 09:08 PM
  2. Dr. McKay
    Floxera-Jose
    Replies: 2 | Views: 105
    Last post by Floxera-Jose, 06-20-2017, 09:46 PM
  3. Dr. McKay
    djsmiley2k
    Replies: 2 | Views: 57
    Last post by djsmiley2k, 06-20-2017, 03:08 AM
  4. Dr. McKay
    HostBastic
    Replies: 6 | Views: 186
    Last post by HostBastic, 06-19-2017, 07:08 PM
  5. radwebhosting
    radwebhosting
    Replies: 0 | Views: 90
    Last post by radwebhosting, 06-18-2017, 04:17 AM

Latest Threads

  1. Hannan
    Hannan
    Replies: 0 | Views: 12
    Last post by Hannan, Yesterday, 06:47 PM
  2. Medhahosting
    Medhahosting
    Replies: 0 | Views: 17
    Last post by Medhahosting, Yesterday, 05:59 PM
  3. Stan
    BillEssley
    Replies: 2 | Views: 43
    Last post by BillEssley, Yesterday, 03:31 PM
  4. BillEssley
    BillEssley
    Replies: 0 | Views: 23
    Last post by BillEssley, Yesterday, 02:58 PM
  5. Dr. McKay
    Dr. McKay
    Replies: 0 | Views: 21
    Last post by Dr. McKay, Yesterday, 02:36 PM

Similar Threads

  1. wpspeedster
    LJSHost
    Replies: 7 | Views: 1093
    Last post by LJSHost, 01-13-2017, 09:12 PM
  2. Paul Wellner Bou
    LJSHost
    Replies: 1 | Views: 611
    Last post by LJSHost, 01-08-2017, 02:37 PM
  3. Epic
    Epic
    Replies: 0 | Views: 1080
    Last post by Epic, 02-15-2015, 11:24 AM
  4. yunarel
    Hassan
    Replies: 1 | Views: 932
    Last post by Hassan, 01-27-2015, 05:37 PM
  5. ellys
    Selling PR 5 Old Directory
    By ellys in forum Link Sales
    ellys
    Replies: 0 | Views: 1747
    Last post by ellys, 04-17-2014, 04:53 AM

Posting Permissions

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

Web Hosting Forum

ForumWeb.Hosting is a web hosting forum where you’ll find in-depth discussions and resources to help you find the best hosting providers for your websites or how to manage your hosting whether you are new or experienced. You’ll find it all here. With topics ranging from web hosting, internet marketing, search engine optimization, social networking, make money online, affiliate marketing as well as hands-on technical support for web design, programming and more. We are a growing community of like-minded people that is keen to help and support each other with ambitions and online endeavors. Learn and grow, make friends and contacts for life.

Community

The world's smartest hosting providers come here to discuss & share what's trending in the web hosting world!
Copyright ©2017, ForumWeb.Hosting. All rights reserved. Web Hosting Forum for webmasters, web hosting providers, designers and web developers.

Welcome to Forum Web Hosting

The World's Number 1 Web Hosting Community, Reviews & Services

Log in!

Continue with Facebook
Continue With Email. By signing up you indicate that you have read and agree to the Terms of Service and Privacy Policy.

Sign in Manually

Need an account? Sign up now!