You know, I saw this once before, I think. And I wonder if the same thing has happened to you: A really badly designed software installer modified the ~/Library/Preferences/com.apple.Terminal.plist file so that it would run the command file "6871078.command" to finish off some part of the installation. But then for some reason it doesn't revert the plist file back.
The easiest fix would be to just remove com.apple.Terminal.plist from Preferences and let Terminal create a new when it starts next.
You could also edit the plist file (it's just an XML text file) and remove the offending startup command line from it.
Hope that helps...