sudo kill $(sudo lsof -t -i:12345)
cat ids_to_execute | xargs -P 24 -I % command that can contain spaces and --flags %
sudo dmidecode | grep -A 9 "System Information"
ssh-keygen -t rsa -b 4096 -C "me@email.some.domain"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
sudo apt-get install xclipFi
xclip -sel clip < ~/.ssh/id_rsa.pub
Sometimes there might be a firewall preventing you to perform direct ssh. Or you might be outside of target network.
ssh -J [jump address] [target address]
Host [jump host id]
Hostname [jump host]
Host [target host identifier]
Hostname [target host name]
ProxyJump [[user]@][jump host id]
Then you can
ssh [[user]@][target host identifier]
ssh-keygen -lf /etc/ssh/ssh_host_ecdsa_key.pub
ssh-keygen -lf id_rsa.pub
export PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;33m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ "
Usually, you are interested in:
queries per second (qps)
TX - sent, RX - received
Usually, you are interested in:
average/P95/P99 latency
average throughput
per last few seconds, per minute, per 5 minutes
per PID: sudo nethogs
per destination IP/host: sudo iftop
over time: bmon
fsck /dev/dev_name
Ctrl+R
Ctrl+Alt+Shift+R