How to know what the ‘errno’ means?

You can use strerror() to get a human-readable string for the error number. This is the same string printed by perror() but it’s useful if you’re formatting the error message for something other than standard error output. For example: Linux also supports the explicitly-threadsafe variant strerror_r().

Where does linux store my syslog?

On my Ubuntu machine, I can see the output at /var/log/syslog. On a RHEL/CentOS machine, the output is found in /var/log/messages. This is controlled by the rsyslog service, so if this is disabled for some reason you may need to start it with systemctl start rsyslog. As noted by others, your syslog() output would be logged by the /var/log/syslog file.You can see system, user, … Read more

Configuring Apache for localhost

/xxx/xxxx also needs to be readable by www-data in order to work as document root. You’ll also need the permissions defined in a directory block. Or set your DocumentRoot /xxx/xxxx/Web

Adding a new entry to the PATH variable in ZSH

Here, add this line to .zshrc: EDIT: This does work, but ony’s answer below is better, as it takes advantage of the structured interface ZSH provides for variables like $PATH. This approach is standard for bash, but as far as I know, there is no reason to use it when ZSH provides better alternatives.