My terminal doesn't work...

Posted:
in Genius Bar edited January 2014
Well, not very well.



I can do very basic commands, such as "ls", but if I try anything slightly more complex, I get "command not found". What's going on?!



Thanks,



u.

Comments

  • Reply 1 of 8
    der kopfder kopf Posts: 2,275member
    You might not be working with a tc-shell.

    Try the command tcsh, and see if the layout of your prompt changes (which it will if you are, e.g. in the basic shell) and if you can now do the commands you want.

    To anybody coming in after me: do you have any ideas how to get a bash (bourne again shell) running in terminal - just dropping some binary in /bin/... ? or is it something more.
  • Reply 2 of 8
    It's "bash". The command you want.



    I am in tcsh--still no luck...
  • Reply 3 of 8
    jj_wijj_wi Posts: 22member
    Maybe your path got dicked up and isn't including /usr/bin?



    der Kopf - here are some tips to get bash going:



    <a href="http://www.savagetranscendental.com/tip3.html"; target="_blank">http://www.savagetranscendental.com/tip3.html</a>;



    Edit: wrong link.



    [ 10-23-2002: Message edited by: JJ_WI ]</p>
  • Reply 4 of 8
    thuh freakthuh freak Posts: 2,664member
    unremarkable, i'm gonna guess that ur path got fucxed. u didn say any particular prog that u lost, but here's an example for something like grep:



    [code]where "grep";echo "-\

    ";echo $PATH;</pre><hr></blockquote>



    if the return'd from where isn't in ur PATH, then u wont be able to run grep. u can edit (or create) ur .tcshrc (in ur home). add a line with this:



    [code]setenv PATH "&lt;added path&gt;:$PATH";</pre><hr></blockquote>



    in x.2 /usr/local/bin was taken out of the path, i think, and thats probably all u need as "&lt;added path&gt;".
  • Reply 5 of 8
    [localhost:~] me% where "grep";echo "-\

    ";echo $PATH;

    -\





    returns:



    /bin:/sbin:/usr/bin:/usr/sbin



    If I make a .tschrc with:



    setenv PATH "&lt;/usr/bin&gt;:$PATH";

    setenv PATH "&lt;/bin&gt;:$PATH";

    setenv PATH "&lt;/usr/sbin&gt;:$PATH";

    setenv PATH "&lt;/sbin&gt;:$PATH";

    setenv PATH "&lt;/usr/local/bin&gt;:$PATH";



    I still get:



    [localhost:~] me% grep

    grep: Commnd not found.







    [ 10-23-2002: Message edited by: unremarkable ]</p>
  • Reply 6 of 8
    jj_wijj_wi Posts: 22member
    See what this returns:



    ls -l /usr/bin/grep



    if it's missing, perhaps you unchecked the BSD options when you installed the OS.
  • Reply 7 of 8
    Now, that could be the answer! Thank you!
  • Reply 8 of 8
    [quote]Originally posted by unremarkable:

    <strong>[localhost:~] me% where "grep";echo "-\

    ";echo $PATH;

    -\





    returns:



    /bin:/sbin:/usr/bin:/usr/sbin



    If I make a .tschrc with:



    setenv PATH "&lt;/usr/bin&gt;:$PATH";

    setenv PATH "&lt;/bin&gt;:$PATH";

    setenv PATH "&lt;/usr/sbin&gt;:$PATH";

    setenv PATH "&lt;/sbin&gt;:$PATH";

    setenv PATH "&lt;/usr/local/bin&gt;:$PATH";



    I still get:



    [localhost:~] me% grep

    grep: Commnd not found.







    [ 10-23-2002: Message edited by: unremarkable ]</strong><hr></blockquote>



    sorry about that, but u shouldn't have the &lt; & &gt; around teh path items. i should'v mentioned that.



    u dont have to re-add all the things that are in ur path (/usr/bin, /sbin, etc). put this in ur .tcshrc:



    [code]setenv PATH "/usr/local/bin:$PATH"</pre><hr></blockquote>



    u cna take out the other setenv's with the braces in them.
Sign In or Register to comment.