You can create a tar archive on two ways like below.
- To create an archive of a directory and its contents:
- tar -cvf name.tar /path/to/directory
- tar -cvf name.tar /path/to/directory
- To create an archive of certfain files:
- tar -cvf name.tar /path/to/file1 /path/to/file2 /path/to/file3
0 comments:
Post a Comment