blob: 738c2d59de059139465ae05b3725597b7c8c4349 (
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
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/assets/css/main.css">
<title>How to tar.gz a directory 📁</title>
</head>
<body>
<article>
<header>
<h1>How to tar.gz a directory 📁</h1>
<p class="post-date">April 13, 2025</p>
</header>
<div class="post-content">
<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>
<blockquote>
<p>$ tar -czvf file.tar.gz /Location/Of/Directory</p>
</blockquote>
<hr>
<h2>All done ✅</h2>
<p>Really easily done, only one command and done!</p>
</div>
</article>
<footer class="post-footer">
<a href="/archive/linux" class="back-button">⬅ Back to Linux</a>
</footer>
</body>
</html>
|