LinuxQuestions.org
Visit Jeremy's Blog.
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, 03: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, 03:57 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,226

Rep: Reputation: 2315Reputation: 2315Reputation: 2315Reputation: 2315Reputation: 2315Reputation: 2315Reputation: 2315Reputation: 2315Reputation: 2315Reputation: 2315Reputation: 2315
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, 04: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, 04: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 04:26 AM.
 
Old 02-23-2016, 04:37 AM   #5
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,226

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


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


All times are GMT -5. The time now is 11:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration