Create Archive with Linux tar. An example of this is: tar -cvzf sampleArchive.tar.gz /home/sampleArchive. Create archive of all files under public_html directory ignoring all files and folders including text backup in there named. index; Java; python; javascript; No Result . By now you should have a good understanding of how to use the Linux head command. SCP is the classic tool for making encrypted copies between two Linux- and POSIX-compatible computers in a network. Linux ‘tar’ command examples | alvinalexander.com How do I Compress a Whole Linux or UNIX Directory? - nixCraft You can use the option -C with the tar command to extract the tar archive to the specified directory. Use the following command line to list the files and directories. We’ll be using the Bash shell in our examples, but these commands may also work in other POSIX shells. If you want better compression, then you can also use.tar.gz. In this tutorial, we’re going to see how we can loop through only the directories in a particular folder using Linux commands. How to tar a file in Linux using command line | Blogstores Tar In its simplest form, when used without any option, wget will download the resource specified in the [url] to the current directory.