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
    26
    Thanks
    3
    Thanked 2 Times in 2 Posts
    Thumbs Up/Down
    Received: 0/0
    Given: 11/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
    42
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Thumbs Up/Down
    Received: 12/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.

  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
    26
    Thanks
    3
    Thanked 2 Times in 2 Posts
    Thumbs Up/Down
    Received: 0/0
    Given: 11/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
    42
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Thumbs Up/Down
    Received: 12/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?

  6. #5
    Join Date
    Jan 2017
    Location
    Miami, FL
    Posts
    89
    Thanks
    13
    Thanked 12 Times in 12 Posts
    Thumbs Up/Down
    Received: 60/0
    Given: 30/0
    zip yourfilename.zip directory/* .*

    this will zip the hidden files too

Newer Threads

  1. walker.king89
    CaygriWEB
    Replies: 7 | Views: 284
    Last post by CaygriWEB, 07-07-2017, 06:35 AM
  2. DaRecordon
    Vimeo Pro vs Amazon s3?
    By DaRecordon in forum Web Hosting
    instacarma
    Replies: 1 | Views: 599
    Last post by instacarma, 06-21-2017, 07:35 AM
  3. Chris Worner
    vinaya
    Replies: 5 | Views: 298
    Last post by vinaya, 08-06-2017, 06:19 PM
  4. Chris Worner
    HostKoi
    Replies: 11 | Views: 897
    Last post by HostKoi, 07-06-2017, 11:17 PM
  5. djsmiley2k
    radwebhosting
    Replies: 6 | Views: 793
    Last post by radwebhosting, 08-10-2017, 07:42 AM

Older Threads

  1. Dr. McKay
    stew4
    Replies: 22 | Views: 1164
    Last post by stew4, 08-14-2017, 01:01 PM
  2. Dr. McKay
    Floxera-Jose
    Replies: 2 | Views: 749
    Last post by Floxera-Jose, 06-20-2017, 09:46 PM
  3. Dr. McKay
    Harry P
    Replies: 5 | Views: 819
    Last post by Harry P, 07-03-2017, 02:24 AM
  4. Dr. McKay
    HostBastic
    Replies: 6 | Views: 744
    Last post by HostBastic, 06-19-2017, 07:08 PM
  5. radwebhosting
    radwebhosting
    Replies: 0 | Views: 154
    Last post by radwebhosting, 06-18-2017, 04:17 AM

Latest Threads

  1. David Beroff
    VirtuBox
    Replies: 1 | Views: 18
    Last post by VirtuBox, Today, 03:37 AM
  2. exa-edward
    exa-edward
    Replies: 4 | Views: 113
    Last post by exa-edward, Today, 09:55 AM
  3. JFSG
    JFSG
    Replies: 0 | Views: 27
    Last post by JFSG, Yesterday, 07:43 PM
  4. UltratechHost
    UltratechHost
    Replies: 0 | Views: 15
    Last post by UltratechHost, Yesterday, 04:31 PM
  5. macklong
    macklong
    Replies: 0 | Views: 21
    Last post by macklong, Yesterday, 01:10 AM

Similar Threads

  1. wpspeedster
    LJSHost
    Replies: 7 | Views: 1188
    Last post by LJSHost, 01-13-2017, 09:12 PM
  2. Paul Wellner Bou
    LJSHost
    Replies: 1 | Views: 646
    Last post by LJSHost, 01-08-2017, 02:37 PM
  3. Epic
    Epic
    Replies: 0 | Views: 1112
    Last post by Epic, 02-15-2015, 11:24 AM
  4. yunarel
    Hassan
    Replies: 1 | Views: 962
    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: 1773
    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!