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:
3512
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:
Set or display name of current host system - hostname
Display file in column format
Shell script to perform string replacement in a file and view the content of file
Write a shell program to add, subtract and multiply the 2 given numbers passed as command line arguments
Print message a shown in description
For joining the line
Shell script to take LOGNAME or the UID an an input and find how many terminals has this user logged in
Program to count length of user input string
To identify directory and executable file which command is used?
Shell Script to check file is ordinary or not
Write a shell script to reverse a number supplied by a user
How would we see content of the file?
How to change permission of file as 644?
How would you know name of the users who are login?
Shell Script to find out the sum of the given numbers using command line argument
Write a shell program to search for a given number from the list of numbers provided using binary search method
Program to perform all ADDITION on two operands : (decimal, binary, octal,hexadecimal)
Which command display version of the UNIX?
Is it possible to create and remover more than one directory together?
Shell Script to make a menu driven calculator using case
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