Entering asterisk CLI

Getting this error when I try and enter the asterisk CLI from anywhere…
[t@fs14(fs14) ~]$ asterisk -r -vvvvvvvvvvvvvvvvvvvvvvvv
-bash: asterisk: command not found
[t@fs14(fs14) ~]$ asterisk -r -vvvvvvvvvvvvvvvvvvvvvvvR
-bash: asterisk: command not found
[t@fs14(fs14) ~]$ locate /var/run/asterisk
[t@fs14(fs14) ~]$ sudo sh /var/run/asterisk -vvvvvvvvvvvvvvvvR
sh: /var/run/asterisk: No such file or directory

With standard file locations: /usr/sbin/asterisk

If use asterisk as root, you shouldn’t have any problems, because /usr/sbin is in root’s PATH.

Perhaps Asterisk was installed in /usr/sbin and your system user doesn’t have that in their PATH definitions. Try /usr/sbin/asterisk, or, as Asterisk was likely installed as root and root typically does have /usr/sbin in their PATH definition, sudo su - first, then run asterisk.

Thanks for the quick replies, i need to use this syntax:

sudo /usr/sbin/asterisk -r

not sure how i missed that haha

Please note that this gives you unrestricted root access.

ok thank you for the help, that resolved my issue