LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-27-2014, 11:35 AM   #1
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Rep: Reputation: 0
trying to tar some files


I am trying to rebuild a database in Centos 6.5, 64 bit version. I found what I think is the way to do it here.

http://unixbhaskar.wordpress.com/201...lcentosfedora/

When I gave it the first command as instructed at the website:

Code:
tar -czvf rpm-1-27-2014.tar.gc rpm
I got the follwing error:

Code:
tar : rpm cannot stat; No such file or directory
tar : Exiting with failure status due to previous errors

Now all I want to do is tar some files what am I doing wrong?

Thanks in advance.

R,

jyunker
 
Old 01-27-2014, 11:51 AM   #2
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 98
jyunker...

It should be tar -czvf name_of_tar_file.tar file_or_directory_to be tarred

So, if I want to tar the folder /tmp and name it tmp.tar.gz

then the command will be:

Code:
tar -czvf tmp.tar.gz /tmp
 
Old 01-27-2014, 12:07 PM   #3
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Original Poster
Rep: Reputation: 0
it worked but file changed as we read it

I did what you said and it seemed to work. The final command was


tar -czvf rpm-1-27-2014.tar.gx

and it listed its progress:

however it gave this output:

.
.
.
tar: /var.lib/rpm/rpm-1-27-2014.tar.gz: file changed as we readit
var/lib/rpm/Group
/var/librpm/Triggername

I am not sure what "file changed as we read it means".

Thanks in advance.

R,

jyunker
 
Old 01-27-2014, 12:18 PM   #4
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,211

Rep: Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612
It means that you are tarring up your tar, which is changing while you are tarring it.
 
  


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
compile and installation of .tar.bz2/.tar.gz files jmenew Linux - Newbie 14 01-04-2013 03:53 AM
Why joining parted *.tar is missing files, when *.tar itelf have them? UltraMC Linux - Newbie 1 06-27-2012 02:53 PM
[SOLVED] extracting group of files from a tar.bz that was created with the following tar - lleb Linux - Newbie 1 06-06-2012 04:06 PM
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 12:02 PM
More tar issues - listing files in a single tar from a multivolume borks Thymox Linux - Software 4 09-23-2009 08:48 PM

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

All times are GMT -5. The time now is 01:15 PM.

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