LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 10-21-2011, 12:27 PM   #1
eliteparakeet
LQ Newbie
 
Registered: May 2011
Posts: 6

Rep: Reputation: 0
Missing tar ball


Hi all,

I've been practicing creating some bash scripts, and I wanted to tar up all of the ones I had been working on to scp them to another server.

I began by entering the following command to tar all of the files in a directory I created /root/Desktop/script_tests (looking back I maybe should've used .* instead of *)

Code:
tar cf scripttarball.tar *
I then did a ls and saw that the only file in my directory was the "scriptarball"

I wanted to test un-tarring it, so I proceeded to type the following:

Code:
tar -xf scripttarball.tar
This did not work, the tar ball remained in that directory and I did not see my files. I did not know if there was an issue with untarring it in this directory, so I proceeded to move the tar ball to /tmp. However, in my hastiness, I had a typo with the command. I typed the following:

Code:
mv scripttarball.tar /tmo
Now I have no idea where I moved this tar ball! I proceeded to type the following:

Code:
find / -name "scripttarball.tar"
pwd

...but had no results. Is my tarball lost!?

The system is a VM running Backtrack 5.

Thank you for your help in advance.

Elite
 
Old 10-21-2011, 01:13 PM   #2
62chevy
Member
 
Registered: Mar 2002
Location: West (By God) Virginia
Distribution: Debian Squeeze - Sid
Posts: 281

Rep: Reputation: 44
I doubt you file is gone. You have a couple of options to find it the easiest it to ' ls / ' amd look for the directory tmo the second is ' updatedb -v ' when that is done then ' locate scripttarball '.
 
Old 10-21-2011, 09:52 PM   #3
eliteparakeet
LQ Newbie
 
Registered: May 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you very much for the reply, but neither of those worked.

I noticed there is now an empty file in my root (/) directory called tmo (created when I mistyped /tmo).

I also attempted to do an
Code:
ls -lR | grep scripttarball
and came out with only a large number of results saying
Code:
ls: cannot read symbolic link ./proc/10/exe: No such file or directory
I realize this means it may see the file in memory but not on the disk? Correct me if I'm wrong.

I also tried doing
Code:
updatedb -v
followed by the following

Code:
locate "scripttarball.tar"  
locate scripttarball
locate scripttarball.tar
locate -b '\scripttarball.tar'
...but none of these worked.

Any help is greatly appreciated!
 
Old 10-22-2011, 02:54 AM   #4
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
your typo "mv scripttarball.tar /tmo"
made the file moved to /
with the name "tmo"

if it's empty then you really didn't have anything TARed into it.
 
Old 10-28-2011, 09:44 AM   #5
eliteparakeet
LQ Newbie
 
Registered: May 2011
Posts: 6

Original Poster
Rep: Reputation: 0
The file "tmo" is empty
But I DID have something tarred into my tarball!

I had 7-10 .sh scripts in a directory, and proceeded to tar them. They were all put into my tar, but I also noticed that there original copies had been removed.
 
Old 10-31-2011, 11:45 AM   #6
eliteparakeet
LQ Newbie
 
Registered: May 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Could anyone please be of more assistance? This issue still is not resolved, and I would like to learn what I did wrong here. If you require more clarification please advise.

Thanks,

Elite
 
  


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
Help with tar ball noelc Linux - Software 6 09-26-2009 04:06 AM
Updating files with a tar ball... Arty Ziff Linux - Newbie 3 02-06-2009 11:47 PM
tar ball locations ThisGuyIKnow Linux - Newbie 3 08-09-2006 10:48 AM
tar ball uninstall? Xris718 Linux - General 3 09-20-2004 08:55 PM
compiling a tar ball - needed help please... lpriyamb Linux - Software 3 10-10-2003 04:33 AM


All times are GMT -5. The time now is 01:07 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration