LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-18-2006, 07:58 AM   #1
haddad
LQ Newbie
 
Registered: Jul 2004
Distribution: Fedora
Posts: 25

Rep: Reputation: 15
Removing directory path from tar archives


Hi,

if I do

tar -zcf file.tar.gz /some/path/to/dir

the tar (gz) file created has the whole path "/some/path/to/dir" in it, I want the archive to have "dir" only, how can I do this?

Thanks
 
Old 01-18-2006, 08:02 AM   #2
haddad
LQ Newbie
 
Registered: Jul 2004
Distribution: Fedora
Posts: 25

Original Poster
Rep: Reputation: 15
Sorry, found the answer.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I password tar.gz archives? Cyberian Linux - Security 11 10-20-2010 06:11 PM
Removing path form PATH maginotjr Linux - Newbie 3 02-12-2005 02:23 PM
removing one directory in PATH env chunlee Linux - Newbie 4 11-06-2004 07:50 PM
tar with directory path scatterbrain Linux - General 2 03-15-2004 11:05 PM
tar archives of type tgz dalraidia Linux - Newbie 3 12-13-2002 09:54 PM


All times are GMT -5. The time now is 02:47 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration