{"id":1945,"date":"2022-06-04T02:25:41","date_gmt":"2022-06-04T02:25:41","guid":{"rendered":"https:\/\/blog.hostinger.io\/fr\/support\/2022\/06\/04\/5966088-comment-extraire-des-archives-avec-ssh-chez-hostinger\/"},"modified":"2026-05-08T22:10:44","modified_gmt":"2026-05-08T22:10:44","slug":"5966088-comment-extraire-des-archives-avec-ssh-chez-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/fr\/support\/5966088-comment-extraire-des-archives-avec-ssh-chez-hostinger\/","title":{"rendered":"Comment Extraire Des Archives Avec SSH Chez Hostinger"},"content":{"rendered":"<p class=\"no-margin\">En utilisant le Gestionnaire de Fichiers, il est possible d\u2019<b><a data-click-id=\"hgr-post-content-link-extraire-des-fichiers-compresses\" href=\"\/fr\/support\/1583613-comment-extraire-des-archives-a-l-aide-du-gestionnaire-de-fichiers\/\" target=\"_blank\" class=\"intercom-content-link\">extraire des fichiers compress\u00e9s<\/a><\/b>. Si vous souhaitez le faire avec SSH, voici ce que vous devez faire :<\/p>\n<p class=\"no-margin\">\n<h2 id=\"h_e3e45647a8\">\u00c9tape 1 \u2013 Pr\u00e9paration<\/h2>\n<p class=\"no-margin\">Assurez-vous que votre archive est situ\u00e9e dans le dossier o\u00f9 vous l\u2019attendez. Si elle doit \u00eatre t\u00e9l\u00e9vers\u00e9e, vous pouvez le faire avec le gestionnaire de fichiers ou en <b><a data-click-id=\"hgr-post-content-link-utilisant-le-ftp\" href=\"https:\/\/support.hostinger.com\/en\/articles\/1869164-how-to-upload-backup-with-ftp\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">utilisant le FTP<\/a><\/b>.<\/p>\n<p class=\"no-margin\">\n<h2 id=\"h_a8b1b2ea3e\">\u00c9tape 2 \u2013 Connexion<\/h2>\n<p class=\"no-margin\"><b><a data-click-id=\"hgr-post-content-link-activez-lacces-ssh\" href=\"\/fr\/support\/1583645-comment-activer-l-acces-ssh\/\" target=\"_blank\" class=\"intercom-content-link\">Activez l\u2019acc\u00e8s SSH<\/a><\/b> et<b> <a data-click-id=\"hgr-post-content-link-connectez-vous-a-votre-compte-en-utilisant-ssh\" href=\"\/fr\/support\/1583245-comment-se-connecter-a-votre-compte-via-ssh\/\" target=\"_blank\" class=\"intercom-content-link\">connectez-vous \u00e0 votre compte en utilisant SSH<\/a><\/b>. Ouvrez le r\u00e9pertoire o\u00f9 se trouve votre archive. Pour cela :<\/p>\n<ol>\n<li>\n<p class=\"no-margin\"><b><a data-click-id=\"hgr-post-content-link-ouvrez-le-repertoire-racine-de-votre-site-web\" href=\"\/fr\/support\/5973000-comment-ouvrir-le-repertoire-racine-d-un-site-web-via-ssh\/\" target=\"_blank\" class=\"intercom-content-link\">Ouvrez le r\u00e9pertoire racine de votre site web<\/a><\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Ex\u00e9cutez la commande <code>ls<\/code> Si vous voyez l\u2019archive n\u00e9cessaire, vous pouvez passer \u00e0 l\u2019\u00e9tape 3<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Si le fichier requis se trouve dans un sous-r\u00e9pertoire, acc\u00e9dez-y en ex\u00e9cutant la commande :<\/p>\n<\/li>\n<\/ol>\n<pre><code>cd path\/to\/files<\/code><\/pre>\n<p class=\"no-margin\">O\u00f9 le chemin d\u2019acc\u00e8s \u201cpath\/to\/files\u201d est remplac\u00e9 par le chemin d\u2019acc\u00e8s r\u00e9el \u00e0 votre fichier. Par exemple, si votre archive est situ\u00e9e dans public_html\/new\/version1, alors la commande doit \u00eatre \u201ccd new\/version1\u201d.<\/p>\n<p class=\"no-margin\">\n<h2 id=\"h_0ff9d17a51\">\u00c9tape 3 \u2013 Extraction<\/h2>\n<p class=\"no-margin\">Enfin, l\u2019extraction. La commande sera diff\u00e9rente en fonction du format de l\u2019archive :<\/p>\n<ul>\n<li>\n<p class=\"no-margin\"><b>ZIP<\/b>: <code>unzip archive.zip<\/code><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>TAR<\/b>:<code> tar -xvf archive.tar<\/code><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>TAR.GZ<\/b>:<code> tar -zxvf archive.tar.gz<\/code><\/p>\n<\/li>\n<\/ul>\n<p class=\"no-margin\">\u00c0 la place de \u201carchive\u201d, \u00e9crivez le nom du fichier de votre archive. L\u2019extraction prend un certain temps, d\u00e8s qu\u2019elle est termin\u00e9e, vous verrez ceci sur la nouvelle ligne : <\/p>\n<pre><code>-bash-4.2$<\/code><\/pre>\n<p class=\"no-margin\">et avoir la possibilit\u00e9 d\u2019ex\u00e9cuter la nouvelle commande : <\/p>\n<p class=\"no-margin\">\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/56\/2022\/06\/a3b405ac-b1fb-4d3c-80ce-52642f741e99.jpg\/public\" data-media-id=\"4250\" alt=\"Terminal SSH montrant l\u2019extraction d\u2019une archive test.tar.gz avec tar -zxvf et la liste des fichiers extraits\"><\/div>\n<p class=\"no-margin\">Vous pouvez ouvrir le gestionnaire de fichiers pour v\u00e9rifier \u2013 votre archive est d\u00e9j\u00e0 extraite et les fichiers vous attendent dans un dossier s\u00e9par\u00e9, nomm\u00e9 par l\u2019archive.<\/p>\n<p class=\"no-margin\">\n<p class=\"no-margin\"><b>Ressources additionnelles <\/b>:<\/p>\n<ul>\n<li>\n<p class=\"no-margin\"><b><a data-click-id=\"hgr-post-content-link-comment-creer-des-archives-avec-ssh\" href=\"\/fr\/support\/5973347-comment-creer-des-archives-avec-ssh\/\" target=\"_blank\" class=\"intercom-content-link\">Comment cr\u00e9er des archives avec SSH<\/a><\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b><a data-click-id=\"hgr-post-content-link-comment-extraire-les-fichiers-compresses-chez-hostinger\" href=\"\/fr\/support\/1583613-comment-extraire-des-archives-a-l-aide-du-gestionnaire-de-fichiers\/\" target=\"_blank\" class=\"intercom-content-link\">Comment extraire les fichiers compress\u00e9s chez Hostinger<\/a><\/b><\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>D\u00e9compression des archives par SSH<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_content_updated_date":"","include_on_kodee":true,"footnotes":""},"categories":[214],"tags":[],"class_list":["post-1945","post","type-post","status-publish","format-standard","hentry","category-gestion-des-archives"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/5966088-how-to-extract-archives-with-ssh-at-hostinger","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/5966088-como-extraer-archivos-con-ssh-en-hostinger","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/5966088-comment-extraire-des-archives-avec-ssh-chez-hostinger","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/5966088-cara-ekstrak-file-dengan-ssh-di-hostinger","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/support\/5966088-como-extrair-arquivos-com-ssh-no-hostinger","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/5966088-\u044f\u043a-\u0440\u043e\u0437\u043f\u0430\u043a\u0443\u0432\u0430\u0442\u0438-\u0430\u0440\u0445\u0456\u0432-\u0437\u0430-\u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e-ssh-\u043d","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/posts\/1945","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/comments?post=1945"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/posts\/1945\/revisions"}],"predecessor-version":[{"id":4255,"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/posts\/1945\/revisions\/4255"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/media?parent=1945"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/categories?post=1945"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/tags?post=1945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}