Menu

Cheat Sheet

Contents

VI

Cursor movement

Insert Mode – Inserting/Appending text

Editing

Marking text (visual mode)

Visual commands

Cut and Paste

Exiting

Search/Replace

Working with multiple files

Line Numbers

Networking/Subnetting

(ref: RFC1375 & http://www.iana.org/assignments/ipv4-address-space )
( http://www.iana.org/numbers.htm )
———————————————————-

The current list of special use prefixes:

(ref: RFC1918 http://www.rfc-editor.org/rfc/rfc1918.txt )
( or ftp://ftp.isi.edu/in-notes/rfc1918.txt )
(rfc search: http://www.rfc-editor.org/rfcsearch.html )
( http://www.ietf.org/ietf/1id-abstracts.txt )
( http://www.ietf.org/shadow.html )

Martians:

(updates at: http://www.iana.org/assignments/ipv4-address-space )

no ip source-route

filtered source addresses

ARIN administrated blocks:

(http://www.arin.net/regserv/IPStats.html)

well known ports:

(rfc1700.txt)
http://www.iana.org/assignments/port-numbers

protocol numbers:

http://www.iana.org/assignments/protocol-numbers
http://www.iana.org/numbers.htm

ICMP(Types/Codes)

Testing Destination Reachability & Status

Unreachable Destinations

Flow Control

Route Change Requests from Gateways

Router

Detecting Circular or Excessively Long Routes

Reporting Incorrect Datagram Headers

Clock Synchronization and Transit Time Estimation

Obtaining a Network Address (RARP Alternative)

Obtaining a Subnet Mask [RFC 950]

Other

Ref: [RFC 792] [RFC 896] [RFC 950] [RFC 1016]
http://www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/sw_5_3/cofigide/qos.htm#19774

Decimal system Prefixes

Convert Fahrenheit <> Celsius:

Basic Command Line Editing

You can use the following key combinations to edit and recall commands:

WebCenter Cheating

TAR

SCP

Viele rekursiv von REMOTE nach LOKAL

Eine Datei von LOKAL auf VIELE REMOTE

VIELE Dateien von LOKAL nach REMOTE

Paketverteilung

Ein Verzeichnis auf vielen Hosts erstellen

Mehrere LOKALE pakete auf mehrere hosts

Abholen und Auspacken der Pakete

Lynx

LDAP

Softlinks for sure!

Das Kommando:

erzeugt einen Link namens 8XXXX_XXXX_CITYEV, der auf 8XXXX_XXXX_cityev zeigt:

egrep

Diffing the Dirs

wenn keine Ausgabe erfolgt, sind die Verzeichnisse identisch.

sed

Schießt aus einer Datei alle Vorkommnisse von AAAA raus und ersetzt sie durch BBBB

z.B.:

Matchende Zeilen aus einer Datei herausschiessen:

RTD-Sheet Cheats

Mehrere Tomcats gleichzeitig starten/stoppen

Die Response von mehreren healthcheck_ung.htmls mit einem Einzeiler einsammeln

SSL-certificates for mailservers

Basic check of SSL-certificate

Checking for expiration date of a SSL-certificate

How to generate SSL-certificates

generate SSL-certificate for postfix

generate SSL-certificates for Courier

then change the hostname in impad.cnf and pop3d.cnf

then recreate the certificates

and restart courier

Geop Cheats

Make root useful

[password]

[password]

Creating default users

[password]

[password]

Limit “su to root” to members of group “wheel” via PAM

To prevent users, which are not members of the “wheel”-group, to become “root” enable the option “auth required pam_wheel.so use_uid”.

Uncomment line number 7.

securetty

To further narrow down where “root” can log in, delete lines 2 to 12.

Configure SSHd to prevent direct root-logins

To prevent sshd from accepting root-logins you have to edit “/etc/ssh/sshd_config”. Enable the option “#PermitRootLogin” in the “Authentication”-section and set it to “no”

Stuff

Move Back to previous Directory

Einzeiler

HP-UX

autocompletion

AUtocompletion von Verzeichnis- oder Filenamen

Delete Taste

Mails von der Kommandozeile schicken

mailx

msmtp

File msmtp-conf:

o2-cheats

Die LDFLAGS muss man setzen weil der linker sonst die libexpat nicht findet. Es muss die libexpat in apr-util sein!

monit

monit docu

https://mmonit.com/monit/documentation/

make monit use an external smtpserver

Make monit (>=4.10) send out mails via an external mailserserver.

virsh/KVM

virsh console <host> nutzbar machen

file: /etc/inittab:

storeBackup

recovery

http://www.nongnu.org/storebackup/de/node29.html

Lidl Cheating

create all server list

SSH-Key-verteilung

Einfache Methode um den SSH-Key auf alle Systeme zu verteilen (inkl Check ob der Key dort schon vorhanden ist):

Remedy Cheating

Remedy Advanced Searching And Macros