Command Reference- OpenBSD

From Free Knowledge Base- The DUCK Project: information for everyone
Jump to: navigation, search

OPENBSD NOTES: Random Command Reference         AUG 2005


COMMAND: procedure to restart common services

The linux shortcut of killall -HUP servicename is not available in OpenBSD. THerefore it is necessary to use the process id (pid) if issueing a SIGHUP.

restart syslogd

 kill -HUP `cat /var/run/syslog.pid`

COMMAND: tar and compress

OpenBSD tar switches are a little different from Linux tar switches. recommended way to tar and compress a directory, preserve permissions

 tar -p -zcvf /var/named/slave.tgz /var/named/slave

COMMAND: kill all processes

 pkill processname
 pkill -9 processname