Skip to content

pt3002/TAR_command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux TAR Command Implementation

The Linux TAR stands for tape archive, it is used to create Archive, extract the Archive files and list files present in Archive.

Syntax

./tar [mode] [absolute path]

Modes of TAR Command

Tar_command_flowchart

Example of all commands

  • Create an Archive for a folder
./tar -c /home/prernatulsiani/Desktop/Datasets

Note : After this commands two tar files are created. Datasets.tar is original tar file whereas Datasets_c.tar is compressed tar file (With upto 45% reduction in size)

  • Compress a file
./tar -c /home/prernatulsiani/Desktop/Datasets/part3.txt
  • List all files present in an Archive
./tar -t /home/prernatulsiani/Desktop/Prerna/DSA2/DSA_Project/Datasets_c.tar
  • Extract files present in an Archive
./tar -x /home/prernatulsiani/Desktop/Prerna/DSA2/DSA_Project/Datasets_c.tar
  • Decode a compressed file
./tar -d /home/prernatulsiani/Desktop/Prerna/DSA2/DSA_Project/part3

Steps to implement the command on Linux OS

  1. Clone the repository
git clone "https://github.com/pt3002/TAR_command"
  1. At the project root run:
make
  1. Then as per your requirements run the commands given above !

Drive Link for Large Datasets

Dataset

References

  1. Linux Man Pages
  2. Ubuntu Man Pages
  3. LZ77 Data Compression Technique

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors