Contents
How do I archive in Linux?
1- Creating an Archive File. To create an archive with tar, use the ‘-c’ (“create”) option, and specify the name of the archive file to create with the ‘-f’ option. It’s common practice to use a name with a ‘. tar’ extension, such as ‘my-backup.
How do I archive a folder in Linux?
Extract archive
- $ tar xf ostechnix.tar. We can also use the C logo (capital letter C) to extract the archive to a different directory. …
- $ tar xf ostechnix.tar -C Downloads/ Or, go to the Downloads folder and something like the following extract the archive.
- $ tar xf ../ostechnix.tar.