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:
3404
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:
Shell script to print first 5 odd numbers
menu driven shell program which have the options change the term, change the prompt and user list of unix system.
Append abc.txt, xyz .txt
Write a shell scripts that finds total no. of users and finds out how many of them are currently logged in.
Write a shell program to concatenate the contents of 2 files
Shell Script to create a Menu Driven program : Hard Link, Soft Link, Counting each of the links for a specific link and Display the soft-links
Shell script that takes filename or the filename with its full path as an input during execution and display ls -l command result for inputted file
Overview of UNIX
Write a shell script to convert a file to lower case or upper case as specified by user.
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
Write a shell script to find the sum, the average and the product of the four integers entered
Script to print all prime numbers from 1 to 300
Write a shell program to find the sum of the series sum=1+1/2+...+1/n
Input mode command in unix
Program to perform all SUBTRACTION on two operands : (decimal, binary, octal,hexadecimal)
System activity reporter - sar
Concatenate, copy, print files - cat
Write a shell script that takes a file names as a argument and deletes this file from every directory above the present working directory.
Update access, modification, and / or change times of file - touch
Suppose four filenames are supplied then the first file should get copied into second file, the third file should get copied into four
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