Results 1 to 8 of 8

Thread: ls,su,yast2: Command not found

  1. #1
    drwarm NNTP User

    Default ls,su,yast2: Command not found

    I can't make any of the commands work, they all say they aren't found. I've googled around a fair bit, and I keep seeing I need to change my PATH variables, but I don't know what to!!

    So ls, su, and yast2 don't work when I type them in by themselves ie:

    Code:
    reuben@linux-qgyq:~> yast2
    bash: yast2: command not found
    Is there an easy solution to fixing this?

    Thanks alot,
    Reuben

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,941
    Blog Entries
    4

    Default Re: ls,su,yast2: Command not found

    Post the output of:

    Code:
    echo $PATH

  3. #3
    Join Date
    Jun 2008
    Location
    Finland, European Union
    Posts
    2,029

    Default Re: ls,su,yast2: Command not found

    Yes. Be root.

    su -
    yast2

    Normal users don't have sbin in their path.

  4. #4
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,941
    Blog Entries
    4

    Default Re: ls,su,yast2: Command not found

    Yes, but not having ls or su in one's path is pretty bad, as they are both in /bin so the OP must have messed things up. Probably in trying to get yast2.

  5. #5
    drwarm NNTP User

    Default Re: ls,su,yast2: Command not found

    Code:
    echo $PATH
    /home/reuben/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:.
    Hows that looking? I'm not really sure what I should add to it, or how I even do that for that matter!

    Yes. Be root.
    Don't I have to use 'su' to do that!

    not having ls or su in one's path is pretty bad, as they are both in /bin
    It looks like i have /bin in there, what's going on!!

  6. #6
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,941
    Blog Entries
    4

    Default Re: ls,su,yast2: Command not found

    Try these commands:

    Code:
    which ls
    /bin/ls

  7. #7
    drwarm NNTP User

    Default Re: ls,su,yast2: Command not found

    Code:
    reuben@linux-qgyq:~> which ls
    /bin/ls
    Code:
    reuben@linux-qgyq:~> /bin/ls
    aclocal.m4  compiz-cube.pc.in   config.h.in   COPYING.GPL   Documents       images            intltool-extract.in  kde            metadata       po
    AUTHORS     compiz-gconf.pc.in  config.sub    COPYING.LGPL  flash           include           intltool-merge       libdecoration  missing        public_html
    bin         compiz.pc.in        configure     COPYING.MIT   foo2zjs         INSTALL           intltool-merge.in    ltmain.sh      mkinstalldirs  README
    ChangeLog   compiz-scale.pc.in  configure.ac  depcomp       foo2zjs.tar.gz  install-sh        intltool-update      Makefile.am    NEWS           src
    compiz      config.guess        COPYING       Desktop       gtk             intltool-extract  intltool-update.in   Makefile.in    plugins        TODO
    Anything useful in there?

    Edit: The commands just started working, does which do that!?!
    Last edited by drwarm; 04-Jul-2008 at 03:27. Reason: Working?

  8. #8
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,941
    Blog Entries
    4

    Default Re: ls,su,yast2: Command not found

    Your guess is as good as mine.

Posting Permissions

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