LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-23-2016, 02:52 AM   #1
chris_crunch
Member
 
Registered: Jan 2016
Location: Braintree, Essex
Distribution: Ubuntu 14.04
Posts: 107

Rep: Reputation: Disabled
.tar file options


There's a file on my computer known as

Code:
ILSVRC2012_img_train(0)(0)(0).tar
Now I guess I could unpack it with

Code:
tar xvf ILSVRC2012_img_train(0)(0)(0).tar
But is there a better way to do this? This seems to be taking ages, spewing the files all over the current directory...
 
Old 02-23-2016, 02:57 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
how big is that file? Actually the command tar is used to handle those files, so there is no better way. But it also depends on the speed of the underlying filesystem.
 
Old 02-23-2016, 03:13 AM   #3
chris_crunch
Member
 
Registered: Jan 2016
Location: Braintree, Essex
Distribution: Ubuntu 14.04
Posts: 107

Original Poster
Rep: Reputation: Disabled
It's a... pretty big. I think it contains a lot of tar files...

Code:
chris@chris-crunch:~/apps/caffe-master/IMAGENET/training_data$ tar xvf ILSVRC2012_img_train\(0\)\(0\)\(0\).tar 
n01440764.tar
n01443537.tar
n01484850.tar
n01491361.tar
n01494475.tar
n01496331.tar
n01498041.tar
n01514668.tar
n01514859.tar
n01518878.tar
n01530575.tar
n01531178.tar
n01532829.tar
n01534433.tar
n01537544.tar
...
...
There's loads of these. Loads...

I've rapidly hit this problem:

Code:
 tar: n12144580.tar: Cannot write: No space left on device
Hmmm...?
 
Old 02-23-2016, 03:15 AM   #4
chris_crunch
Member
 
Registered: Jan 2016
Location: Braintree, Essex
Distribution: Ubuntu 14.04
Posts: 107

Original Poster
Rep: Reputation: Disabled
Code:
chris@chris-crunch:~/apps/caffe-master/IMAGENET/training_data$ df
Filesystem     1K-blocks      Used Available Use% Mounted on
udev             8174348         4   8174344   1% /dev
tmpfs            1637028      1232   1635796   1% /run
/dev/sda1       57561340   6606152  48008116  13% /
none                   4         0         4   0% /sys/fs/cgroup
none                5120         0      5120   0% /run/lock
none             8185136    166728   8018408   3% /run/shm
none              102400        80    102320   1% /run/user
/dev/sdb1      288237920 273572628       540 100% /home
/dev/sdb6      317272452     68296 301064536   1% /data1
/dev/sdb7      307462264     64344 291756628   1% /data2
Hahaha, damn it. What now...
I guess I could somehow put them into data1. how?

Code:
 chris@chris-crunch:~/apps/caffe-master/IMAGENET$ sudo cp training_data/ /data1/IMAGENET/
cp: omitting directory ‘training_data/’
What- Never mind. I place the -r after copy. Okay, this is taking a while to copy... Hehe

Last edited by chris_crunch; 02-23-2016 at 03:26 AM.
 
Old 02-23-2016, 03:37 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
see man tar
tar -C <your preferred dir> -xvf <full path to your tar file>
 
  


Reply



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 can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
[SOLVED] Acdtrux options when compress backup.tar file .. thiyagusham Linux - Newbie 2 01-18-2013 12:37 AM
I need grep options to search inside a .tar.gz file. ZAMO Linux - General 2 06-24-2008 11:55 PM
gave wrong syntax for tar as tar -cvzf file file.tgz how to recover the file gautham Linux - General 4 04-13-2005 03:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:41 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration