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