LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-04-2003, 09:02 PM   #1
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
what do I do with /tmp dir?


This output should tell me something, but I'm too new to understand.

mingdao@paul:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda8 942M 54M 841M 7% /
/dev/hda6 92M 8.4M 79M 10% /boot
/dev/hda9 19G 122M 18G 1% /home
/dev/hdb5 14G 875M 12G 7% /usr
/dev/hda10 4.6G 342M 4.1G 8% /var
/dev/hda11 942M 496M 399M 56% /tmp
/dev/hdb6 30G 5.2G 25G 18% /mnt/AppSwap

mingdao@paul:~$ cd /tmp

mingdao@paul:/tmp$ ls -aFlc
total 491516
drwxrwxrwt 5 root root 4096 Nov 5 09:48 ./
drwxr-xr-x 20 root root 4096 Nov 3 21:05 ../
-r--r--r-- 1 root root 11 Nov 5 06:54 .X0-lock
drwxrwxrwt 2 root root 4096 Nov 5 06:54 .X11-unix/
drwxrwxrwt 2 root root 4096 Nov 5 06:54 .font-unix/
-rw------- 1 mingdao mingdao 502776288 Nov 5 09:51 836hj46j.exe
drwx------ 2 root root 16384 Oct 30 18:39 lost+found/

Is there a problem with my /tmp directory? And what would that exe file indicate? I didn't think Linux had exe files. At the time of that file creation I was downloading the first 2 Slackware 9.1 iso images. I was also trying to get Gimp with synaptic.

To someone who has experience, does this indicate something? What should I do with this file, and this directory? I have considered doing away with this directory as a partition, and just setting it up as tmpfs so that it would disappear with a restart or whatever.

Any advice would be appreciated. I really didn't even know how to search, and didn't find anything that seemed appropriate.
 
Old 11-04-2003, 09:07 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Just a wild guess, but I'd say that it
might be an iso that accidently was
saved with the name of a windows-exe :)

You could always open a console,
fire up mc and use F3 to view it, see
whether the contents makes sense to
you.

Or run strings | less against it

Code:
strings 836hj46j.exe | less
Cheers,
Tink
 
Old 11-04-2003, 09:10 PM   #3
mossy
Member
 
Registered: Aug 2003
Location: USexIRL
Distribution: *nix
Posts: 849

Rep: Reputation: 30
Having a tmp partition can be useful to protect yourself against certain DoS like attacks on webservers or the like where they create files constantly to crash the OS - having it on a seperate partition will prevent this.

I'm not sure what 836hj46j.exe is. Linux does not use .exe so you prolly should not be to worried. You can delete it is you think it is bad.
 
Old 11-04-2003, 09:57 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Original Poster
Rep: Reputation: 128Reputation: 128
Quote:
Originally posted by Tinkster
Just a wild guess, but I'd say that it
might be an iso that accidently was
saved with the name of a windows-exe

Or run strings | less against it

Code:
strings 836hj46j.exe | less
Cheers,
Tink
I don't know how I could accidentally save a Slackware iso with a windblows chunks name. I was using Mozilla to get it from the ftp.rftm.no site, and the download manager said it failed after about 1 1/2 hours of downloading. Not sweet!

I've only used Debian for a short while, but I never cease to amaze myself

Well, I guess this means I gotta go to all lengths to get Slackware. I think the stinking M$ devils still on my hard drive are doing these things

This was some of the output (miles long) of
mingdao@paul:/tmp$ strings 836hj46j.exe | less

CD001
EL TORITO SPECIFICATION
CD001
MKI Thu Sep 25 07:25:23 2003
mkisofs 2.0.3 -R -z -V Slak91d2 -hide-rr-moved -v -d -N -no-emul-boot -boot-load-size 4 -boot-info-table -sort isolinux/iso.sort -b isolinux/isolinux.bin -c is
olinux/isolinux.boot -p Slackware Linux, Inc. <info@slackware.com> -P Slackware Linux, Inc. <info@slackware.com> -A Slackware Linux 9.1 disc 2 .

So, it was the Slackware 9.1 disc 2, but now it's trash.

I hear ya Tink, I'll get Slack 8.1
 
Old 11-04-2003, 10:00 PM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Original Poster
Rep: Reputation: 128Reputation: 128
Quote:
Originally posted by mossy
Having a tmp partition can be useful to protect yourself against certain DoS like attacks on webservers or the like where they create files constantly to crash the OS - having it on a seperate partition will prevent this.

I'm not sure what 836hj46j.exe is. Linux does not use .exe so you prolly should not be to worried. You can delete it is you think it is bad.
That's why it's there, and only 1GB in size. See the reply to Tink's post that answers what it is. Thanks.
 
Old 11-05-2003, 12:28 AM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally posted by Chinaman
So, it was the Slackware 9.1 disc 2, but now it's trash.

I hear ya Tink, I'll get Slack 8.1
Choice mate, glad I could help :)

Cheers,
Tink
 
Old 11-05-2003, 12:40 AM   #7
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Original Poster
Rep: Reputation: 128Reputation: 128
Quote:
Originally posted by Tinkster
Choice mate, glad I could help

Cheers,
Tink
I'm getting Slack 8.1 from Korea with wget at the moment. I couldn't figure out how to use ftp or proftp - especially after reading the man pages

Yeah, what you said about the kernel. I definitely want (need) to roll my own. That's where the power gets set with Linux, eh? And where my hardware gets setup properly.

What bootloader does Slack use? I have LILO with Debian now, and I think I'll put Slack on hdb somewhere in the load of free space I got. I can't ever seem to do GRUB right, so I hope I can leave the bootloader off when I install Slack, and just add a line to my LILO.

Thanks mate!
 
Old 11-05-2003, 12:49 AM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally posted by Chinaman
What bootloader does Slack use? I have LILO with Debian now, and I think I'll put Slack on hdb somewhere in the load of free space I got. I can't ever seem to do GRUB right, so I hope I can leave the bootloader off when I install Slack, and just add a line to my LILO.

Thanks mate!
Slack comes with Lilo by default, and
in your constellation you'll oribably want
to install Slack's lilo in /hdbX, and
point debians lilo to that using
other :)

Cheers,
Tink
 
Old 11-05-2003, 12:57 AM   #9
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Original Poster
Rep: Reputation: 128Reputation: 128
Thanks, mate! Btw, what is the X in /hdbX is X boot or / or just what? Will do!

Last edited by Bruce Hill; 11-05-2003 at 12:59 AM.
 
Old 11-05-2003, 12:58 AM   #10
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Quote:
Originally posted by mossy
...I'm not sure what 836hj46j.exe is. Linux does not use .exe so you prolly should not be to worried. You can delete it is you think it is bad.
Actually, you will run across the occasional file with exe in the name, like 'dhcpcd-eth0.exe', though it's no Microsoft binary. Just noting that so nobody does an 'rm -rf *.exe' on principle or anything.

-- So slow. Just saw some of the latest posts. ncftp is a *great* ftp program. Sometimes I just hit it off with an app - ncftp is one of those. Maybe you'd like it, too.

Last edited by slakmagik; 11-05-2003 at 01:00 AM.
 
Old 11-05-2003, 10:45 PM   #11
mossy
Member
 
Registered: Aug 2003
Location: USexIRL
Distribution: *nix
Posts: 849

Rep: Reputation: 30
Kewl - I did not know that there were executables in Linux. Handy to know.

Is it only a temp thing or can you actually open them?

Last edited by mossy; 11-05-2003 at 10:55 PM.
 
  


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
kde, /tmp, /var/tmp and all that garba Linux - Software 4 06-17-2005 01:31 PM
Apache/PHP can't write to /tmp dir. Niels@debian Linux - Software 2 05-25-2005 04:10 PM
Numerous scb_*.tmp files in /tmp dburk Programming 3 08-18-2003 05:28 PM
Newbie question - /tmp /var/tmp Mr happy Linux - Security 3 01-27-2003 02:03 PM
a question of tmp dir for solaris/win cybercop12us Solaris / OpenSolaris 4 01-08-2003 04:22 AM


All times are GMT -5. The time now is 03:57 PM.

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