Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1


    Member Since
    Feb 08, 2009
    Posts
    8
    Terminal - Missing command prompt
    I'm not getting a command prompt in the Terminal app (Applications/Utilities). When I launch Terminal all I get is one line...

    Last login: Sun Feb 8 08:22:27 on ttys003.

    Right below that line is a solid cursor. When I press ENTER the only thing that happens is that the cursor skips to the next line. How do I get my command prompt back?

    The last thing I did on Terminal was execute the following lines...
    cd /private/etc
    sudo cp php.ini.default php.ini


    Please help. Thanks

  2. #2


    Member Since
    Mar 15, 2007
    Posts
    161
    Specs:
    17" MacBook Pro, 2.33GHz C2D, 2GB RAM
    When you type a command into this "no command prompt" Terminal, is the command executed? I.e., does "ls<ENTER>" give you a list of directory contents (with no command prompt afterwards)?

  3. #3


    Member Since
    Feb 08, 2009
    Posts
    8
    No, when I type "ls" and press ENTER in the "no command prompt" Terminal the cursor just skips to the next line and nothing else seems to happen.

    Commands to work via Shell -> New Command

  4. #4

    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,881
    Specs:
    Way... way too many specs to list.
    it sounds like somehow your account doesn't have a valid shell. If you do a Shell -> new command -> dscl . -read /Users/<username> shell

    what does it say?


    btw it should come back with something like...

    mikeMbp:etc mike$ dscl . -read /Users/mike shell
    dsAttrTypeNative:shell: /bin/bash
    mike
    This machine kills fascists
    Got # ? phear the command line!

  5. #5


    Member Since
    Feb 08, 2009
    Posts
    8
    dsAttrTypeNative:shell: /bin/bash

    That's all the command returned. Nothing like "mikeMbp:etc mike$ dscl . -read /Users/mike shell" was displayed.

  6. #6

    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,881
    Specs:
    Way... way too many specs to list.
    Wow, so it just gives you a usage statement. Hmm.. Do you have any other users on the system?
    mike
    This machine kills fascists
    Got # ? phear the command line!

  7. #7


    Member Since
    Feb 08, 2009
    Posts
    8
    Yes, in addition to the Admin account that I'm using, I have a Guest and Standard as well. All accounts have the same problem. I've even created a 2nd Admin account only to find the same problem there. The 2nd Admin account has been deleted.

    Terminal has worked with my Admin, Guest and Standard account.

    I first notice the problem when I activated PHP on Apache.

  8. #8

    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,881
    Specs:
    Way... way too many specs to list.
    Ok, so it does return /bin/bash... you have a defined shell, great!

    what does an ls -l /bin/bash show?
    mike
    This machine kills fascists
    Got # ? phear the command line!

  9. #9


    Member Since
    Feb 08, 2009
    Posts
    8
    Quote Originally Posted by Dysfunction View Post
    Ok, so it does return /bin/bash... you have a defined shell, great!

    what does an ls -l /bin/bash show?
    -rwxr-xr-x 1 root wheel 1244928 May 31 2008 /bin/bash

  10. #10

    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,881
    Specs:
    Way... way too many specs to list.
    well, looks like that's all there. I can not think of any reason that changing the php.ini would prevent you from logging in and gaining a shell. You could try removing the php.ini

    mv /private/etc/php.ini /private/etc/php.foo
    mike
    This machine kills fascists
    Got # ? phear the command line!

  11. #11


    Member Since
    Feb 08, 2009
    Posts
    8
    Removing the php.ini made not difference

  12. #12

    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,881
    Specs:
    Way... way too many specs to list.
    Has this been persistent through a reboot?
    mike
    This machine kills fascists
    Got # ? phear the command line!

  13. #13


    Member Since
    Feb 08, 2009
    Posts
    8
    sorry for being a noob.

    What do you mean by persistent through a reboot? How can I tell?

  14. #14

    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,881
    Specs:
    Way... way too many specs to list.
    Have you rebooted your computer?
    mike
    This machine kills fascists
    Got # ? phear the command line!

  15. #15


    Member Since
    Feb 08, 2009
    Posts
    8
    Yes I have.

    I've also turned Web Sharing off, rebooted, and launched Terminal again...no luck

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Curiosity About Terminal Command Prompt
    By PGB1 in forum OS X - Apps and Games
    Replies: 7
    Last Post: 02-17-2015, 09:53 AM
  2. Command prompt foolish mistake!
    By Kaos101 in forum OS X - Operating System
    Replies: 4
    Last Post: 11-14-2010, 01:30 PM
  3. Terminal does not provide prompt
    By 1qa in forum OS X - Operating System
    Replies: 9
    Last Post: 06-18-2009, 11:14 AM
  4. How can I start aquaemacs with a file at command prompt
    By yinglcs in forum OS X - Apps and Games
    Replies: 4
    Last Post: 02-20-2009, 07:20 PM
  5. Command Prompt for Mac?
    By BurntSmore in forum Switcher Hangout
    Replies: 7
    Last Post: 03-17-2005, 12:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •