Solved

getting bash - command not found

Posted on 2012-04-13
3
724 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 500 total points
ID: 37844884
You're missing

/usr/bin

in your PATH
0
 
LVL 37

Expert Comment

by:Gerwin Jansen
ID: 37844912
and the 2 commands are:

lspci
dmesg
0
 
LVL 61

Expert Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn about cloud computing and its benefits for small business owners.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

862 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

Need Help in Real-Time?

Connect with top rated Experts

30 Experts available now in Live!

Get 1:1 Help Now