Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

tar command

# Create (-c) and file (-f) file1 and file2 into "archive.tar"
tar -cf archive.tar file1 file2 
# Extract archived.tar into its content files into current directory
tar -xf archive.tar
# Extract archived.tar into its content files into given directory
tar -xf archive.tar -C given/directory
# List files in archive.tar
tar -tv archive.tar
 
PREVIOUS NEXT
Tagged: #tar #command
ADD COMMENT
Topic
Name
9+3 =