unix - Extract tar file without creating folder -


i want extract tar file in unix tar xvf /home/test/group.tar , once extracted got folder group has list of xls,pdf,txt files.

how can extract contents of group.tar inside /home/test/list of xls, pdf files without creating group folder.

any specific command available or have follow copy , move??

thanks!

you may use --strip-components 1 parameter.

tar xvf group.tar --strip-components 1 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -