Linux Tutorial
[root@fedora ~]# go version
command not found error raised if not installed,
bash: go: command not found... Packages providing this file are: 'gcc-go' 'Golang-bin'
Also we can check the path /usr/local to know installed or not,
[root@fedora ~]# ls /usr/local/
output:
bin etc games include lib lib64 libexec sbin share src
if go lang is not installed, no go directory found.
if go lang is installed,
[root@fedora ~]# go version
Output:
go version go1.20.1 linux/amd64
also check ls command output of path /usr/local
[root@fedora ~]# ls /usr/local/
output:
bin etc games go include lib lib64 libexec sbin share src
Linux Tutorial
Privacy Policy | Copyright2020 - All Rights Reserved. | Contact us | Report website issues in Github | Facebook page | Google+ page