How to create a tar archive
$ tar -cvf archive.tar [target]
- Command
- tar
- Description
- Command options to create a tar archive file from a directory or files. Usage: tar -cvf archive.tar target_dir
- Deep Dive
- Explanation of flags: -c: Create a new archive -v: Verbose (show progress) -f: File (specify filename) Combine them as -cvf. Ensure 'f' is the last flag before the filename.