Archiving and compressing data files tar
We will briefly discuss the use of archiving and data compression via the tar command.
Archiving
To archive data, we use the command tar -cvf, like this:
tar -cvf is followed by the name of the archive, it must always end with .tar here it is {muzik.tar}, and the name of the directory that we want to archive, here it is {muzik}.
Data unarchive
To unarchive data we use the command tar -xvf followed by the name of the archive
Archiving and compressing date files
When the data volume is important, we sometimes want to compress the data using the gunzip utility, we use the command tar -cvzf
tar -cvzf est suivi du nom de l’archive (elle doit toujours terminer par .tar.gz ici c’est {archive.tar.gz}, et du nom du répertoire que l’on veut archiver, ici c’est {muzik}.
Decompression of data
To decompress the archive, use the extraction command tar -xvzf
Conclusion
All of these commands are very useful for backing up your data file . Do not to forget them !
If you found this post or this website helpful and would like to support our work, please consider making a donation. Thank you!
Help UsArticles in the same category
- Time a task: time
- SVN -- How to ignore file or directory in subversion?
- SVN -- Branch, Branching subversion howto
- Speedup GNU make build and compilation process
- phpMyAdmin: Search and Replace in MySQL database
- Linux How to delete or remove printer from command line
- Linux How to connect to Windows with remote desktop RDP in CentOS 7 / RedHat 7
- Intel compilation for MIC architecture KNL Knights Landing
- How to setup SSH timeout in shell script ?
- How to make a denial of a service with fork functions in BASH ?
- How to encrypt/decrypt a file or directory in Linux?
- How to diff remote files using ssh ?
- How to Convert Text File From ISO-8859-15 to UTF-8 Encoding
- How to change the MAC address on Linux
- Got permission denied while trying to connect to the Docker daemon socket
- GNU compilation for MIC architecture KNL Knights Landing
- Generating a self-signed certificate using OpenSSL with Linux CentOs/RedHat for Apache/httpd
- Find out biggest cpu/memory consuming processes with ps command
- Find list of options that python was compiled with
- Download music and videos .mp3, .wma, .avi, .mpg , divx with google
- Crontab : Scheduling Tasks
- Comment changer son adresse MAC sous Linux
- Check/find version of numpy i'm using
- Archiving and compressing data files tar
- Linux - Tip of the day