CentOS 6.6 Displays “return: Command Not Found” In Terminal

Home » CentOS » CentOS 6.6 Displays “return: Command Not Found” In Terminal
CentOS 3 Comments

Hello,

Ever since I updated my x86_64 system from CentOS 6.5 to 6.6, I have when I
open a terminal, four lines of ‘return: Command not found’ diplayed. I’m at a loss as to why this is, and was wondering if there is a command I can use to find out what is causing it, and hopefully fix this issue.

Brian Bernard

3 thoughts on - CentOS 6.6 Displays “return: Command Not Found” In Terminal

  • Hi Brian,

    Likely culprits are in

    ~/.bashrc
    ~/.bash_profile
    ~/.profile
    /etc/profile
    /etc/profiled.d/*

    Try ‘source’ on each one at a time to see if any triggers the message.

    Kal

  • I did check the other accounts on my system and found that the problem only exists with those accounts that use csh/tcsh. The ones with bash are fine.

    I’m going to go over the .tcsh file in those accounts and perhaps see what the problem is, but it will have to wait until tomorrow afternoon when I
    have time.

    Brian Bernard