Skip to content

Instantly share code, notes, and snippets.

@ivankovacevic
ivankovacevic / ps-specifiers.txt
Created April 1, 2014 16:56
ps - STANDARD FORMAT SPECIFIERS
STANDARD FORMAT SPECIFIERS
Here are the different keywords that may be used to control the output
format (e.g. with option -o) or to sort the selected processes with the
GNU-style --sort option.
For example: ps -eo pid,user,args --sort user
This version of ps tries to recognize most of the keywords used in
@ivankovacevic
ivankovacevic / skeleton
Created April 1, 2014 15:59
System V init script skeleton
#! /bin/sh
### BEGIN INIT INFO
# Provides: skeleton
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.