Source command not found

Issues related to hardware problems
Post Reply
helidagemo
Posts: 2
Joined: 2019/08/06 15:42:57

Source command not found

Post by helidagemo » 2019/08/06 15:48:43

Hi,

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.

Any suggestion would be appreciated:)

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Source command not found

Post by TrevorH » 2019/08/07 12:32:31

bash behaves differently depending on whether it's invoked as bash or sh.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply