KNOWNHOST WIKI

User Tools

Site Tools


developmental:how-to-compress-or-extract-files-ssh-and-cpanel

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
developmental:how-to-compress-or-extract-files-ssh-and-cpanel [2019/10/11 07:25]
Karson N. [On a Windows 7 PC (multiple files)]
developmental:how-to-compress-or-extract-files-ssh-and-cpanel [2020/05/26 13:15] (current)
Karson N.
Line 3: Line 3:
 {{howhard>2}} {{howhard>2}}
  
 +\\
 ===== Introduction ===== ===== Introduction =====
 When transferring files to or from your server, it's always best to compress them to make the transfer slightly smaller, and most importantly guard against corruption during the transfer process. When transferring files to or from your server, it's always best to compress them to make the transfer slightly smaller, and most importantly guard against corruption during the transfer process.
  
 +\\
 ===== What is compression? ===== ===== What is compression? =====
 Any Windows, Linux and Apple computer are able to compress files. There are several different kinds of compression, but we'll focus on the three most common compression file types: .zip, .tar, and .gz. Zip is a compressed archive (for multple files, usually) while tar is used for a single archive of a file. Gzip (.gz) is the compression of a file or multiple files. Any Windows, Linux and Apple computer are able to compress files. There are several different kinds of compression, but we'll focus on the three most common compression file types: .zip, .tar, and .gz. Zip is a compressed archive (for multple files, usually) while tar is used for a single archive of a file. Gzip (.gz) is the compression of a file or multiple files.
Line 11: Line 13:
 You'll find that most files that are compressed on a Linux server are using the suffix ".tar.gz", while PC's will use the ".zip" compression. Windows and Mac computers have the "zip" utility by default, just like your server. So we'll work with that file type. You'll find that most files that are compressed on a Linux server are using the suffix ".tar.gz", while PC's will use the ".zip" compression. Windows and Mac computers have the "zip" utility by default, just like your server. So we'll work with that file type.
  
 +\\
 ===== How do I compress a file? ===== ===== How do I compress a file? =====
  
Line 17: Line 20:
 {{:developmental:rename_windows.png?nolink&400|}} {{:developmental:rename_windows.png?nolink&400|}}
  
 +\\
 ==== On a Windows 7 PC (single file or folder) ==== ==== On a Windows 7 PC (single file or folder) ====
  
Line 24: Line 28:
   - Type in the name of your compressed archive and hit <Enter>.   - Type in the name of your compressed archive and hit <Enter>.
  
 +\\
 ==== On a Windows 7 PC (multiple files) ==== ==== On a Windows 7 PC (multiple files) ====
  
Line 37: Line 42:
 {{:developmental:rename_mac.png?nolink&400|}} {{:developmental:rename_mac.png?nolink&400|}}
  
 +\\
 ==== On a Mac (single file or folder) ==== ==== On a Mac (single file or folder) ====
  
Line 47: Line 53:
    *Type in the name you wish to rename the archive to, and hit <Return>.    *Type in the name you wish to rename the archive to, and hit <Return>.
  
 +\\
 ==== On a Mac (multiple files) ==== ==== On a Mac (multiple files) ====
  
Line 59: Line 66:
    * Type in the name you wish to rename the archive to, and hit <Return>.    * Type in the name you wish to rename the archive to, and hit <Return>.
  
 +\\
 ===== How do I uncompress the file once I transfer it? ===== ===== How do I uncompress the file once I transfer it? =====
  
 Once you transfer the file to your server using FTP, or via the cPanel File Manager ((cPanel >> Home >> Files >> File Manager) you can uncompress the file(s) you compressed on your computer, and they'll retain the same directory structure in the location you uncompress. Once you transfer the file to your server using FTP, or via the cPanel File Manager ((cPanel >> Home >> Files >> File Manager) you can uncompress the file(s) you compressed on your computer, and they'll retain the same directory structure in the location you uncompress.
  
-{{:developmental:file_manager.png?nolink&800|}}+{{:developmental:file_manager.png?nolink&1200|}}
  
-{{:developmental:open_filemgr.png?nolink&800|}}+{{:developmental:open_filemgr.png?nolink&1200|}}
  
-{{:developmental:press_extract.png?nolink&800|}}+{{:developmental:press_extract.png?nolink&1200|}}
  
-{{:developmental:extract_confirm.png?nolink&800|}}+{{:developmental:extract_confirm.png?nolink&1200|}}
  
-{{:developmental:extraction_results.png?nolink&800|}}+{{:developmental:extraction_results.png?nolink&1200|}}
  
 +\\
 ==== Uncompressing an archive using cPanel's File Manager ==== ==== Uncompressing an archive using cPanel's File Manager ====
  
-  - Login to your cPanel account located at https://domain.tld:2083+  - Login to your cPanel account located at [[https://domain.tld:2083|https://domain.tld:2083]]
   - Navigate to "Home > Files > File Manager" and click on the File Manager Icon.\\ A new tab with the File Manager should open on your browser.   - Navigate to "Home > Files > File Manager" and click on the File Manager Icon.\\ A new tab with the File Manager should open on your browser.
   - On the left side, navigate to the location you transferred your archive to, and click on it.   - On the left side, navigate to the location you transferred your archive to, and click on it.
Line 85: Line 94:
   - Once done, a new popup with the title "Extraction Results" should pop up, describing the uncompression.   - Once done, a new popup with the title "Extraction Results" should pop up, describing the uncompression.
  
-{{:developmental:unzip_ssh.png?nolink&800|}}+{{:developmental:unzip_ssh.png?nolink&1200|}}
  
 +\\
 ==== Uncompressing an archive using SSH ==== ==== Uncompressing an archive using SSH ====
  
Line 94: Line 104:
   - Once done, the command will scroll and describe the uncompression.   - Once done, the command will scroll and describe the uncompression.
  
 +\\
 ==== How do I compress a file on my server? ==== ==== How do I compress a file on my server? ====
  
 You can compress a file on your server just like you can from your computer, though it's a little different. There are multiple ways to do this, but we'll focus on SSH and the cPanel File Manager. You can compress a file on your server just like you can from your computer, though it's a little different. There are multiple ways to do this, but we'll focus on SSH and the cPanel File Manager.
  
-{{:developmental:press_compress.png?nolink&800|}}+{{:developmental:press_compress.png?nolink&1200|}}
  
-{{:developmental:compress_confirm.png?nolink&800|}}+{{:developmental:compress_confirm.png?nolink&1200|}}
  
-{{:developmental:compression_results.png?nolink&800|}}+{{:developmental:compression_results.png?nolink&1200|}}
  
 +\\
 ===== Compressing file(s) and folder(s) in cPanel's File Manager ===== ===== Compressing file(s) and folder(s) in cPanel's File Manager =====
  
-  - Login to your cPanel account located at https://domain.tld:2083+  - Login to your cPanel account located at [[https://domain.tld:2083|https://domain.tld:2083]]
   - Navigate to "Home > Files > File Manager" and click on the File Manager Icon.\\ A new tab with the File Manager should open on your browser.   - Navigate to "Home > Files > File Manager" and click on the File Manager Icon.\\ A new tab with the File Manager should open on your browser.
   - On the left side you can navigate to the folder(s) or file(s) you wish to compress.\\ Keep in mind you can only compress folders and files in the same directory with the File Manager.   - On the left side you can navigate to the folder(s) or file(s) you wish to compress.\\ Keep in mind you can only compress folders and files in the same directory with the File Manager.
Line 116: Line 128:
   - A popup named "Compression Results" should appear, descriibing the compression.   - A popup named "Compression Results" should appear, descriibing the compression.
  
-{{:developmental:zip_ssh.png?nolink&800|}}+{{:developmental:zip_ssh.png?nolink&1200|}}
  
 +\\
 ===== Compressing file(s) and folder(s) via SSH ===== ===== Compressing file(s) and folder(s) via SSH =====
  
developmental/how-to-compress-or-extract-files-ssh-and-cpanel.1570796745.txt.gz · Last modified: 2019/10/11 07:25 by Karson N.