![]() You’d run the following command: tar -czvf stuff Let’s say you have a directory named “stuff” in the current directory and you want to save it to a file named. -f: Allows you to specify the filename of the archive.The v is always optional in these commands, but it’s helpful. -v: Display progress in the terminal while creating the archive, also known as “ verbose” mode.Here’s what those switches actually mean: It’ll also compress every other directory inside a directory you specify–in other words, it works recursively. Use the following command to compress an entire directory or a single file on Linux. Compress an Entire Directory or a Single File tar archive and then compress it with gzip or bzip2 compression in a single command. The GNU tar command included with Linux distributions has integrated compression. The tar command can extract the resulting archives, too. tgz archive files, also called “tarballs.” This command has a large number of options, but you just need to remember a few letters to quickly create archives with tar. ![]() The tar command on Linux is often used to create.
0 Comments
Leave a Reply. |