File Archiving and Compressing - RHCSA
Why file archiving and compressing is important? Creating Backups Transferring data across network is much easier. If we want to send data Over the network and Machine to Machine , Compress the file and send. What is an Archiving? Archiving is the process of collecting files or directories into one location. We use tar command for it. tar stands for Tape Archiving. Options : c - Create an archive t - List the content of the archive x - Extend the archive v - Verbose (print the file names when they are archiving or compressing) f - File name Remember that The file extension of the archived file should be .tar Examples: #mkdir data1 #mkdir data2 #mkdir data3 #tar cvf data-archive.tar data1 data2 data3 data1, data2, data3 files are archived. Archived file name is data-archived.tar We cannot create same name archive files because they are overwriting without given any feedback. Hence use ls -l command. #tar cvf <archi...