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:
3484
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:
Display your current working directory
Find all lines in a file with words longer than 4 characters, assuming that words are separated by spaces except at the beginning or end of line
Copy file and directory subtrees - cp
Write a shell script to convert a file to lower case or upper case as specified by user.
Change file owner of group - chown
Shell script to print first 5 odd numbers
How would u get online help of cat command?
Tar is used to archive file - tar
How would you know machine’s name in the network?
System activity reporter - sar
Print the calendar of December 2006
Shell Script to separate the colon from the given item
Navigation command in unix
Write a shell program to exchange the values of two variables
Special files in unix
Write a shell script to ask your name, program name and enrolement number and print it on the screen
Write a shell script for renaming each files in the directory such that it will have the current shell PID as an extension
Shell script for following conditions. Take two files as input and run spell command on it, Collect a list of potential spelling errors, modify file
List all files start with a or A
Copy abc.txt into xyz
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