hard mode :
pkill -U USER_NAME
soft mode:
who # found session and pts number
pkill -9 -t pts/NUMBER
long mode:
ps -ef | grep USERNAME | grep ssh
kill -9 PID
# proxy
Host node1
HostName 192.168.1.2
Host other_node2
ProxyCommand ssh -q node1 /bin/nc.traditional [other_node2 IP] 22
User none
Host gitlab
ProxyCommand ssh -q node1 /bin/nc.traditional [other_node2 IP] 22
User git
ForwardX11 no
RequestTTY no
sshfs SERVER:path/to/project/. ~/tmp/mount_ssh/
Ctrl+Z
suspending processfg NUM
return process to displaybg NUM
continue process in backgroundjobs
puts list process
Ctrl+R
find in terminal historyCtrl+L
clear terminalCtrl+W
delete wordCtrl+Shift+3
- commented current input lineCtrl+P
Previous command, arrow UP duplicateCtrl+N
Next command, arrow DOWN duplicateCtrl+J
ENTER command duplicateCtrl+[
ESC command duplicateCtrl+C
Interrupt/Clear/StopCtrl-D
close session/terminalCtrl-A
HOME command duplicateCtrl-E
END command duplicateCtrl-x
+Ctrl-e
edit cmd line in editor and execute
https://ss64.com/bash/syntax-keyboard.html
- more hotkey
PS1="\[\e[4m\e[01;42m\]\u@\h\[\e[01;33m\]::\W$\[\e[00m\] "
dmesg -wH
infinity output dmesg log
grep --color --exclude={*.o,*.so,grep.sh} -nrC1 "rs_esdvnpn_wf" .
screen /dev/ttyUSB0 115200
minicom alternative
ctrl+a k yes/no - for close serial connection in screen
tmux
printf '\033]2;%s\033\\' 'title goes here'
set pane name in tmux 2.3
[https://stackoverflow.com/questions/9747952/pane-title-in-tmux]
svn:
svn co PATH
get home copy from serversvn log [--limit 10]
[last 10] commitssvn log -v
changed filessvn log --diff
changes (svn diff -c
1.6v)svn info
info about home copysvn stat
vhat is changedsvn up [-rXXXX]
update svn home copy [to revision number]svn blame
vim:
d
cuty
copyp/P
pasteu
undoctrl+r
redo:e
- open file:bn
- next file:bp
- previous file:Ex
- explorer?:sp
- split window:vsp
- vertical splitCtrl+w, w
- next windowG
- to end of filegg
- to first line in file1G
5G
[0-9+]G
- go to line number 1, 5, ...
installing libftdi on Centos7 it is hard. And you may have problem undefined symbol: libusb_handle_events_timeout_completed
http://blog.hajma.cz/2016/02/solved-gqrx-crash-on-startup.html
http://helpany.ru/otladka-s-pomoschu-ltrace/
use ldd
and ltrace
gnome disable workspace switch Ctrl+Alt+[Up/Down] https://unix.stackexchange.com/questions/394143/how-to-disable-gnome-ctrlaltdown-and-ctrlaltup-shortcut
sudo apt-get install dconf-tools
dconf-editor
in dconf-editor go to: /org/gnome/desktop/wm/keybindings/
Find switch-to-workspace-down, put ['disabled'] instead of default
same for ...-up
quit dconf-editor and you are done
mkdir ~/.fonts
cp *fonts_list* ~/.fonts
https://stackoverflow.com/questions/35519538/visual-studio-code-tab-key-does-not-insert-a-tab
Ctrl + M - Tab Moves Focus