less {filename}
| Navigation | |
|---|---|
SPACE |
forward one window |
b |
backward one window |
d |
forward half window |
| root@lab-182:~# lsblk | |
| NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS | |
| loop0 7:0 0 79.9M 1 loop /snap/lxd/22923 | |
| loop1 7:1 0 61.9M 1 loop /snap/core20/1405 | |
| loop2 7:2 0 44.7M 1 loop /snap/snapd/15534 | |
| sda 8:0 0 30G 0 disk | |
| ├─sda1 8:1 0 1M 0 part | |
| ├─sda2 8:2 0 1.8G 0 part /boot | |
| └─sda3 8:3 0 14.2G 0 part | |
| └─ubuntu--vg-ubuntu--lv 253:0 0 14.2G 0 lvm / |
| #Ubuntu 22.04 | |
| # How to install Nginx using nginx-build tools. | |
| ## Install nginx-build. | |
| $ wget https://github.com/cubicdaiya/nginx-build/releases/download/v0.11.6/nginx-build-linux-amd64-0.11.6.tar.gz \ | |
| -O /tmp/nginx-build.tar.gz && \ | |
| tar -xzf /tmp/nginx-build.tar.gz \ | |
| -C /usr/local/bin && \ | |
| chmod +x /usr/local/bin/nginx-build |
| # CSR for single domain: abc.example.com | |
| openssl req -new -newkey rsa:2048 \ | |
| -keyout abc.key \ | |
| -nodes -out abc.csr \ | |
| -subj "/C=VN/ST=Ho Chi Minh/L=District 16/O=MyCompany/OU=MyTeam/CN=abc.example.com" | |
| # CSR for multi-domain - Subject Alternative Name (SAN): abc.example.com and xyz.example.com | |
| openssl req -new -newkey rsa:2048 \ | |
| -keyout abcxyz.key \ | |
| -nodes -out abcxyz.csr \ |
| # gdisk | |
| gdisk /dev/sdb | |
| -> x extra functionality (experts only) | |
| -> Command (? for help): x | |
| -> z zap (destroy) GPT data structures and exit | |
| -> Blank out MBR? (Y/N): Y | |
| # sgdisk | |
| zgdisk -Z /dev/sdb |
| How to use iperf3 to test bandwidth between 2 hosts | |
| # Ubuntu 22.04 | |
| # Install iperf3 | |
| sudo apt install iperf3 | |
| # On host-01 (10.10.10.205), run iperf3 as a server | |
| iperf3 -s |