Untar without wrapper folder

November 8, 2017

I prefer to keep my archives within a main folder, often the webroot (like www). 

But when you want to untar these files, you want to have all the files within another main folder, without the main folder. 

Use: 

--strip-components=1

This strips the wrapper folder and extracts only the files in this folder! 

More info

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.