Source not found

General support questions
Post Reply
Posts: 1
Joined: 2019/10/16 20:32:29

Source not found

Post by robertvadra49 » 2019/10/16 20:34:54

Hey everyone,
I just got CentOS 6.10 minimal image installed, and ran into an issue as,

[sleo@localhost ~]$ source ~/.bashrc
source: command not found
Below is the sh I was running,
[sleo@localhost ~]$ ls -l `which sh`
lrwxrwxrwx. 1 root root 4 Jul 29 21:55 /bin/sh -> bash
But if I su as root, it can run well.

Inputs here will be appreciated.

User avatar
Forum Moderator
Posts: 27127
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Source not found

Post by TrevorH » 2019/10/16 21:36:14

bash behaves differently depending on whether it is invoked as /bin/bash or /bin/sh. Try using bash not sh.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 6 - General Support”