How do I archive in Linux?
Answer
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.