date: “2016-12-21” draft: false title: “tar”
Create “tape” archive files
| Command | Description |
|---|---|
tar cvf example.tar /etc/ |
Make a backup of the etc directory |
tar xvf example.tar |
Extract an archive |
tar cf example.tar -C /etc/ . |
Make a backup of the entire etc directory, but don’t store files with their paths |