![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help Required: Command to find IP address and command executed of a user | loggedout | Security | 2 | 08-06-2008 05:12 PM |
| how to? launch command with string of command line options | TinCanFury | Shell Programming and Scripting | 5 | 04-28-2008 03:06 PM |
| inconsistent ls command display at the command prompt & running as a cron job | rajranibl | Linux | 5 | 07-30-2007 05:26 AM |
| How to use more than one MPE command STREAM with Unix command in a single shell? | bosskr | HP-UX | 1 | 10-16-2006 01:16 PM |
| How to use more than one MPE command STREAM with Unix command in a single shell? | bosskr | Shell Programming and Scripting | 0 | 09-19-2006 06:44 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Can anyone help me to staff three files with tar command and then unstaff them
Thx in advance for any help. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
What's "staff" and "unstaff"?
Carl |
|
#3
|
|||
|
|||
|
Quote:
To create a tar archive: tar cvf my_archive,tar /path/to/file1 /another/path/to/file2 /and/one/more/path/file3 The disadvantage of diong it this way is that all references to the files are by using an absolute path. This means when you untar the archive the files will be stored to their original location (for the experts around, I know there are tricks to avoid this.) So it's better to create an archive in which the references to the file have relative paths: cd / tar cvf my_archive,tar path/to/file1 another/path/to/file2 and/one/more/path/file3 To view the contents of your tar archive: tar tvf my_archive The untar the archive: tar xvf my_archive If the archive contains files with absolute path the files will be untarred to their original location. If they have relative paths, the files will be untarred relative to the current directory. |
|||
| Google The UNIX and Linux Forums |