Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

Rep: Reputation: 15
Removing directory path from tar archives


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?

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

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


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 07:11 PM
Removing path form PATH maginotjr Linux - Newbie 3 02-12-2005 03:23 PM
removing one directory in PATH env chunlee Linux - Newbie 4 11-06-2004 08:50 PM
tar with directory path scatterbrain Linux - General 2 03-16-2004 12:05 AM
tar archives of type tgz dalraidia Linux - Newbie 3 12-13-2002 10:54 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:00 PM.

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