Month: December 2020

The command could not be located because ‘/bin’ is not included in the PATH environment variable. ls: command not found

This is because path environment variables is not set correctly. The .bashrc file should contain following variables in it.   Fix export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" Run the command to ensure it# echo $PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: /usr/local/games

“Cannot open /var/log/sysstat/sa18: No such file or directory.”

After installing sysstat package and running sar command I encountered the error message: “Cannot open /var/log/sysstat/sa18: No such file or directory. Please check if data collecting is enabled” FixOpen and edit /etc/default/sysstat config file and change row from ENABLED=”false” to ENABLED=”true” sudo service sysstat restart