Command Could Not be Located Because sbin is not included in PATH
If you may have receives an error like The command could not be located because '/sbin' is not included in the PATH environment variable.
While do execute the command ifconfig shows the below output,
Command 'ifconfig' is available in '/sbin/ifconfig'
The command could not be located because '/sbin' is not included in the PATH environment variable.
This is most likely caused by the lack of administrative privileges associated with your user account.
ifconfig: command not found
Which meant ifconfig couldn't found in sbin location, there are two things need to do, one is install ifconfig or check your Environment path,
Set environment path using below command,
If you want to set it permanently append this line in your .bashrc file.