
Delete all lines in a file with Vi or Vim using :%d (shortest), :1,$d (explicit range), or ggdG (normal mode).…
Configure Nginx to serve a subdirectory like example.com/api/ alongside WordPress — alias, try_files, nested PHP-FPM location, and the SCRIPT_FILENAME pitfall.
Check your Ubuntu version with lsb_release -a (clean), cat /etc/os-release (scriptable), cat /etc/issue, hostnamectl, or Settings → About on the…
Check the Linux OS name and version from the command line — cat /etc/os-release (universal), lsb_release -a, hostnamectl, and uname…
Change the default SSH port on Linux (AlmaLinux, Ubuntu, Debian) without locking yourself out — firewall, SELinux semanage, sshd_config, systemctl…
Add and delete users on a Linux server (AlmaLinux, Ubuntu, Debian, RHEL) from the terminal — adduser, passwd, usermod -aG…
Enable CageFS for a user on CloudLinux/cPanel — cagefsctl --enable from CLI, the CloudLinux Manager toggle in WHM, and how…
Set up aaPanel with a domain and Let's Encrypt SSL — fix Chrome's panel block, plus the symlink trick that…
Zip multiple files and directories on Linux with the zip command. Recursion (-r), exclusions (-x), compression level (-0..-9), and when…
List network devices on Linux with ip a (every interface), ip -br link (compact), nmcli dev status (NetworkManager view), or…
Sign in to your account