Commit 69ec6bc3 authored by Tomáš Szaniszlo's avatar Tomáš Szaniszlo Committed by Tomáš Szaniszlo
Browse files

CS: reordering to put the top tips at the... top

parent 39e2fc75
Loading
Loading
Loading
Loading
+26 −26
Original line number Diff line number Diff line
**tcpdump with cyclic pcap save buffers**

    tcpdump -i vlan2 icmp6 -G 86400 -w /tmp/capture-%w.pcap

| -G    | -w | description       |
| ----- | -- | ----------------- |
| 86400 | %w | 7 saves daily     |
| 3600  | %H | 24 saves hourly   |
| 60    | %M | 60 saves minutely |

- - -

**Timestamping**

    command | awk '{ print strftime("[%F %T]"), $0 }'

Source: <https://unix.stackexchange.com/questions/26728/prepending-a-timestamp-to-each-line-of-output-from-a-command>

- - -

**Order mutt mails by date**

    :set sort=date-received

- - -

**Change keyboard layout in console (Debian)**

    dpkg-reconfigure keyboard-configuration
@@ -123,18 +149,6 @@ Examples:

- - -

**tcpdump with cyclic pcap save buffers**

    tcpdump -i vlan2 icmp6 -G 86400 -w /tmp/capture-%w.pcap

| -G    | -w | description       |
| ----- | -- | ----------------- |
| 86400 | %w | 7 saves daily     |
| 3600  | %H | 24 saves hourly   |
| 60    | %M | 60 saves minutely |

- - -

**X11 forwarding through `ssh` after running `su`**

    client$ ssh -X user1@host2
@@ -146,14 +160,6 @@ Source: <https://debian-administration.org/article/494/Getting_X11_forwarding_th

- - -

**Timestamping**

    command | awk '{ print strftime("[%F %T]"), $0 }'

Source: <https://unix.stackexchange.com/questions/26728/prepending-a-timestamp-to-each-line-of-output-from-a-command>

- - -

**`pstree`**

    pstree -aclnp
@@ -215,12 +221,6 @@ Source: <https://unix.stackexchange.com/questions/19296/recovering-from-sys-rq-r

- - -

**Order mutt mails by date**

    :set sort=date-received

- - -

**Where to search for periodic jobs**

    ls /etc/cron.*