Creating and extracting archive file

 
Thread Tools Search this Thread
Homework and Emergencies Homework & Coursework Questions Creating and extracting archive file
# 1  
Old 03-03-2012
Creating and extracting archive file

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:
Hi there,
I wish to create a single .tar file of the current directory but have literally no idea on where to start



2. Relevant commands, code, scripts, algorithms:
No idea on where to start...


3. The attempts at a solution (include all code and scripts):
No attempts as not sure on where to start


4. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
Birmingham University , Birmingham, United Kingdom , Dr Fayzel , 211CDE

Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).

Last edited by Banned; 03-03-2012 at 10:05 PM..
# 2  
Old 03-03-2012
Have a read through the tar man page for starters
Man Page for tar (Linux Section 1) - The UNIX and Linux Forums

Tar is one of the most difficult commands to master (IMHO) as it's command line syntax is very "old school". There are a fair few options to deal with, but to create a simple tar file of the current directory you only need to pay attention to the create "function letter," the file (archive) name option, and remember that dot (".") represents the current directory.

The examples in the man page, and these few hints should get you going.

If you have specific problems after you formulate your command, post those and someone will be happy to help.
# 3  
Old 03-04-2012
Quote:
Originally Posted by Banned
4. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
Birmingham University , Birmingham, United Kingdom , Dr Fayzel , 211CDE

Hey Banned,

What is the name of the course you are taking? Could you provide a link to it because I cannot find it online.

Thanks.
# 4  
Old 03-04-2012
Quote:
Originally Posted by Neo
Hey Banned,

What is the name of the course you are taking? Could you provide a link to it because I cannot find it online.

Thanks.
UCAS code: G400

I have to study at coventry university because of a small mix up but am primarily based in birmginham university
# 5  
Old 03-04-2012
Quote:
Originally Posted by Banned
UCAS code: G400

I have to study at coventry university because of a small mix up but am primarily based in birmginham university
Thanks; but what is the name of the class? G400 is a program code; not the name of a class.
# 6  
Old 03-04-2012
It is 211CDE.
Operating Systems and Security
This User Gave Thanks to Banned For This Post:
# 7  
Old 03-04-2012
I would suggest you make your own experience on the subject:
Create a directory add files in it (5-6 Mb. 10-20 files...) try to archive it using tar, then try to restore, then try to restore elsewhere (create another directory you can use for that...).
What did you manage? How?
There is a good reason why I ask you to create a test directory with a given size (perhaps you could use 10MB...). Depending of the OS you are on, classic issues where linked to backup software or tar usage e.g. inexistent tape devices...
After experimenting try to see if you can solve you request, if not explain why (what is not working the way you desire...) and we will try to assist you from there by giving perhaps new clues or correct your command line...
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Self extracting archive for Linux and windows

Is there a way to create a self extracting archive that works in both linux and windows? And if so how? Everything I have read on google only works in either Linux or Windows but not both. (6 Replies)
Discussion started by: cokedude
6 Replies

2. Shell Programming and Scripting

Creating loops inside a file and extracting and loading data

Help needed (1 Reply)
Discussion started by: Chand Shrestha
1 Replies

3. UNIX for Dummies Questions & Answers

Why is creating an RCS archive in /etc a "good thing"??

Hi guys, Why is creating an RCS archive in /etc a "good thing"?? (1 Reply)
Discussion started by: lemon_06
1 Replies

4. Shell Programming and Scripting

Extracting information and creating numeric values using awk

I have some variables containing for example m02-npt02-sr40-syn-dv0p01-16x12drw m02-npt02-sr40-syn-dv0p02-16x12drw m02-npt02-sr40-dv0p03-syn-16x12drw I want to extract the dv entry for example dv0p01 dv0p02 dv0p03 Then I want to convert to a numeric, the p specifies the... (5 Replies)
Discussion started by: kristinu
5 Replies

5. Shell Programming and Scripting

Extracting from archive | compressing to new archive

Hi there, I have one huge archive (it's a system image). I need sometime to create smaller archives with only one or two file from my big archive. So I'm looking for a command that extracts files from an archive and pipe them to another one. I tried the following : tar -xzOf oldarchive.tgz... (5 Replies)
Discussion started by: chebarbudo
5 Replies

6. Shell Programming and Scripting

Read specific file from a zip archive without extracting

Hi All, I would like to extract specific file from a zip archive. I have a zip archive "sample.zip". sample.zip contains few text files and images... text1.txt, text2.txt, pic.jpg etc... I need to read specific file "text2.txt" from "sample.zip" WITHOUT EXTRACTING the zip file. ... (4 Replies)
Discussion started by: sridharg
4 Replies

7. Shell Programming and Scripting

creating an RCS archive in /etc

Hi Why is creating an RCS archive in /etc a "good thing"? Hi Why is creating an RCS archive in /etc a "good thing"? (2 Replies)
Discussion started by: scofiled83
2 Replies

8. Solaris

problem in creating flash archive

Dear all I am in a problem. I have created a master server on which I have install a Solaris 10 OS as well as Oracle 10g with some additional solaris packages. Now I want to create a flash archive of this server and install that flash archive on another server, so that the new server will have... (6 Replies)
Discussion started by: girish.batra
6 Replies

9. UNIX for Dummies Questions & Answers

Extracting from a tar archive file

Can I extract files from an archive file (tar), where the filename includes the full directory path, to a different directory? For example the archive files may have a filename of /SrcFiles/XXX/filename.dat and I want to extract it to /SrcFiles/YYY/filename.dat. Since the archive file was... (1 Reply)
Discussion started by: nmalencia
1 Replies
Login or Register to Ask a Question