Solved; Cannot run commands in Terminal, it is a mystery

Discussion in 'Mac Basics and Help' started by Dr.Pants, Jun 17, 2010.

  1. Dr.Pants macrumors 65816

    Dr.Pants

    Joined:
    Jan 8, 2009
    #1
    Alright, so, I just installed 10.6.0 on this new (used) Mac Pro 4,1. I muck about with some commands in Terminal (mkdir, ping, curl, nothing that used sudo aside from shutting down), shut down, restart today, find this -

    [​IMG]

    i.e., the computer:~ user: line never appears. So, I can type all I want, but I can't run commands.

    There is probably an easy fix to this, I'm just not savvy.
     
  2. mrchinchilla macrumors 6502

    mrchinchilla

    Joined:
    Mar 6, 2009
    #2
    Tried deleting the Terminal.plist located in ~/Library/Preferences/ ?
     
  3. Dr.Pants thread starter macrumors 65816

    Dr.Pants

    Joined:
    Jan 8, 2009
    #3
    Just tried that. Same thing happens.

    For what its worth, disc permissions are alright, too.
     
  4. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #4
    Have you edited the .profile or .bash_profile files? Have syntax errors in these can cause this behavior. Some applications may edit these files as well. Those files are in your home directory and they're hidden files.
     
  5. Dr.Pants thread starter macrumors 65816

    Dr.Pants

    Joined:
    Jan 8, 2009
    #5
    (screwed with this post a little)

    So, thanks for all the quick replies. I didn't edit any config field, but somehow I solved my problem. I decide I might as well reboot. Hangs on shutdown, so I decide to hold the power button to power it off.

    Turn on, open up Terminal, profit, ka-bam, it works.

    So, is there any theories on how I might have screwed it up to begin with? I know I've been pretty vague, but anything helps.
     
  6. mrchinchilla macrumors 6502

    mrchinchilla

    Joined:
    Mar 6, 2009
    #6
    He'll need an application to show hidden files as he can't turn it on from Terminal or open the files from within it. :p

    I believe utilities like Onyx and MacPilot and enable the showing of hidden files and folders.

    Edit: Nevermind. It was probably a corrupt preference file either from .profile or maybe due to the recent 10.6.4 update (if you've installed it yet) and the reboot probably updated the files. It probably hung because it was deleting cache files.
     
  7. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #7
    In those cases I usually recommend TextWrangler, which has an option to open hidden files.
     
  8. Dr.Pants thread starter macrumors 65816

    Dr.Pants

    Joined:
    Jan 8, 2009
    #8
    Weird on the corrupt files - I haven't installed any updates (explanation: I can only download 17GB of data per month on-location). EDIT - I did install a blackmagic driver so that might have caused it.

    But hey, thank you and angelwatt for your help.
     

Share This Page