Ubuntu 20.04 setting path variable to solve laravel: command not found
Solution 1:
>>
redirects standard output. The command export PATH="$PATH:$HOME/.config/composer/vendor/bin"
doesn't produce any standard output, so nothing gets appended to the file(s).
You probably wanted
echo 'export PATH="$PATH:$HOME/.config/composer/vendor/bin"' >> ~/.bashrc
or just
echo 'PATH="$PATH:$HOME/.config/composer/vendor/bin"' >> ~/.bashrc
since PATH
has almost certainly been exported into the environment already.
Also not that the source
command does not "update [those] files"; it updates your current shell based on the contents of those files.