Profile cannot be found using the source .profile hint.

  linux, question

Source ~/.profile cannot be used on Linux.

Bash Prompts bash: /home/username/.profile:: There is no such file or directory.

However, using ls -a can display the file, and the configuration in the file can be read normally by the system.

The problem has been solved. When using vim, I accidentally entered a symbol at the beginning of the. profile file.