$PATH error (possibly)

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers $PATH error (possibly)
# 1  
$PATH error (possibly)

Upon opening Terminal I get the following message:

-bash: /usr/bin/manpath: No such file or directory
-bash: /usr/bin/perl: No such file or directory
-bash: grep: command not found
-bash: grep: command not found
-bash: grep: command not found
-bash: grep: command not found

I searched other threads for similar problems and I think I have a $PATH issue

I enter
echo $PATH

and get

could someone please help?

Last edited by radoulov; 08-27-2012 at 05:44 AM.. Reason: Code tags!
# 2  
Is this correct path you are getting..?

what exact path you are working and how you get this PATH..?


# 3  
How can I tell if it is correct? I assume it's is incorrect because the grep and man commands are not working.

I'm not sure how to answer your second question.
# 4  
Hi SartreSmartre,

From the path itself it clears that your getting wrong path, just check how you are getting this path then you will get answer.

Put some more details about this...
# 5  
I was editing two files in emacs, in my home folder. My computer slowed to a crawl for no obvious reason. I ran Disk Utility from my Snow Leopard install drive. I selected the Verify Disk Permissions, and Verify Disk options. There were a ton of errors, which the Disk Utility repaired. Now, when I begin a Terminal session there's the above error message and commands like man, grep, and emacs yield only "command not found."

Thanks for responding by the way.
# 6  
Beginnig a bash terminal session implies running ~/.profile and/or ~/.bashrc. Setting the -v and/or -x option in those helps you to find out where and how the errors occur.
You may want to use whereis grep, ... man, ...emacs to verify they exist. And, seeing you had a major "disk repair", are you sure your directory srtucture is intact? Try an ls /bin or ls /usr/bin to see what is there.
# 7  
whereis grep, ... man, ...emacs gives me nothing, just returns me to the regular prompt.

ls /bin gives me:
[        dd        kill        mv        sh        wait4path
bash        df        ksh        pax        sleep        zsh
cat        domainname    launchctl    ps        stty
chmod    echo        link        pwd        sync
cp        ed        ln        rcp        tcsh
csh        expr        ls        rm        test
date        hostname    mkdir        rmdir        unlink

and ls /usr/bin gives me:
2to3                defaults            spfquery5.10.0
2to32.6            desdp                spfquery5.8.9
BuildStrings            diff                splain
CpMac            diff3                splain5.10.0
DeRez            diffpp                splain5.8.9
SetFile            diffstat            split
SplitForks            dig                sqlite3
UnRezWack            dirname                srm
WSMakeStubs        diskhits            ssh
a2p                dispqlen.d            ssh-add
a2p5.10.0            distcc                ssh-agent
a2p5.8.9            distccd                ssh-keygen
aaf_install            distccmon-text            ssh-keyscan
aclocal                ditto                stat
aclocal-1.10            dns-sd                states
addftinfo            dprofpp                strings
afconvert            dprofpp5.10.0            strip
afinfo                dprofpp5.8.9            su
afmtodit            drutil                sudo
afplay                dscacheutil            sum
afscexpand            dscl                svk
agvtool                dserr                svn
alias                dsexport            svnadmin
allmemory            dsimport            svndumpfilter
amavisd                dsmemberutil            svnlook
amavisd-agent            dsperfmonitor            svnserve
amavisd-nanny            dsymutil            svnsync
amavisd-release            dtruss                svnversion
amlint                du                sw_vers
ant                dwarfdump            swig
applesingle            dyldinfo            syscallbypid.d
appletviewer            easy_install            syscallbyproc.d
apply                easy_install-2.5        syscallbysysc.d
apr-1-config            easy_install-2.6        syslog
apropos                efax                tab2space
apt                efix                tabs
apu-1-config            iotop                tail
ar                ipcount                talk
arch                ipcount5.10.0            tar
as                ipcount5.8.9            tbl
asa                ipcrm                tclsh
at                ipcs                tclsh8.4
atos                iptab                tclsh8.5
atq                iptab5.10.0            tconf
atrm                iptab5.8.9            tdbbackup
atsutil                irb                tdbdump
autoconf            isc-config.sh            tdbtool
autoheader            jar                tee
autom4te            jarsigner            telnet
automake            java                testparm
automake-1.10            javac                testrb
automator            javaconfig            texi2dvi
autoreconf            javadoc                texi2html
autoscan            javah                texi2pdf
autoupdate            javap                texindex
auval                javatool            textutil
auvaltool            javaws                tfmtodit
awk                jcmd                tftp
banner                jconsole            tic
basename            jdb                tidy
bashbug                jhat                tiff2icns
batch                jinfo                tiffutil
bc                jmap                time
bg                jobs                tkcon
biff                join                tkmib
binhex                jot                tnameserv
bison                jps                toe
bitesize.d            jrunscript            top
bsdmake                jsadebugd            tops
bsdtar                jstack                topsyscall
bspatch                jstat                topsysproc
bunzip2                jstatd                touch
bzcat                jvisualvm            tput
bzcmp                kdestroy            tr
bzdiff                kextutil            traptoemail
bzegrep                keytool                trial
bzfgrep                kill.d                troff
bzgrep                killall                true
bzip2                kinit                tset
bzip2recover            klist                tsort
bzless                kpasswd                tty
bzmore                krb5-config            twistd
c++                kswitch                type
c++-4.0                kvno                ul
c++-4.2                lam                ulimit
c++filt                last                umask
c2ph                lastcomm            unalias
c2ph5.10.0            lastwords            uname
c2ph5.8.9            latency                uncompress
c89                ld                unexpand
c99                ld_classic            unifdef
c_rehash            ldapadd                unifdefall
cal                ldapcompare            uniq
calendar            ldapdelete            units
cancel                ldapexop            unpack200
cap                ldapmodify            unvis
cap_mkdb            perl5.10.0            unwinddump
capify                perl5.8.9            unzip
captoinfo            perlbug                unzipsfx
cc                perlbug5.10.0            update_dyld_shared_cache
cd                perlbug5.8.9            uptime
certtool            perlcc                users
checknr                perlcc5.8.9            uucp
chflags                perldoc                uudecode
chfn                perldoc5.10.0            uuencode
chgrp                perldoc5.8.9            uuidgen
chpass                perlivp                uulog
chsh                perlivp5.10.0            uuname
chudRemoteCtrl            perlivp5.8.9            uupick
chumAddRights            perlthanks            uustat
ci                perlthanks5.8.9            uuto
cksum                sample                uux
clang                sampleproc            vers_string
clear                sandbox-exec            vgrind
cmp                sandbox-simplify        vi
cmpdylib            sar                view
co                say                vim
codesign            sc_usage            vimdiff
codesign_allocate        schemagen            vimtutor
col                scp                vis
colcrt                screen                vm_stat
colldef                script                vmmap
colrm                sdef                w
column                sdiff                wait
comm                sdp                wall
command                security            wbinfo
compileHelp            sed                wc
compile_et            seeksize.d            weblatency.d
compress            segedit                what
config                serialver            whatis
config_data            servertool            whereis
config_data5.10.0        setregion            which
config_data5.8.9        setuids.d            who
corelist            sftp                whoami
corelist5.10.0            shar                whois
corelist5.8.9            shark                wish
cpan                shasum                wish8.4
cpan2dist            shasum5.10.0            wish8.5
cpan2dist5.10.0            shlock                write
cpan5.10.0            showmount            wsgen
cpan5.8.9            sigdist.d            wsimport
cpanp                sips                wx-config
cpanp-run-perl            size                wxPerl
cpanp-run-perl5.10.0        sliceprint            wxPerl5.10.0
cpanp5.10.0            slogin                wxPerl5.8.9
cpio                smbcacls            wxperl_demo.pl
cpp                smbclient            wxperl_demo5.10.0.pl
cpp-4.0                smbcontrol            wxperl_demo5.8.9.pl
cpp-4.2                smbcquotas            wxperl_overload
cpuwalk.d            smbget                wxperl_overload5.10.0
crc32                smbpasswd            wxperl_overload5.8.9
crc325.10.0            smbspool            wxperl_xspp
crc325.8.9            smbstatus            wxperl_xspp5.10.0
creatbyproc.d            smbtar                wxperl_xspp5.8.9
crlrefresh            smbtree                wxrc
crontab                smbutil                wxrc-2.8
csplit                smtpd.py            xar
csreq                smtpd2.5.py            xargs
ctags                smtpd2.6.py            xattr
ctf_insert            snmpbulkget            xattr-2.5
cu                snmpbulkwalk            xattr-2.6
cups-calibrate            snmpconf            xcman
cups-config            snmpdelta            xcode-select
cupstestdsc            snmpdf                xcodebuild
cupstestppd            snmpget                xcodeindex
curl                snmpgetnext            xcrun
curl-config            snmpinform            xed
cut                snmpnetstat            xgettext.pl
cvs                snmpset                xgettext5.10.0.pl
cvsbug                snmpstatus            xgettext5.8.9.pl
dappprof            snmptable            xgrid
dapptrace            snmptest            xjc
db_codegen            snmptranslate            xml2-config
db_hotbackup            snmptrap            xml2man
dbilogstrip            snmpusm                xmlcatalog
dbilogstrip5.10.0        snmpvacm            xmllint
dbilogstrip5.8.9        snmpwalk            xmlwf
dbiprof                sntp                xpath
dbiprof5.10.0            soelim                xpath5.10.0
dbiprof5.8.9            sort                xpath5.8.9
dbiproxy            spfd                xslt-config
dbiproxy5.10.0            spfd5.10.0            xsltproc
dbiproxy5.8.9            spfd5.8.9            xsubpp
dc                spfquery            xsubpp5.10.0

Moderator's Comments:
Mod Comment Please use code tags next time for your code and data.

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #80
Difficulty: Easy
Many operating systems today, including Android, Chrome OS, Steam OS, and myriad embedded systems for devices, are based on Linux.
True or False?

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

DHCP Issue Possibly due to Hardware Clock?

Hello All, OS: openSUSE 13.1 (Bottle) (armv7hl) PC: CuBox-i (*mini-pc) The PC in question is a CuBox-i mini-pc. Since this PC doesn't have a battery, everytime the PC reboots the hardware clock is reset back to the same date every time, which is "2014-07-08 00:00". I have NTP configured... (5 Replies)
Discussion started by: mrm5102
5 Replies

2. Shell Programming and Scripting

How would I construct a (possibly simple) IF statement?

Hi all, I thought this would be simple, but I've been having a lot of trouble trying to write this IF statement, if I may ask for help pls: In BASH, how would I construct the if statement: Should ONLY be true if USEROPTscript=="yes"]] AND $mode=="INSTALL" /or/ $mode=="CHANGE" ]]... (3 Replies)
Discussion started by: jmccoughlin
3 Replies

3. HP-UX

Cdrom device possibly missing?

Hello, I am following the HPUX 11.31 install/update guide and I am trying to install "Update-UX" from the installation media. I put the CD into the drive, and I am trying to mount the device. The instructions state:Find the DVD-ROM device file name: ioscan -C disk -f -n -k | more A typical... (5 Replies)
Discussion started by: bstring
5 Replies

4. UNIX for Dummies Questions & Answers

Comparing Two Files, Possibly with VIM

Hello, I have a problem comparing two files, both .csv. One file, let's call it files.csv, contains a list of thousands of file names for models of molecules that have made it through an optimization process. The other file, formulas.csv, contains file names for the same kind of models, and has... (2 Replies)
Discussion started by: Stuart Ness
2 Replies

5. Shell Programming and Scripting

Combining find, grep and possibly ls?!

Hi - can someone please help me combine find, grep and possibly ls into something workable: i.e. How can I list all the files that contain the word "pet" in all directories under the current directory that are called "animal", bar those anywhere under directories called "archive"? I suspect... (6 Replies)
Discussion started by: cs03dmj
6 Replies

6. Shell Programming and Scripting

reformatting xml file, sed or awk I think (possibly perl)

I have some xml files that cannot be read using a standard parser, or I am using the wrong parser. The issues seems to be spaces in some of the tags. Here is a sample,<UgUn 2 > <Un> -0.426753 </Un> </UgUn>The parser isn't able to find the number 2, so that information is lost, etc. It seems... (16 Replies)
Discussion started by: LMHmedchem
16 Replies

7. Solaris

Why in.mpathd errors - performance possibly?

Hello all, Run a search but see no previous queries. Trying to get to the bottom of why a server running Solaris 9 reports the following every other day: lonpcbcfp1:Jun 20 16:33:20 lonpcbcfp1 in.mpathd: missed sending 17 probes cur_time 1478014085 snxt_time 1478015026 snxt_basetime 1478014018... (0 Replies)
Discussion started by: bookiebarton
0 Replies

8. Shell Programming and Scripting

input variable like POST in PHP possibly?

I have a very large database and once in awhile the database auto loading scripts that update the database for the daily updates fails and I have to go in and manually fix it but when that happens I usually have to start from scratch on sundays I have access to a weekly database rebuild. Then I... (3 Replies)
Discussion started by: chadrt
3 Replies

9. Shell Programming and Scripting

stupid question possibly

how would I search through subdirectories under the current directory and delete all files in certain directories. in ThisDirectory.... want to go into foundMe directory which there are several in other subdirectories and delete all files in foundMe ? thank you... (1 Reply)
Discussion started by: MrJaunty
1 Replies

Featured Tech Videos