summaryrefslogtreecommitdiff
path: root/public/articals/linux/tools/TarGz.html
blob: d84c883b6e794579a84d3f87e0ecf168f44320c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html lang="en-GB">
  <head>
    <meta charset="UTF-8">
    <meta name="author" content="Shipwreckt">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>tar.gz a directory 📁</title>
    <link rel="stylesheet" href="../../../styles.css">
    <link rel="icon" href="../../../Images/favi.png" type="image/x-icon">
  </head>
  <body>
    <header>
      <nav>
        <ul>
          <li><a href="../../../index.html">Home</a></li>
          <li><a href="../../../links.html">Links</a></li>
          <li><a href="../../../projects.html">Projects</a></li>
          <li><a href="../../../contact.html">Contact</a></li>
        </ul>
      </nav>
    </header>
    <main>
      <h1>How to tar.gz a directory 📁</h1>
      <h3>Date: 13-04-2025</h3>
      <hr>
      <h2>What you will need 📋</h2>
      <ul>
        <li>A computer with Linux or BSD 🐧🖥️</li>
        <li>The ability to read instructions and to follow them 🧠</li>
      </ul>
      <hr>

      <h2>Why?</h2>
      <p>Main reason why you want to tar.gz a directory is because it compresses a directory and all of the data inside of it. It is also good for backing things up too.</p>
      <hr>

      <h2>The command</h2>
      <div class=code-box>
        <p>$ tar -czvf file.tar.gz /Location/Of/Directory</p>
      </div><hr>


      <h2>All done ✅</h2>
      <p>Really easily done, only one command and done!</p>

      <center>
        <hr>
        <pre text-align=center>  <a href="../../linuxlist.html">Back 🚪</a>
    </main>
</body>
</html>