Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Command not found in Terminal

  1. #1

    Default Command not found in Terminal

    Greetings. After the last 2-3 updates I get command not found for each terminal command. How to solve this?
    Thank you in advance.

  2. #2

    Default Re: Command not found in Terminal

    I get messages like this:

    Code:
    If 'su' is not a typo you can use command-not-found to lookup the package that contains it, like this:
        cnf su

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,396

    Default Re: Command not found in Terminal

    Please show what you do and get. Only so we can see what you did and got.

    Copy/paste fom the terminal window between CODE tags in your post. Complete, that is including the prompt, the command, the output and the next prompt.
    Henk van Velden

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,396

    Default Re: Command not found in Terminal

    I see that while I was making my post, you are at least partly showed something.

    Please show one or two more, so we get an idea about what seems to be missing. And tell more about those updates.
    Henk van Velden

  5. #5

    Default Re: Command not found in Terminal

    Here it is:

    Code:
    su -
    If 'su' is not a typo you can use command-not-found to lookup the package that contains it, like this:
        cnf su
    Code:
    cnf su
    If 'cnf' is not a typo you can use command-not-found to lookup the package that contains it, like this:
        cnf cnf
    Code:
    whereis su
    If 'whereis' is not a typo you can use command-not-found to lookup the package that contains it, like this:
        cnf whereis
    P.S. The last updates, packages like kernel, grub, etc. were updated.

  6. #6

    Default Re: Command not found in Terminal

    Does it work if you specify the full path?
    E.g.:
    Code:
    /usr/bin/ls
    Maybe your path is set incorrectly set in ~/.profile or similar?

    I don't think it's a deeper problem, otherwise your system would not be able to boot at all, if it cannot find all those commands.

  7. #7

    Default Re: Command not found in Terminal

    It does work with full path! Where can I set the path? And why was it changed?

    My ~/.profile:

    Code:
    # Sample .profile for SuSE Linux
    # rewritten by Christian Steinruecken <cstein@suse.de>
    #
    # This file is read each time a login shell is started.
    # All other interactive shells will only read .bashrc; this is particularly
    # important for language settings, see below.
    
    test -z "$PROFILEREAD" && . /etc/profile || true
    
    # Most applications support several languages for their output.
    # To make use of this feature, simply uncomment one of the lines below or
    # add your own one (see /usr/share/locale/locale.alias for more codes)
    # This overwrites the system default set in /etc/sysconfig/language
    # in the variable RC_LANG.
    #
    #export LANG=de_DE.UTF-8    # uncomment this line for German output
    #export LANG=fr_FR.UTF-8    # uncomment this line for French output
    #export LANG=es_ES.UTF-8    # uncomment this line for Spanish output
    
    
    # Some people don't like fortune. If you uncomment the following lines,
    # you will have a fortune each time you log in ;-)
    
    #if [ -x /usr/bin/fortune ] ; then
    #    echo
    #    /usr/bin/fortune
    #    echo
    #fi

  8. #8
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,769

    Default Re: Command not found in Terminal

    ~/.profile

    no idea why changed maybe the file was deleted???

    $PATH to see current path

  9. #9

    Default Re: Command not found in Terminal

    Path:

    Code:
    $PATH
    bash: /usr/lib/restricted/bin: Is a directory

  10. #10
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,396

    Default Re: Command not found in Terminal

    Quote Originally Posted by gogalthorp View Post
    ~/.profile

    no idea why changed maybe the file was deleted???

    $PATH to see current path
    With this he means that the environment variable PATH contans the value of the pathes used in searching for comands with only the file name given. And you get that contents with
    Code:
    echo $PATH
    Henk van Velden

Page 1 of 2 12 LastLast

Posting Permissions

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