[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

getting bash - command not found

Posted on 2012-04-13
3
Medium Priority
?
783 Views
Last Modified: 2012-04-21
what am i doing wrong ?

[h80613@oradev01 etc]$ PATH=/usr/local/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
[h80613@oradev01 etc]$ export PATH
[h80613@oradev01 etc]$
[h80613@oradev01 etc]$
[h80613@oradev01 etc]$ demsg
-bash: demsg: command not found
[h80613@oradev01 etc]$ ispci
-bash: ispci: command not found
[h80613@oradev01 etc]$ sudo su -
-bash: sudo: command not found
[h80613@oradev01 etc]$ pwd
/etc
[h80613@oradev01 etc]$ cd ..
[h80613@oradev01 /]$ sudo su -
-bash: sudo: command not found
[h80613@oradev01 /]$
0
Comment
Question by:c_hockland
3 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 total points
ID: 37844884
You're missing

/usr/bin

in your PATH
0
 
LVL 38

Expert Comment

by:Gerwin Jansen, EE MVE
ID: 37844912
and the 2 commands are:

lspci
dmesg
0
 
LVL 62

Expert Comment

by:gheist
ID: 37846046
you can use sudo -s or su -, combination between is superfluous and useless...
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Learn about cloud computing and its benefits for small business owners.
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month18 days, 18 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question