Solved

getting bash - command not found

Posted on 2012-04-13
3
718 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
Comment Utility
You're missing

/usr/bin

in your PATH
0
 
LVL 37

Expert Comment

by:Gerwin Jansen
Comment Utility
and the 2 commands are:

lspci
dmesg
0
 
LVL 61

Expert Comment

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

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

763 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

7 Experts available now in Live!

Get 1:1 Help Now