Welcome -
Guest!
Login
/
Register Now
|
Search:
Home
Articles
Forum
Interview FAQ
Activities
News
Videos
Poll
Links
People
Groups
Unix / Linux / Ubuntu Articles
Submit Article
Home
»
Articles
»
Unix / Linux / Ubuntu
»
Commands
RSS Feeds
Tar is used to archive file - tar
Posted By:
Shruti Sharma
Category:
Unix / Linux / Ubuntu
Views:
3611
This article explains about tar command with an example in unix.
tar command is used to archive file in unix.
Syntax of tar Command
tar r [ bBeEfFhiklnqvw [ 0-7 ] ] [ block ] {-I include-file | -C directory | file | file }
Example of tar Command
Example 1 : To archive file1, file2 and file3 into file.tar
tar -cvf file.tar file1 file2 file3
Example 2 : To display the contents of a archived file.tar
tar -cvf file.tar file1 file2 file3
Example 3 : To display the contents of a archived file.tar
tar -cvf file.tar
Example 4 : To unachieved a archived file.tar
tar -xvf file.tar
Share:
Previous Post:
System activity reporter - sar
Next Post:
Compress and expand data - compress / uncompress
Didn't find what you were looking for? Find more on
Tar is used to archive file - tar
Or get
search suggestion and latest updates
.
Shruti Sharma
author of Tar is used to archive file - tar is from
United States
. Shruti Sharma says Hello Everyone,
I am Shruti Sharma from United States
View All Articles
Related Articles and Code:
PROGRAM TO READ THE STUDENT DETAILS FROM THE STUDENT INFORMATION FILE USING FILE READ OPERATION
PROGRAM TO READ THE STUDENT DETAILS FROM THE STUDENT INFORMATION FILE USING FILE READ OPERATION
PROGRAM TO WRITE THE STUDENT DETAILS IN STUDENT INFORMATION FILE USING FILE WRITE OPERATION
programs uses two input files and produces output using binary search on criteria fields
Program uses two input files and produces output using binary search on criteria fields
Write a menu driven shell script for Copy a file, Remove a file, Move a file
Program to read numbers from two files using fscanf function and write it in another file using fprintf function in ascending order
Program to count number of employee in the company using structures / file
Program to count number of male employee in a company using structures/file perform this job
Example of using preprocessor in different files
Example of using preprocessor - 2 in different files
Example of using preprocessor - 3 in different files
Example of using preprocessor - 4 in different files
APPENDING ITEMS TO AN EXISTING FILE USING DO WHILE LOOP
Shell Script to delete the zero sized file using if and for
PROGRAM FOR ADD,UPDATE & DELETE OPERATION BY USING INDEX SEQUENTIAL FILE
PROGRAM FOR INPUT RECORDS INTO THE FILE USING EXTEND MODE
PROGRAM TO GENERATE A STUDENT MARKSHEET USING FILE READ AND WRITE OPERATION
PROGRAM GET AND CREATE STUDENTS DETAILS USING FILE READ AND WRITE OPERATION
Program to describe the Functionality of the table by using File
Other Interesting Articles in Unix / Linux / Ubuntu:
Program to calculate the area and perimeter of the rectangle
Program to count length of user input string
How would you know machine’s name in the network?
Configure network interface parameters - ifconfig
Shell script that prints names of all sub-directories present in the current directory
Count no.of words in file abc?
Display information about all the current programs running
Write a shell scripts which works similar to the Unix commands Head Tail
Find all lines in a file with words longer than 4 characters, assuming that words are separated by spaces except at the begining or end of line
How to find out difference between two files?
Write a shell program to find the sum of the series sum=1+1/2+...+1/n
Write a shell script to display the digits which are in odd position in a given 5 digit number
Shell script which would Receive the log name during execution ,obtain information about it from /etc/passswd and display this information on screen
Write a shell program to exchange the values of two variables
Write a shell program to concatinate two strings and find the length of the resultant string
Shell script to check whether inputted directory is in current directory or not
Append abc.txt, xyz .txt
Write a shell program to concatenate the contents of 2 files
Write a shell script to search all files and rename them such that they do not contain the shell PID.
Display the already mounted file system - mount
Please enter your Comment
*
*
Comment should be atleast 30 Characters.
Please put code inside [Code] your code [/Code].
Please login to post comment
No Comment Found, Be the First to post comment!
Unix / Linux / Ubuntu
View All
Advance
Basics
Commands
Homework Help
Interview FAQ
Terms and Terminology
Assembly Language
Artificial Intelligence
C Programming
C++ Programming
Visual C++
OOAD
Cobol
Java
SQL Server
Asp.net MVC
Rest and WCF Services
Entity Framework
Knockout.Js
Networking
OOPs Concept
HTML
Dos
SQL
System Analysis & Design
Gadgets
Internet
CSS
Javascript
.Net Framework
Asp.net
C#
VB.Net
Python
Perl
Oracle
Software Engineering
RDBMS Terms
AJAX Framework
Design Pattern
UML
WPF
WCF
SEO
PowerShell
Visual Studio
WWF
BizTalk Server
Azure
General
Testing
Online Certifications
PHP
My SQL
LinQ
Project Management
Silverlight
XML
MS Office
Windows OS
DHTML
Sharepoint