Find the answer to your Linux question:
Results 1 to 3 of 3
i try to copy commands to get output to paste back into the forum but i get nothing. [charles@localhost ~]$ su Password: [root@localhost charles]# lsusb bash: lsusb: command not found ...
  1. #1
    Just Joined!
    Join Date
    Aug 2006
    Posts
    86

    why don't commands work

    i try to copy commands to get output to paste back into the forum but i get nothing.

    [charles@localhost ~]$ su
    Password:
    [root@localhost charles]# lsusb
    bash: lsusb: command not found
    [root@localhost charles]#
    this happens alot and its frustrating
    [root@localhost charles]# fdisk -l
    bash: fdisk: command not found
    [root@localhost charles]
    why does it not work

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    Thats probably because you are using "su" and not "su -" to switch to root. If you want to inherit roots path, you need to use "su -" because it starts a new login shell with the users defaults settings. Using "su" just switches user, but does not use that users settings.

  3. #3
    Just Joined!
    Join Date
    Aug 2006
    Posts
    86
    thanks darkchild, that has been driving me crazy, it works.

    at least i now know thing about linux!

Posting Permissions

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