Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using Fedora. When I issue:

-bash-3.2$ source na-profile.conf

I get:

: command not found
: command not found
: command not found

The na-profile.conf file looks like:

KEYTAB=server02 export KEYTAB;
ORACLE_HOME=/home/oracle/app/xxxx/; export ORACLE_HOME;
TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN;

There are no extra lines or spaces in the file.

share|improve this question
There is a missing ; on line 1 after server02. – Dennis Kerrisk Feb 14 '14 at 19:07
I put the semicolon in and I get the same result – badgerduke Feb 14 '14 at 19:12
"set -x" before the source command to see how bash expands the input. – Amos Shapira Feb 14 '14 at 23:11
up vote 5 down vote accepted

This is caused by having MS-DOS line endings in na-profile.conf

The shell is trying to use the ^M character as a command, and reports that it cannot be found.

You might have created the file using a Windows editor?

Convert the file to have unix line endings and the problem will resolve.

Instructions here: Convert CRLF's to line feeds on Linux

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.