Stop Microsoft

Operating Systems => Linux and UNIX => Topic started by: Master of Reality on 21 August 2002, 13:08

Title: files?
Post by: Master of Reality on 21 August 2002, 13:08
ummm i dled the openBSD install packages to /tmp/apps (i just made the dir) on Mandrake 6.0 Secure Server Edition, after dling i did ls and they wre there. I mv(ed) one file into the same folder from another folder. Now the only file in /tmp/apps is the file i moved there. Whats the deal???!!! Where did all my other files go???!!?
Title: files?
Post by: voidmain on 21 August 2002, 21:43
What was the exact command you used, and did the destination folder exist? i.e. you didn't mistype the destination?
Title: files?
Post by: Master of Reality on 23 August 2002, 05:03
i didnt, i searched for them manually. Then i did a find / base31.tgz
to find one of the files.
I just took off Mandrake and put on FreeBSD so i cant really give you any new information, but this has happened in RH 7.2 too (i have no clue what i did then, it was long ago)
Title: files?
Post by: voidmain on 23 August 2002, 05:37
Well what I was getting is if you want to move a single file to a specific directory and you mistype the destination directory it will end up with a new file name of whatever you mistyped and not in the directory you intended (would be in the parent directory). This can happen in any version of UNIX, and even in Windows using the "move" command.  Is it possible that is what happened?
Title: files?
Post by: Master of Reality on 23 August 2002, 05:40
the filed I moved was in the right place. The files that were there in /tmp/apps that were supposed to be with it are missing.
Title: files?
Post by: voidmain on 23 August 2002, 06:10
Well, it's impossible to tell without knowing the exact command you used and what files were in the directory you were moving from.  That would certainly be a new one on me.  All I can tell you is files just don't disappear with no explanation. Did you get an error message (like maybe the destination file system was full)?
Title: files?
Post by: Master of Reality on 23 August 2002, 06:45
well.. this is exactly what i did:
i have 1 3GB root partition that has 44MB in it.
I had the files:
base31.tgz
comp31.tgz
misc31.tgz
game31.tgz
etc31.tgz
bsd
in the directory /tmp/apps/
from dling them with wget.
i did ls in /tmp/apps/ to get the listing of the files that were there (which are above).
the next day (computer was never shutoff, i logged out and back in).
I did
wget -nH http://url.to/file/xserv31.tg (http://url.to/file/xserv31.tg)
i realized i didnt dl it in /tmp/apps/ so i did
mv xserv31.tgz /tmp/apps/
cd /tmp/apps
ls
then it listed only xserv31.tgz
i did
cd ..
ls
cd /tmp/apps
ls
cd /
ls
cd /tmp
ls
find / base31.tgz and it didnt find it.
then i came and posted this thread
 (in case ya didnt notice i was planning to install OpenBSD)
then i wget -nH http://all.those.file/again (http://all.those.file/again)

[ August 22, 2002: Message edited by: Master of Reality / Bob ]

Title: files?
Post by: voidmain on 23 August 2002, 06:55
Ha ha ha!!  I just realized where you were putting these files, under "/tmp".  Remember, you're not in Winblows anymore Toto.  Linux actually cleans up after itself, unlike Windows.  In RedHat there is a cron job that runs the "tmpwatch" command to clean out old files from "/tmp". See the "/etc/cron.daily/tmpwatch" script.

Also, there is a history of all of the commands that you ran by either typing "history" or by looking at your ".bash_history" file.

[ August 22, 2002: Message edited by: VoidMain ]

Title: files?
Post by: Master of Reality on 23 August 2002, 07:19
i see.
Title: files?
Post by: choasforages on 23 August 2002, 07:41
tmpwatch, FUCK, thats were all my files went, ill will now use /smb
Title: files?
Post by: voidmain on 23 August 2002, 07:49
I'm sorry, thought this would have been well known.  Guess it's good that m0r brought it up.  In fact on some UNIX systems "/tmp" is actually in RAM for speed. Programs use "/tmp" as a working area so being in RAM is an advantage (vi swap files, etc). It's well named. /tmp means "temporary".

Now that is the opposite philosophy that M$ uses.  "Temporary" means "Log every fucking place this luser has been".

[ August 22, 2002: Message edited by: VoidMain ]