On http://www.cs.newpaltz.edu/~easwaran/Resources/commands.html the following command is listed as being meant to "Refresh the syslog process":
kill -1 `cat /var/run/syslogd.pid`
I have seen this command in real-life use on an embedded device but I cannot wrap my mind around why someone would use it and how it works.
I understand the single parts this is made up off, but e.g. why is the cat
subshell killed using a HUP
signal is not something which makes sense to me.
kill
? Do you know the purpose ofkill -1
? Do you know the purpose ofcat
? Do you know the purpose of/var/run/syslogd.pid
? Do you know the purpose of backticks? I'm trying to find out how detailed an answer needs to be.