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+Zsuspending processfg NUMreturn process to displaybg NUMcontinue process in backgroundjobsputs list process
Ctrl+Rfind in terminal historyCtrl+Lclear terminalCtrl+Wdelete wordCtrl+Shift+3- commented current input lineCtrl+PPrevious command, arrow UP duplicateCtrl+NNext command, arrow DOWN duplicateCtrl+JENTER command duplicateCtrl+[ESC command duplicateCtrl+CInterrupt/Clear/StopCtrl-Dclose session/terminalCtrl-AHOME command duplicateCtrl-EEND command duplicateCtrl-x+Ctrl-eedit 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 PATHget home copy from serversvn log [--limit 10][last 10] commitssvn log -vchanged filessvn log --diffchanges (svn diff -c1.6v)svn infoinfo about home copysvn statvhat is changedsvn up [-rXXXX]update svn home copy [to revision number]svn blame
vim:
dcutycopyp/Ppasteuundoctrl+rredo: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 file1G5G[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