Command Reference- OpenBSD: Difference between revisions

From Free Knowledge Base- The DUCK Project
Jump to navigation Jump to search
New page: ---- OPENBSD NOTES: Random Command Reference     AUG 2005 ---- === COMMAND: procedure to restart common services === The linux shortcut of killall -HUP servicename is not avai...
 
No edit summary
 
Line 1: Line 1:
----
----
OPENBSD NOTES:  Random Command Reference     AUG 2005
<big>OPENBSD NOTES:  Random Command Reference &nbsp; &nbsp; &nbsp; &nbsp; AUG 2005</big>
----
----



Latest revision as of 16:51, 27 June 2007


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