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
...
- 05-08-2007 #1Just 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
- 05-08-2007 #2
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.
- 05-08-2007 #3Just 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!


Reply With Quote