Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > 3 GB bash file! WTF?

3 GB bash file! WTF?
Thread Tools
Spliff
Mac Elite
Join Date: Feb 2001
Location: Canaduh
Status: Offline
Reply With Quote
Mar 29, 2003, 12:42 AM
 
I've been having some weird issues with my Terminal. I was looking for a certain invisible file when I noticed that a file called "bash" in the "bin" folder is 3 GB in size.

This ain't right, is it? What should I do to fix it?
     
Gul Banana
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Mar 29, 2003, 01:00 AM
 
Definitely not right - my copy of bash (which is sh on OS X) is only 500 KB. I'd suggest reinstalling it from the OS X CDs.
[vash:~] banana% killall killall
Terminated
     
Jerommeke
Mac Elite
Join Date: Oct 2001
Location: Enschede
Status: Offline
Reply With Quote
Mar 29, 2003, 05:14 AM
 
532 KB

Before doing the thing suggested above try running an app like MacJanitor (all schedules)
iMac G5 2.0 Ghz 20", 2 GB RAM, 400 GB, OS X 10.4.5, iPod with color screen 60 GB
     
dark3lf
Mac Elite
Join Date: May 2000
Status: Offline
Reply With Quote
Mar 29, 2003, 09:44 AM
 
Just delete it and compile the newest version from here: http://www.gnu.org/software/bash/bash.html
     
calumr
Forum Regular
Join Date: Sep 2000
Location: UK
Status: Offline
Reply With Quote
Mar 29, 2003, 10:38 AM
 
What I think you've done (as I did it myself once) is type "sudo foo > /bin/bash" when you meant "sudo foo | /bin/bash" or somethign like that.

In your case, foo output 3GB of data to the file instead of piping it to the bash executable.
     
chadseld
Forum Regular
Join Date: May 2001
Status: Offline
Reply With Quote
Mar 29, 2003, 07:33 PM
 
You "could" have been hacked and now have the worlds largest root kit ever

just kidding.
If your computer stops responding for a long time, turn it off and then back on. - Microsoft
     
   
 
Forum Links
Forum 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 On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 04:36 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,