cat ~/.ssh/id_rsa.pub
cat ~/.ssh/authorized_keys
ssh -i [PATH/TO/KEY] [USER]@[IP]
nano ~/.ssh/config
source ~/.bashrc
ip addr | grep inet
ss -tulpn
nginx -t
curl -I [URL]
ufw allow from [IP] to any port [PORT]
firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="[IP]" port port="[PORT]" protocol="tcp" accept'
nano /etc/nftables.conf && nft -f /etc/nftables.conf
Show Status: [See Hover for commands]
lsusb
upsc eaton@localhost
nvidia-smi
top
| OS | Install | Search for Name |
|---|---|---|
| Alma/Fedora | dnf install [pkg] | dnf search [word] |
| Ubuntu/Mint | apt install [pkg] | apt search [word] |
| OpenWRT | opkg install [pkg] | opkg find [word] |
| Termux | pkg install [pkg] | pkg search [word] |
| Maintain | pkg update && pkg upgrade (Refresh all) | |
sqlite3 [DB].db ".tables"
sqlite3 [DB].db ".schema"
grep -i "[KEYWORD]" [FILE]
journalctl -u [SERVICE] -f
python3 -m json.tool [FILE].json
nohup python3 [SCRIPT].py &
Advanced SQL and Grep filters.
grep -C 5 "error" [file]
grep "failed" /var/log/*.log
grep -oE "[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}" [file] | sort | uniq -c
SELECT a.name, b.value FROM [T1] a JOIN [T2] b ON a.id = b.id;
SELECT * FROM [Table] WHERE [Column] LIKE '%shadow%';
SELECT DISTINCT [Column] FROM [Table];
nohup python3 [script].py > out.log 2>&1 &
upsc eaton@localhost
SELECT * FROM [T1] JOIN [T2] ON [T1].id = [T2].id;
SELECT * FROM [Table] WHERE [Column] LIKE '%keyword%';
SELECT [Column], COUNT(*) FROM [Table] GROUP BY [Column];
SELECT * FROM [Table] WHERE [Status]='active' ORDER BY id DESC LIMIT 10;
source [folder]/bin/activate
nohup python3 [script].py &
python3 -m json.tool [file.json]
curl -X POST "[IP]/message?token=[TOKEN]" -F "title=Sovereign" -F "message=System Alert"
/etc/nginx/sites-available/default
/etc/nginx/nginx.conf
/etc/config/
/etc/shadowsocks-libev/config.json
find / -name "[filename]"
find / -type f -size +100M
grep -rnw "/etc/nginx/" -e "[word]"
ip addr | grep "inet " | grep -v "127.0.0.1"
1. cd /var/www/html | 2. sudo nano index.html | 3. sudo systemctl reload nginx
Gotify Alert: curl -X POST "[IP]/message?token=[TOKEN]" -F "title=Alert" -F "message=Update Success"