show

Scroll within ssh screen terminal

Screen has a scrollback buffer but it cannot be controlled through mouse. Pressing CTRL +A and then ESC enables “Copy mode” in which you can move with cursors and PgUp/PgDown keys. Pressing ESC again ends copy mode. Inspired by https://unix.stackexchange.com/questions/454398/how-to-scroll-inside-a-screen-session-of-an-ssh-connection

Tagged as Shell

show

Quickly show command line cheat sheet for applications

There are two nice tools for that: tldr & cheat sudo apt install tldr pip install cheat Example usage tldr tar cheat tar

Tagged as Shell

show

Analyze system boot time

systemd-analyze is the tool for that job You might want to try some of the following commands: systemd-analyze systemd-analyze blame systemd-analyze critical-chain systemd-analyze plot > visual.svg

Tagged as Shell, Ubuntu

show

SSH login via key file

create key pair and download the files (~/.ssh) ssh-keygen -t rsa -b 2048 add public key to authorized keys /.ssh/authorized_key cat key.pub >> ~/.ssh/authorized_keys login from local machine ssh user@example.com -i /.ssh/keyfile

Tagged as Shell, Ubuntu

show

Install letsencrypt certificates

(while an active apache instance is running)Use webserver default webroot to generate certificates before setting up vhosts for new domains. ​certbot certonly –webroot -w /var/www/html/ -d example.com -d www.example.com

Tagged as Shell, Ubuntu