Question

Getting the above "command not found ... " when entering the command to login connector cli "remote-access-cli", confirmed connector has been installed on the machine.
Answer
This could be related to the PATH value:
Command is located here: /var/lib/snapd/snap/bin/remote-access-cli OR soft link: /snap/bin/remote-access-cli
[root@localhost ~]# whereis remote-access-cli
remote-access-cli: /var/lib/snapd/snap/bin/remote-access-cli
[root@localhost /]# cd /snap/bin/
[root@localhost bin]# ll
total 0
lrwxrwxrwx 1 root root 13 Jan 12 05:31 hello-world -> /usr/bin/snap
lrwxrwxrwx 1 root root 13 Jan 12 05:31 hello-world.env -> /usr/bin/snap
lrwxrwxrwx 1 root root 13 Jan 12 05:31 hello-world.evil -> /usr/bin/snap
lrwxrwxrwx 1 root root 13 Jan 12 05:31 hello-world.sh -> /usr/bin/snap
lrwxrwxrwx 1 root root 13 Jun 6 15:31 remote-access-cli -> /usr/bin/snap
$PATH shows where to find command for execute. If confirmed snap is installed, edit $PATH variable (PATH=$PATH:newPath1:newPAth2 ; export PATH)
# echo $PATH
>> Suppose you should see the below for example:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/var/lib/snapd/snap/bin:/root/bin
>> check if your value of $PATH shows missing the above snap one
you can change the PATH into the value by the command:
#PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/var/lib/snapd/snap/bin:/root/bin or PATH=$PATH;/var/lib/snapd/snap/bin
#export PATH
~/.bash_profile: This is the file that run everytime when user use bash shell
- [root@localhost ~]# cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH