Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-27-2014, 10:35 AM   #1
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.

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

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

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.


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

Rep: Reputation: 98

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:

tar -czvf tmp.tar.gz /tmp
Old 01-27-2014, 11:07 AM   #3
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

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

Thanks in advance.


Old 01-27-2014, 11:18 AM   #4
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

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


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

All times are GMT -5. The time now is 10:50 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration