Commit ba1a2aad authored by Tomáš Szaniszlo's avatar Tomáš Szaniszlo
Browse files

Add new tips

parent a8e97991
Loading
Loading
Loading
Loading
+30 −0
Original line number Diff line number Diff line
@@ -13,6 +13,36 @@ Source: <https://wiki.debian.org/Keyboard>

- - -

**Resize an ext partition in LVM**

    lvresize -L+20G vg/lv
    resize2fs /dev/mapper/vg-lv

- - -

**Useful grep options**

    -l  --files-with-matches
    -o  --only-matching
    -H  --with-filename

- - -

**Handling NUL-separated strings**

`grep`: `-z` for input, `-Z` for output
`find`: `-print0` for output
`sort`: `-z` for both input and output
`awk`: `BEGIN { RS="\0" }` for input, `BEGIN { ORS="\0" }` for output

- - -

**Online markdown editor**

<https://stackedit.io/editor>

- - -

**Other cheatsheets**

* Markdown: <http://packetlife.net/media/library/16/Markdown.pdf>