Skip to content

Commit b5b02bb

Browse files
authored
Add tar command examples to index.html q
Added examples for tar command usage in bash.
1 parent 97485de commit b5b02bb

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

pages/bash/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,19 @@ <h2>field & total</h2>
990990
# echo -e "a-b-c-10\na-b-c-5" | total 4 -
991991
</script>
992992

993+
<h2>tar</h2>
994+
<script type="editor" data-lang="sh">
995+
996+
tar -tzf tsx.tar.gz
997+
# list what is in tar.gz
998+
999+
tar -zcvf tsx.tar.gz .
1000+
# compress including hidden files
1001+
1002+
tar -zxvf tsx.tar.gz
1003+
# unpack
1004+
1005+
</script>
9931006
<h2>monitoring tools</h2>
9941007

9951008
<script type="editor" data-lang="sh">

0 commit comments

Comments
 (0)