---

How to Create a Tar File in Linux

Answer: If you want to create a single tar archive files from several files or directory, you can use the tar command for this purpose. The simplest way to do this is by using the command in the following fashion:

tar -cvf file_name.tar <path_to_directory>

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis