Skip to content

Instantly share code, notes, and snippets.

  1. Reverse search of command history:

Ctrl+R

  1. Execure previous command:

!! (may use in combination with sudo: sudo !!)

  1. Trimming of line:

Ctrl+K (to the end) | Ctrl+U (to the start) | Ctrl+Y (yeld cuted part)

  1. use less -F instead tail -f
@nolik
nolik / tmux-cheatsheet.markdown
Created December 28, 2019 14:30 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
[ 0.000000] Linux version 4.20.8-arch1-1-ARCH (builduser@heftig-16404) (gcc version 8.2.1 20181127 (GCC)) #1 SMP PREEMPT Wed Feb 13 00:06:58 UTC 2019
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=e1f39821-3d89-4694-a3a5-53aa73b0fc4f rw quiet
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Hygon HygonGenuine
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
2019-02-18 14:38:42 - [sway/sway/main.c:152] Linux skynet 4.20.8-arch1-1-ARCH #1 SMP PREEMPT Wed Feb 13 00:06:58 UTC 2019 x86_64 GNU/Linux
2019-02-18 14:38:42 - [sway/sway/main.c:168] Contents of /etc/os-release:
2019-02-18 14:38:42 - [sway/sway/main.c:152] NAME="Arch Linux"
2019-02-18 14:38:42 - [sway/sway/main.c:152] PRETTY_NAME="Arch Linux"
2019-02-18 14:38:42 - [sway/sway/main.c:152] ID=arch
2019-02-18 14:38:42 - [sway/sway/main.c:152] BUILD_ID=rolling
2019-02-18 14:38:42 - [sway/sway/main.c:152] ANSI_COLOR="0;36"
2019-02-18 14:38:42 - [sway/sway/main.c:152] HOME_URL="https://www.archlinux.org/"
2019-02-18 14:38:42 - [sway/sway/main.c:152] DOCUMENTATION_URL="https://wiki.archlinux.org/"
2019-02-18 14:38:42 - [sway/sway/main.c:152] SUPPORT_URL="https://bbs.archlinux.org/"
[ 0.000000] Linux version 4.20.8-arch1-1-ARCH (builduser@heftig-16404) (gcc version 8.2.1 20181127 (GCC)) #1 SMP PREEMPT Wed Feb 13 00:06:58 UTC 2019
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=e1f39821-3d89-4694-a3a5-53aa73b0fc4f rw quiet
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Hygon HygonGenuine
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] Linux version 4.20.8-arch1-1-ARCH (builduser@heftig-16404) (gcc version 8.2.1 20181127 (GCC)) #1 SMP PREEMPT Wed Feb 13 00:06:58 UTC 2019
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=e1f39821-3d89-4694-a3a5-53aa73b0fc4f rw quiet
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Hygon HygonGenuine
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
2019-02-18 14:05:12 - [sway/sway/main.c:152] Linux skynet 4.20.8-arch1-1-ARCH #1 SMP PREEMPT Wed Feb 13 00:06:58 UTC 2019 x86_64 GNU/Linux
2019-02-18 14:05:12 - [sway/sway/main.c:168] Contents of /etc/os-release:
2019-02-18 14:05:12 - [sway/sway/main.c:152] NAME="Arch Linux"
2019-02-18 14:05:12 - [sway/sway/main.c:152] PRETTY_NAME="Arch Linux"
2019-02-18 14:05:12 - [sway/sway/main.c:152] ID=arch
2019-02-18 14:05:12 - [sway/sway/main.c:152] BUILD_ID=rolling
2019-02-18 14:05:12 - [sway/sway/main.c:152] ANSI_COLOR="0;36"
2019-02-18 14:05:12 - [sway/sway/main.c:152] HOME_URL="https://www.archlinux.org/"
2019-02-18 14:05:12 - [sway/sway/main.c:152] DOCUMENTATION_URL="https://wiki.archlinux.org/"
2019-02-18 14:05:12 - [sway/sway/main.c:152] SUPPORT_URL="https://bbs.archlinux.org/"
-- Logs begin at Wed 2019-02-06 19:35:08 +03, end at Mon 2019-02-18 13:42:42 +03. --
Feb 18 13:27:38 skynet kernel: Linux version 4.20.8-arch1-1-ARCH (builduser@heftig-16404) (gcc version 8.2.1 20181127 (GCC)) #1 SMP PREEMPT Wed Feb 13 00:06:58 UTC 2019
Feb 18 13:27:38 skynet kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=e1f39821-3d89-4694-a3a5-53aa73b0fc4f rw quiet
Feb 18 13:27:38 skynet kernel: KERNEL supported cpus:
Feb 18 13:27:38 skynet kernel: Intel GenuineIntel
Feb 18 13:27:38 skynet kernel: AMD AuthenticAMD
Feb 18 13:27:38 skynet kernel: Hygon HygonGenuine
Feb 18 13:27:38 skynet kernel: Centaur CentaurHauls
Feb 18 13:27:38 skynet kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Feb 18 13:27:38 skynet kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod1
@nolik
nolik / swayWM ru locale
Created September 30, 2018 20:52
problem with ru keyboard
//i add conf to /etc/vconsole.conf
LOCALE="ru_RU.UTF-8"
KEYMAP="ru"
CONSOLEFONT="cyr-sun16"
CONSOLEMAP=""
USECOLOR="yes"
// /etc/locale.conf
LANG=ru_RU.UTF-8
LC_MESSAGES=ru_RU.UTF-8