Linux

Contents
      1. Useful Esc-Sequences
      2. Recommended Programms
      3. Mount Disk Image With Logical Volumes
      4. One-Liners

Useful Esc-Sequences

(should be backslash and square bracket, not ( and /, sequence with simple quotation marks)
 echo -e /033(11;0
Other option codes:
Reset:
 echo -e /033c
as does the reset command
See also:

Recommended Programms

Mount Disk Image With Logical Volumes

    # Add partition mappings
    $ kpartx -av f15.img 
    add map loop0p1 (254:0): 0 1024000 linear /dev/loop0 2048
    add map loop0p2 (254:1): 0 19945472 linear /dev/loop0 1026048
    
    # scan all disks for volume groups
    $ vgscan
      Reading all physical volumes.  This may take a while...
      Found volume group "vg_v15" using metadata type lvm2
    
    # -a makes the logical  volumes known to the kernel. (y=yes)
    $ vgchange -ay
      2 logical volume(s) in volume group "vg_v15" now active
    # see what we've got:
    $ lvs
      LV      VG     Attr   LSize Origin Snap%  Move Log Copy%  Convert
      lv_root vg_v15 -wi-a- 7.56g                                      
      lv_swap vg_v15 -wi-a- 1.94g                                      
    # ready to mount!
    $ mount /dev/vg_v15/lv_root some/mountpoint/

One-Liners

Some (Almost-)One-Liner commands and configuration options:
LILO: append "reboot=warm" GRUB: kernel /boot/vmlinuz root=/dev/hda6 reboot=warm
(Epson only)
 escputil -r /dev/usblp0 -i
in ~/.Xresources :
 pterm.WarnOnClose: 0
Gnome:
 sleep 180 ; zenity --info --text='Black Tea Ready!'
KDE:
 sleep 300 ; kdialog --msgbox 'Green Tea Ready'
 pdftk *.pdf cat output myMergedDocument.pdf
 pdfposter -mA4 -pA3 onePageMap.pdf multiPageResult.pdf
Splits one PDF-page into two A4 pages to form a A3-sized arrangement
Go to: Edit > Plugins > Status Icon > Configure... Change the status icon behaviour from "Owns the main window" to any other option you like.
Change Exec-entry in /usr/share/applications/totem.desktop to:
 Exec=totem --no-existing-session %U
WARNING: The --no-existing-session option doesn't work with Totem 3, and prevents startup when used. Running totem from a script that starts a new session bus still allows multiple Totem instances:
    #!/bin/bash
    eval $(dbus-launch --sh-syntax)
    totem
    kill $DBUS_SESSION_BUS_PID
This might not be without side-effects, however.
In /usr/share/themes/Dust/index.theme, change the ButtonLayout property to:
    ButtonLayout=close,minimize,maximize:
Alternatively, moving the colon to the left makes the window buttons appear on the right:
    ButtonLayout=:maximize,minimize,close
This might get overridden by system updates. To prevent this, you can make a renamed copy of the the Dust folder, change the theme name in index.theme, and switch to that new theme.
setxkbmap -option "ctrl:nocaps"
find . -type f -name '*.txt' | xargs md5sum | sort | uniq -D -w 32

EditContents