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 wanted to test un-tarring it, so I proceeded to type the following: Code:
tar -xf scripttarball.tar Code:
mv scripttarball.tar /tmo Code:
find / -name "scripttarball.tar" ...but had no results. Is my tarball lost!? The system is a VM running Backtrack 5. Thank you for your help in advance. Elite |
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 '.
|
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 Code:
ls: cannot read symbolic link ./proc/10/exe: No such file or directory I also tried doing Code:
updatedb -v Code:
locate "scripttarball.tar" Any help is greatly appreciated! |
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. |
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. |
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 |
All times are GMT -5. The time now is 10:09 AM. |