All tags
tip
Narrow down
Shell98
- Tip
shortcuts run "Combine Images" -i ~/Desktop/*.jpg -o ~/Desktop/combined.pngshortcuts run starts a Mac shortcut from TerminalRuns your Shortcuts app shortcuts from the command line, with files as input.25 Nov 2026 - Tip
sudo arping -D -I eth0 -c 3 192.168.1.50Arping -D checks if an IP address is already takenChecks whether another device on your LAN already answers to an IP address.25 Nov 2026 - Tip
ssh-keygen -p -f ~/.ssh/id_ed25519ssh-keygen -p changes a key's passphrase without a new keyAdds, changes or removes the passphrase on an existing SSH private key.25 Nov 2026 - Tip
sudo ip addr add 192.0.2.10/24 dev eth0Ip addr add gives an interface a temporary extra addressAdds an extra IP address to an interface right away, and the address disappears again after a reboot.25 Nov 2026 - Tip
sudo nft list rulesetNft list ruleset shows the active nftables firewall rulesPrints every table, chain and rule that nftables currently has loaded in the kernel.25 Nov 2026 - Tip
echo 'price=42 EUR' | grep -oP '\d+(?= EUR)'Grep -P uses Perl-compatible regular expressionsLets grep use Perl-style patterns such as lookahead and \d, which the basic and extended syntax lack.25 Nov 2026 - Tip
sudo passwd -l olduserPasswd -l locks a Linux account password, but SSH keys still workDisables a user's password login on Linux, and what else is needed to really block the account.25 Nov 2026 - Tip
wp cron schedule listwp cron schedule list shows the intervals WordPress cron knows aboutLists the available WordPress cron schedules, such as hourly and daily, with their intervals in seconds.25 Nov 2026 - Tip
afplay /System/Library/Sounds/Glass.aiffafplay plays a sound file from the terminal when a long job endsPlays an audio file through the default output, so a long command can tell you it has finished.25 Nov 2026 - Tip
hdiutil create -volname "Project" -srcfolder ~/Documents/project project.dmghdiutil create -srcfolder packs a folder into a .dmg disk imageCreates a compressed disk image from a folder, ready to share, mount or archive.25 Nov 2026 - Tip
sshfs user@server:/srv/data ~/remotesshfs mounts a remote folder over SSH like a local driveMounts a directory from another machine on a local folder, using nothing more than an SSH login.25 Nov 2026 - Tip
ssh-add -lssh-add -l lists the keys your SSH agent has loadedShows the fingerprints of all keys held by the SSH agent, so you know what can log in for you.25 Nov 2026 - Tip
ssh -f -N -o ExitOnForwardFailure=yes -M -S ~/.ssh/fwd.sock -L 8080:localhost:80 user@serverssh -f -N -L runs a port forward in the backgroundOpens a local port forward through SSH in the background, with a clean way to close it.25 Nov 2026 - Tip
ssh-keyscan -t ed25519 example.com | ssh-keygen -lf -ssh-keyscan fetches a server's host keys so you can check fingerprintsDownloads the public host keys of a server, so you can inspect their fingerprints before trusting it.25 Nov 2026 - Tip
sudo tailscale set --hostname=nasTailscale set --hostname renames a device without logging in againChanges the name a device uses on your tailnet, without rerunning tailscale up or the full settings.25 Nov 2026 - Tip
say -v '?'say makes your Mac read text aloud or save it as an audio fileReads text out loud with a system voice, or writes the speech to an audio file.24 Nov 2026 - Tip
sw_verssw_vers prints your macOS version and build numberPrints the macOS product name, version and build number, or just one of them for scripts.24 Nov 2026 - Tip
xattr -l ~/Downloads/app.dmgxattr -l shows the hidden extra data that macOS attaches to a fileLists the extended attributes of a file, including the quarantine flag that macOS sets on downloads.24 Nov 2026 - Tip
sudo ethtool eth0Ethtool eth0 shows the link speed and duplex of a network portShows the negotiated speed, duplex mode and link status of a network interface.24 Nov 2026 - Tip
sudo lastb | head -n 20Lastb lists failed login attempts on a Linux serverShows the log of bad login attempts that Linux keeps in /var/log/btmp.24 Nov 2026 - Tip
mkdir ~/projects/new-siteAlt+. pastes the last word of your previous commandInserts the last argument of the previous command at the cursor, and cycles back through older ones.24 Nov 2026 - Tip
ssh -G myserver | grep -E '^(hostname|user|port|identityfile) 'ssh -G shows the settings SSH will really use for a hostPrints the final SSH settings for a host after every Host and Match block is applied, without connecting.24 Nov 2026 - Tip
sudo tailscale cert machine.your-tailnet.ts.netTailscale cert gets you a real HTTPS certificate for a device nameFetches a Let's Encrypt certificate for your machine's tailnet name, so a service can use HTTPS.23 Nov 2026 - Tip
sudo nginx -t && sudo systemctl reload nginxNginx -t checks your config before you reloadTests the nginx configuration for errors, so a typo does not take your sites down.23 Nov 2026 - Tip
mover startmover start runs the Unraid mover from the terminalStarts the mover now, so cache files move to the array without waiting for the schedule.23 Nov 2026 - Tip
timedatectltimedatectl shows whether your server clock is in syncPrints the local time, the time zone and whether the clock is synchronised with an NTP server.23 Nov 2026 - Tip
journalctl --since "1 hour ago"journalctl --since "1 hour ago" cuts the log down to what just happenedShows only the log lines of the last hour, or any period you give it.23 Nov 2026 - Tip
networkQualityNetworkQuality runs a speed test from the Mac terminalMeasures your download and upload speed and the lag under load, without opening a browser.23 Nov 2026 - Tip
systemd-analyze blamesystemd-analyze blame shows which services slow down your bootLists every service by how long it took to start during the last boot, slowest first.21 Nov 2026 - Tip
ssh -J user@jumphost user@internal-serverssh -J reaches a server behind a jump host in one commandConnects to a server through a jump host in one step, without a manual hop.21 Nov 2026 - Tip
eval "$(fzf --bash)"Fzf turns Ctrl-R into a fuzzy search of your shell historyReplaces Ctrl-R with a fuzzy, live-filtered search of your shell history.19 Nov 2026 - Tip
crontab -e@reboot in a crontab runs a command at every startupRuns a script once at every boot, straight from your crontab.19 Nov 2026 - Tip
sudo dmesg -T | tail -30Dmesg -T gives kernel messages readable timestampsShows kernel messages with real clock times instead of seconds since boot.19 Nov 2026 - Tip
sudo lsof +L1Lsof +L1 finds deleted files that still fill your diskLists deleted files that a running program still holds open, which is why df stays full.19 Nov 2026 - Tip
:w !sudo tee % > /dev/null:w !sudo tee % saves a file you opened without sudoSaves a file that vim opened without permission, using sudo from inside the editor.19 Nov 2026 - Tip
softwareupdate --listsoftwareupdate --list shows pending macOS updates without opening SettingsLists the macOS updates that are waiting for you, straight from the terminal.18 Nov 2026 - Tip
cat ~/.ssh/id_ed25519.pub | pbcopyPbcopy puts the output of any command on your Mac clipboardSends the output of a terminal command straight to the clipboard, so you can paste it anywhere.18 Nov 2026 - Tip
ssh-keygen -R nas.localssh-keygen -R removes the old host key when SSH shouts about a changed fingerprintClears the old host key so SSH stops warning about a changed fingerprint after a reinstall.17 Nov 2026 - Tip
systemctl --failedsystemctl --failed lists every service that did not startLists every service that failed to start, so you know after a reboot if everything came back.17 Nov 2026 - Tip
journalctl -p err -bjournalctl -p err -b shows only what went wrong since the last bootShows only the errors in the system log since the last boot.16 Nov 2026 - Tip
make 2>&1 | lessUse |& to pipe stderr along with stdout in BashSends both normal output and error messages through the pipe, shorter than 2>&1.24 Oct 2026 - Tip
sudo tailscale set --advertise-routes=10.0.0.0/16,10.0.0.0/24Advertise the more specific route too when subnet routes overlapKeeps traffic flowing when the router with the more specific subnet route goes offline.14 Oct 2026 - Tip
diffdiff <(cmd1) <(cmd2) compares output without temp filesCompares the output of two commands directly, without saving them to temporary files.10 Oct 2026 - Tip
sudo tailscale set --accept-routesLinux needs tailscale set --accept-routes to use subnet routesMakes a Linux machine use the subnet routes that other tailnet devices advertise.3 Oct 2026 - Tip
tmux capture-pane -p -S - | grep -n 'error'tmux capture-pane -p dumps the pane's text to stdoutPrints everything in a tmux pane, scrollback included, so you can grep it.2 Oct 2026 - Tip
tmux new -As worktmux new -As work attaches to a session or creates itAttaches to the tmux session called work, or creates it when it does not exist.24 Sep 2026 - Tip
plutil -p ~/Library/Preferences/com.apple.finder.plistplutil -p prints a plist in a readable wayPrints a macOS preferences file as readable text.20 Sep 2026 - Tip
sudo tailscale set --exit-node=100.101.102.103 --exit-node-allow-lan-access=trueKeep your printer reachable on an exit node with --exit-node-allow-lan-accessKeeps local network devices like printers reachable while the rest of your traffic uses an exit node.19 Sep 2026 - Tip
sudo unattended-upgrade -v --dry-runDo a dry run before you trust unattended-upgradesSimulates an automatic update run and shows what it would install without changing anything.18 Sep 2026 - Tip
mdls -name kMDItemWhereFroms ~/Downloads/example.pdfmdls -name kMDItemWhereFroms tells you where a download came fromShows the web address a downloaded file came from.14 Sep 2026 - Tip
sudo ufw show addedUfw show added lets you check your rules before you enable the firewallLists the firewall rules you have added so you can check them before turning ufw on.11 Sep 2026 - Tip
sudo setfacl -m u:alice:rX /srv/dataSetfacl gives one extra user access without changing the groupGives one extra named user access to a folder without touching owner or group.11 Sep 2026 - Tip
[Resolve]Turn on DNS over TLS in systemd-resolvedMakes systemd-resolved send all DNS queries over an encrypted TLS connection.10 Sep 2026 - Tip
sips -Z 1600 photo.jpg --out photo-small.jpgsips -Z shrinks photos from the terminalShrinks images to a maximum size from the terminal without opening an editor.8 Sep 2026 - Tip
sudo ufw status numberedUfw status numbered lets you delete a rule by its numberRemoves a firewall rule by its number from the numbered status list.6 Sep 2026 - Tip
open -R ~/Downloads/report.pdfopen -R reveals a file in Finder instead of opening itShows a file selected in Finder instead of opening it.28 Aug 2026 - Tip
sudo ufw limit sshUfw limit slows down anything hammering your SSH portAllows SSH but blocks any address that opens six or more connections in thirty seconds.27 Aug 2026 - Tip
resolvectl flush-cachesresolvectl flush-caches clears the DNS cache on LinuxEmpties the local DNS cache of systemd-resolved without restarting the service.23 Aug 2026 - Tip
cat ~/.ssh/id_ed25519.pub | pbcopyPbcopy and pbpaste connect the terminal to your clipboardPipes terminal output to your clipboard and pastes clipboard text into commands.22 Aug 2026 - Tip
stat -c '%a %U:%G %n' /etc/ssh/sshd_configstat -c prints the permissions as numbersPrints a file's permissions as an octal number with owner, group and name.18 Aug 2026 - Tip
define( 'DISABLE_WP_CRON', true );Switch off WP-Cron and let a real cron job do the workTurns off WordPress's visitor-triggered scheduler so a real server cron job runs the scheduled tasks instead.14 Aug 2026 - Tip
qlmanage -p report.pdfqlmanage -p opens Quick Look from the terminalOpens the Quick Look preview of a file straight from the terminal.12 Aug 2026 - Tip
"ssh": [Use action check in a Tailscale SSH rule for a re-loginMakes Tailscale SSH ask for a fresh identity check before a login, with a period you choose.10 Aug 2026 - Tip
sudo netplan tryNetplan try rolls your network change back if you lose the connectionApplies a netplan change and automatically undoes it unless you confirm it in time.7 Aug 2026 - Tip
resolvectl query example.comresolvectl query shows how a name was resolvedResolves a name through systemd-resolved and shows which link, protocol and cache gave the answer.5 Aug 2026 - Tip
claude -p "run the test suite" --permission-mode dontAsk --allowedTools "Bash(npm test)" "Read"–permission-mode dontAsk denies instead of waiting in unattended runsMakes an unattended Claude Code run deny anything not on your allowlist instead of waiting.5 Aug 2026 - Tip
wp cron event run --due-nowwp cron event run --due-now runs the stuck scheduled tasksRuns every overdue WordPress scheduled task immediately instead of waiting for the next visitor.1 Aug 2026 - Tip
tmutil addexclusion ~/projects/site/node_modulestmutil addexclusion keeps node_modules out of Time MachineTells Time Machine to skip a folder so it stops backing up files you can rebuild.28 Jul 2026 - Tip
tailscale set --sshTurn on Tailscale SSH with tailscale set --sshLets you log in over SSH to a machine using your tailnet identity instead of key files.27 Jul 2026 - Tip
cp /etc/ssh/sshd_config{,.bak}cp file{,.bak} makes a backup copy without typing the name twiceExpands to a command with the file name and a .bak copy, saving you from typing the path twice.26 Jul 2026 - Tip
sudo snap revert firefoxSnap revert puts a snap back on its previous versionRolls a snap back to the previously installed revision after a bad update.26 Jul 2026 - Tip
softwareupdate --listsoftwareupdate --list checks for macOS updates without opening SettingsLists the updates Apple has ready for your Mac, from the terminal.21 Jul 2026 - Tip
shopt -s extglobWith extglob, !(*.log) matches everything except your log filesLists or selects every file except the ones matching a pattern, using Bash extended globs.18 Jul 2026 - Tip
sudo snap refresh --hold=72h firefoxSnap refresh --hold pauses one snap without turning updates offPauses automatic updates of one snap for a set time, or forever, and can be undone.18 Jul 2026 - Tip
sudo du -h -d1 -x /var | sort -hdu -h -d1 | sort -h finds what is eating your diskLists directory sizes with the biggest last, so you see what fills the disk.17 Jul 2026 - Tip
claude -p --max-turns 3 --max-budget-usd 2 "Fix the failing test in auth.py" --allowedTools "Read,Edit,Bash"Cap a headless Claude run with --max-turns and --max-budget-usdStops a scripted Claude Code run after a set number of turns or amount of spend.15 Jul 2026 - Tip
networksetup -listallnetworkservicesSet DNS servers per network service with networksetupChanges the DNS servers of a network connection from the terminal, and resets them.14 Jul 2026 - Tip
shopt -s globstarshopt -s globstar lets ** match files in every subfolderTurns on ** in Bash so one pattern matches files in every subfolder.13 Jul 2026 - Tip
sudo apt autoremove --purgeApt autoremove --purge also deletes the leftover config filesRemoves unused dependency packages together with their leftover configuration files.11 Jul 2026 - Tip
systemctl list-timers --allsystemctl list-timers is cron's answer inside systemdShows every scheduled systemd timer with its last and next run time.9 Jul 2026 - Tip
screencapture -o -w ~/Desktop/settings.pngscreencapture -o -w grabs a window without the drop shadowCaptures one window as a clean image without the shadow around it.6 Jul 2026 - Tip
diagnosticsRun diagnostics in the terminal when the WebGUI will not loadCreates a support zip of your Unraid system from the terminal and saves it to the boot device.5 Jul 2026 - Tip
trap 'rm -rf "$tmp"' EXITtrap EXIT cleans up your temp files, even when the script diesRuns a cleanup command whenever the script exits, including after an error.4 Jul 2026 - Tip
systemd-analyze blamesystemd-analyze blame shows what slows down your bootLists services by how long they took to start, so you can see what slows the boot.4 Jul 2026 - Tip
screencapture -T 5 ~/Desktop/menu.pngscreencapture -T 5 takes a screenshot after a delayTakes a screenshot after a few seconds so you can open menus first.28 Jun 2026 - Tip
sudo systemctl edit nginxSystemctl edit changes a service without touching the originalLets you change a systemd service in a separate file that updates will not overwrite.24 Jun 2026 - Tip
rm -rf "${BUILD_DIR:?BUILD_DIR is not set}"/*${var:?} stops a script before an empty variable eats your filesStops the script with an error when a variable is empty, before a delete can hit the wrong path.24 Jun 2026 - Tip
sudo apt install --no-install-recommends–no-install-recommends stops apt from dragging in extrasInstalls a package with only its required dependencies and skips the merely recommended ones.24 Jun 2026 - Tip
mdutil -s /mdutil -s tells you if Spotlight is indexing a volumeShows whether Spotlight indexing is on for a disk.20 Jun 2026 - Tip
set -o pipefailset -o pipefail makes a pipeline fail when any part of it failsMakes a pipeline report failure when any command in it fails, not only the last one.18 Jun 2026 - Tip
journalctl --disk-usagejournalctl --vacuum-size caps how much log space you keepShrinks the systemd journal to a size you pick by deleting the oldest logs.16 Jun 2026 - Tip
mdfind -name invoice -onlyin ~/Documentsmdfind -name searches by file name from the terminal, using SpotlightFinds files by name using the Spotlight index, much faster than walking folders.12 Jun 2026 - Tip
cd Alt+.Alt+. pastes the last argument of your previous commandPastes the last word of your previous command at the cursor, so you do not retype paths.9 Jun 2026 - Tip
sudo apt-mark hold postgresql-16apt-mark hold keeps one package on the version you haveFreezes one package at its current version while everything else keeps updating.9 Jun 2026 - Tip
nano /boot/config/ssh/root/authorized_keysPut your SSH public key in /boot/config/ssh/root so it survives a rebootKeeps your SSH key login working after Unraid restarts, by storing the key on the flash drive.7 Jun 2026 - Tip
pmset -g assertionspmset -g assertions shows what keeps your Mac awakeLists which programs are stopping your Mac from going to sleep.5 Jun 2026 - Tip
sudo !!sudo !! reruns your last command with sudoReruns the previous command with sudo in front of it, so you do not retype it.2 Jun 2026 - Tip
sudo !!Type sudo !! when you forgot the sudoReruns your previous command with sudo in front, so you do not retype it.1 Jun 2026
Docker74
- Tip
docker run --init --rm -it my-imagedocker run --init gives your container a proper PID 1Adds a small init process that forwards signals and cleans up zombie processes.25 Nov 2026 - Tip
// Set { "docker", "tmux", "git", "python" }Set.union() merges two sets without the spread trickCombines two JavaScript sets into a new one with a built-in method.25 Nov 2026 - Tip
docker context create remote --docker "host=ssh://[email protected]"docker context lets your local docker command manage a remote host over SSHCreates a named context for a remote Docker host, so docker commands run there through SSH.25 Nov 2026 - Tip
docker network inspect bridgedocker network inspect shows which containers are on a networkPrints the subnet, gateway and attached containers of a Docker network, and --format picks out single fields.25 Nov 2026 - Tip
docker rename quirky_wozniak web-testdocker rename gives a container a new name without recreating itChanges the name of an existing container while it keeps running, with no new container needed.25 Nov 2026 - Tip
docker save myapp:1.2 | gzip > myapp.tar.gzdocker save | gzip moves an image to a machine without registry accessExports an image to a compressed archive that you can copy elsewhere and load again.25 Nov 2026 - Tip
docker compose lsdocker compose ls lists every Compose project on the hostLists the Compose projects running on this host, so you can find one without remembering its folder.24 Nov 2026 - Tip
docker container ls -sdocker container ls --size shows how much each container has writtenAdds a size column that shows how much data each container wrote on top of its image.24 Nov 2026 - Tip
docker port mycontainerdocker port shows which host ports a container publishesPrints the host address and port mapped to each published port of a container.24 Nov 2026 - Tip
docker top mycontainerdocker top lists the processes inside a container from the hostLists the processes running in a container without opening a shell inside it.24 Nov 2026 - Tip
docker history --no-trunc nginx:latestdocker history --no-trunc shows which command built each image layerLists every layer of an image with the full command that created it and its size.24 Nov 2026 - Tip
docker run --rm -it --entrypoint sh nginx:stabledocker run --entrypoint sh lets you look inside an imageStarts a throwaway shell in an image so you can check what files and tools it really contains.23 Nov 2026 - Tip
docker compose up -d --waitdocker compose up -d --wait returns when your containers are healthyStarts the stack and waits until the containers are running, or healthy when they have a healthcheck.21 Nov 2026 - Tip
docker inspect --format '{{.State.Health.Status}}' mycontainerdocker inspect tells you if a container is healthy, not just runningPrints the health status of a container, so you can tell a stuck app from one that is working.18 Nov 2026 - Tip
docker logs --since 10m -f container-namedocker logs --since 10m -f shows only what just happenedShows only the last few minutes of a container's log and follows new lines.17 Nov 2026 - Tip
docker stats --no-streamdocker stats --no-stream gives you one snapshot instead of a live screenPrints one table with CPU and memory per container, then gives you your prompt back.16 Nov 2026 - Tip
docker system dfRun docker system df before you prune anythingShows how much disk space Docker uses before you delete anything with prune.16 Nov 2026 - Tip
docker compose run --rm app ls -la /datadocker compose run --rm gives you a one-off command that cleans up after itself8 Nov 2026 - Tip
docker compose logs --since 10m -f -n 50 sonarrdocker compose logs --since 10m shows only what just happenedShows only what your Docker Compose stack logged in the last few minutes.5 Nov 2026 - Tip
docker compose up --waitAdd --wait to docker compose up and let it tell you when the stack is really readyGives your prompt back only when every container in the stack is really up and healthy.4 Nov 2026 - Tip
docker network create mynetContainers find each other by name on a custom Docker network, not on the default bridgeShows why a container name only works as a hostname on a user-defined Docker network.1 Nov 2026 - Tip
docker compose configRun docker compose config before you blame your compose filePrints the compose file as Docker really reads it, so you can find the mistake.1 Nov 2026 - Tip
docker diff mycontainerdocker diff shows what a container changed in its filesystemLists every file a container added, changed or deleted compared to its image.22 Oct 2026 - Tip
environment:DISABLE_RESOLVER makes Nginx Proxy Manager use your own DNS settingsStops Nginx Proxy Manager from adding its own DNS resolver, so lookups use hosts and resolv.conf.21 Oct 2026 - Tip
docker run -d ... portainer/portainer-ce:lts \Point Portainer's app templates at your own JSON file with --templatesReplaces Portainer's built-in app template list with a JSON file that you host.20 Oct 2026 - Tip
docker system df -vFind what is filling your Unraid docker.imgFinds which container or volume is filling up Unraid's docker.img.13 Oct 2026 - Tip
proxy_timeout 1h;Nginx streams drop idle connections after ten minutesKeeps idle TCP and UDP streams open longer than the ten minute default.6 Oct 2026 - TipBrowse and upload files inside a Docker volume from PortainerLets you view, upload and download the files in a Docker volume from the Portainer web interface.6 Oct 2026
- Tip
docker ps --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}'docker ps --format table gives you a readable overviewLists running containers with only the columns you choose, such as name and status.6 Oct 2026 - Tip
docker run -d --read-only \Run a container with --read-only and a small tmpfsMakes a container's filesystem read-only, with writable memory-backed folders only where you allow them.1 Oct 2026 - Tip
docker run -d ... portainer/portainer-ce:lts --http-disabledSwitch on Force HTTPS only in Portainer, but test 9443 firstTurns off Portainer's plain HTTP port so the web UI is only served over HTTPS.28 Sep 2026 - Tip
docker run -d --label io.portainer.accesscontrol.teams=devs nginxGive containers made outside Portainer an owner with an access-control labelLets a team see containers started outside Portainer through a label, instead of administrators only.22 Sep 2026 - Tip
docker update --restart=unless-stopped mycontainerdocker update --restart changes the policy without recreating the containerChanges the restart policy of a container that is already running, without recreating it.22 Sep 2026 - Tip
x-common: &commonShare config between services with YAML anchors and x- fieldsDefines a settings block once and reuses it in several services of one compose file.17 Sep 2026 - TipAdd Docker Hub to Portainer's registries with an access token instead of your passwordLogs Portainer in to Docker Hub so it can pull private images and many images.16 Sep 2026
- Tip
Apps > Previous Apps > tick the ones you want > InstallUse Previous Apps to bring back every container after deleting docker.imgReinstalls all your old Docker containers with their saved settings after you recreate docker.img.13 Sep 2026 - Tip
services:${VAR:?message} makes Compose stop when a variable is missingStops Compose with your own error message when a needed variable is empty or missing.11 Sep 2026 - Tip
docker stop portainerUpdate Portainer by pulling the lts tag and recreating the containerShows how to update Portainer by replacing its container while the data volume stays in place.10 Sep 2026 - Tip
docker stop "container-name"Schedule docker stop and start with User Scripts and a cron lineStops or starts a chosen Docker container at a fixed time using the User Scripts plugin.8 Sep 2026 - Tip
tailscaled --state=mem:Run tailscaled with --state=mem: for a throwaway nodeStarts a Tailscale node that keeps no state on disk and is removed from the tailnet when done.8 Sep 2026 - Tip
docker events --filter 'event=die' --filter 'type=container'Watch docker events to see exactly when a container diesStreams a line every time a container exits, with its exit code, so restarts are easy to spot.6 Sep 2026 - Tip
environment:Run Nginx Proxy Manager as a normal user with PUID and PGIDRuns Nginx Proxy Manager as a regular user instead of root and fixes folder ownership.4 Sep 2026 - TipDocker data-root can be a directory instead of a docker.img vDiskExplains the choice between a vDisk image and a plain folder for the place Docker keeps its data.30 Aug 2026
- TipUnraid tells you about container updates, and the Auto Update Applications plugin installs themCompares Unraid's built-in update notices with the plugin that installs updates for you.29 Aug 2026
- Tip
Advanced View > AutoStart > wait (seconds)Give Docker containers a wait time in the Unraid autostart columnDelays the next container's start so a database or VPN is ready before the apps that need it.27 Aug 2026 - Tip
healthcheck:Nginx Proxy Manager has a health check, you just have to switch it onAdds a Docker health check so Nginx Proxy Manager shows healthy or unhealthy in docker ps.23 Aug 2026 - Tip
docker run --rm -v myvolume:/data -v $(pwd):/backup alpine \Migrating a stack in Portainer does not move its volumesCopies a stack to another Portainer environment, though its volume data stays where it was.23 Aug 2026 - Tip
environment:Keep the database password out of your NPM compose file with __FILEMakes Nginx Proxy Manager read its database password from a file instead of the compose file.16 Aug 2026 - TipDetach from Git in Portainer only downloads the main compose fileTurns a Git-based Portainer stack into a normal editable stack, with a few files left behind.15 Aug 2026
- TipExclusive shares skip the user share layer and can be much fasterLets a share that lives on one pool bypass the user share filesystem for faster file access.13 Aug 2026
- TipPreserve user defined networks keeps your own Docker networks when Docker restartsStops Unraid from removing the Docker networks you created yourself when the Docker service restarts.12 Aug 2026
- Tip
findmnt -T /var/lib/dockerfindmnt -T tells you which mount a path lives onPrints which mounted filesystem a given path lives on.6 Aug 2026 - Tip
docker run --rm \Back up a Docker volume with a throwaway tar containerArchives the contents of a container's volume into a tar file on the host.6 Aug 2026 - Tip
environment:IP_RANGES_FETCH_ENABLED skips a startup download in Nginx Proxy ManagerStops Nginx Proxy Manager downloading CDN IP ranges at startup, which helps when internet access is limited.5 Aug 2026 - Tip
docker cp mycontainer:/etc/app/config.yml ./config.ymldocker cp works on stopped containers tooCopies files out of or into a container, even a stopped one, without starting it.24 Jul 2026 - Tip
environment:X_FRAME_OPTIONS decides whether your apps can be shown in an iframeAllows Nginx Proxy Manager hosts to be shown in iframes from the same origin.24 Jul 2026 - Tip
- stack.envIn a Portainer stack, env_file stack.env is not the same as a .env fileExplains how environment variables reach containers in a Portainer stack through stack.env.24 Jul 2026 - Tip
docker compose exec -T db pg_dump -U postgres mydb > backup.sqlUse docker compose exec -T when a script runs itRuns a command in a service without a terminal, so output can be piped or redirected cleanly.17 Jul 2026 - Tip
--memory=2g --memory-swap=2gAdd --memory=2g to a container's Extra Parameters to cap its RAMCaps how much memory one Docker container may use, so it cannot starve the rest of the server.11 Jul 2026 - Tip
docker inspect --format '{{.State.Status}}' mycontainerdocker inspect --format pulls one value out of the wall of JSONPrints a single field of a container, such as its mounts, instead of the whole inspect output.9 Jul 2026 - Tip
docker run -d ... portainer/portainer-ce:lts -l owner=acmeHide the containers you never want to see in Portainer with --hide-labelHides containers that carry a chosen label from the Portainer container list.7 Jul 2026 - Tip
docker image prune -a --filter "until=240h"docker image prune -a --filter until= only removes old imagesRemoves only unused images older than a set age instead of every unused image.3 Jul 2026 - Tip
docker stop portainerReset a forgotten Portainer admin password with the helper-reset-password imageResets the Portainer admin password by running a helper container against the data volume.2 Jul 2026 - Tip
docker run --init myimageAdd init: true when a container leaves zombie processes behindRuns a small init process first so signals are forwarded and finished child processes are cleaned up.24 Jun 2026 - Tip
environment:DISABLE_IPV6 fixes the "Address family not supported" error in Nginx Proxy ManagerStops Nginx Proxy Manager from using IPv6 on a host that has IPv6 turned off.23 Jun 2026 - Tip
docker run -d -p 9443:9443 --name portainer \Start Portainer with --admin-password-file instead of typing the password in timeSets the first admin password from a file when Portainer starts, so you skip the setup page.22 Jun 2026 - Tip
services:Make depends_on wait for a healthy database, not just a started oneMakes a container wait until its dependency passes its healthcheck before it starts.15 Jun 2026 - Tip
docker network create scoobydooPut Nginx Proxy Manager on a Docker network and stop publishing portsLets Nginx Proxy Manager reach other containers by name, so they need no published host ports.14 Jun 2026 - Tip
docker volume rm portainer_dataYou can only restore a Portainer backup on a fresh install, during setupExplains that a Portainer backup is restored on the first-run setup page of a fresh, empty instance.13 Jun 2026 - Tip
services:Put optional services behind a Compose profileKeeps optional services such as admin tools switched off until you ask for them by name.8 Jun 2026 - Tip
environment:Set INITIAL_ADMIN_EMAIL and skip the Nginx Proxy Manager setup screenCreates the first Nginx Proxy Manager admin from your compose file, so there is no setup screen.7 Jun 2026 - TipPortainer backs up its own settings with one click, so take one before every updateDownloads a password-protectable archive of Portainer's own configuration so you can rebuild it later.7 Jun 2026
- TipPinning a container to cores is not the same as isolating themExplains the difference between pinning and isolating CPU cores on Unraid's CPU Pinning page.2 Jun 2026
- Tip
- action: syncDocker compose watch syncs your code into a running containerCopies your changed source files into a running container, or rebuilds it, without a manual rebuild.1 Jun 2026
Other tips70
- Tip
glances -wglances -w turns Glances into a web dashboardStarts Glances as a web server so you can check a machine from any browser.25 Nov 2026 - Tip
!wp parisSearXNG bangs send one search to one engineUses a ! prefix in SearXNG to search one engine or category directly.25 Nov 2026 - Tip
tmux display-popup -E -w 80% -h 80% htoptmux display-popup opens a floating window over your panesOpens a temporary floating window in tmux for a quick command, without touching your layout.25 Nov 2026 - Tip
Get-FileHash .\ubuntu.isoGet-FileHash checks a download on Windows without extra toolsCalculates the SHA256 checksum of a file in PowerShell so you can compare it.25 Nov 2026 - Tip
winget export -o apps.jsonwinget export saves your app list for the next PCWrites your installed Windows apps to a JSON file and reinstalls them elsewhere.25 Nov 2026 - Tip
lspci -klspci -k shows which kernel driver handles each PCI deviceLists PCI devices together with the kernel driver in use and the modules that could drive them.25 Nov 2026 - Tip
openssl rand -base64 32openssl rand -base64 32 makes a strong random secret in one linePrints random bytes from a secure generator, encoded as base64 or hex, for use as a password or key.25 Nov 2026 - Tip
realpath ../../data/./file.txtrealpath resolves a path and can print it relative to another folderTurns a messy path with dots and symlinks into a clean absolute path, or one relative to a folder.25 Nov 2026 - Tip
fallocate -l 1G test.imgfallocate -l 1G file reserves a file of that size instantlyPreallocates disk space for a file of the size you ask, without writing all the data like dd would.25 Nov 2026 - Tip
getent passwd jordigetent passwd looks up users the way the system doesQueries the user database through the Name Service Switch, so it also finds users from LDAP or other sources.25 Nov 2026 - Tip
lsusb -tlsusb lists USB devices, and lsusb -t shows them as a treeLists the USB devices the kernel sees, with the -t option showing how hubs and devices connect.25 Nov 2026 - Tip
uptime -puptime -p prints how long a machine has been running in wordsShows the system uptime as readable text, such as weeks, days and hours, instead of the classic load line.25 Nov 2026 - Tip
cmp -l file1.bin file2.bin | headcmp compares two files byte by byte, and cmp -l lists every differenceCompares two files byte by byte and reports where they first differ, or all differing bytes with -l.25 Nov 2026 - Tip
echo "a very long sentence that keeps going and going" | fold -s -w 20Fold -s -w 60 wraps long lines at spacesWraps long lines to a chosen width and breaks them at spaces instead of in the middle of words.25 Nov 2026 - Tip
nl -ba -w 4 -s ': ' /etc/hostsnl -ba puts line numbers in front of every line, blank ones tooAdds line numbers to the output of a file or command, numbering empty lines as well.25 Nov 2026 - Tip
echo 1610612736 | numfmt --to=iecNumfmt --to=iec turns byte counts into readable sizes like 1.5GConverts plain numbers into human-readable sizes, and works on any number that you pipe into it.25 Nov 2026 - Tip
printf '%q\n' "$name"printf %q quotes a string so the shell can read it back safelyPrints a value with escaping, so spaces and special characters survive when it is pasted back into a shell command.25 Nov 2026 - Tip
sfc /scannowsfc /scannow repairs corrupted Windows system filesScans protected system files and replaces damaged ones with a cached good copy, from an admin prompt.25 Nov 2026 - Tip
systeminfosysteminfo prints the Windows version, RAM, hotfixes and moreShows detailed configuration of the computer and its operating system in a Command Prompt window.25 Nov 2026 - Tip
:g/^#/dVim's :g/pattern/d deletes all matching lines, :v the othersDeletes all lines containing a pattern, or all lines not containing it, in one command.25 Nov 2026 - Tip
:r !dateVim's :r !cmd inserts the output of a shell command into the bufferRuns a shell command and inserts what it prints below the current line.25 Nov 2026 - Tip
:sortVim's :sort orders lines, and can sort by number or drop duplicatesSorts the lines of a file or a selection, with options for numbers, case and duplicates.25 Nov 2026 - Tip
:waVim's :wa saves every changed buffer and :wqa saves them and quitsWrites all modified buffers to disk in one command, and optionally exits Vim.25 Nov 2026 - Tip
mysql --safe-updates -u root -pmysql --safe-updates stops UPDATE and DELETE without a key or LIMITStarts the mysql client in a mode that refuses UPDATE and DELETE statements that could hit the whole table.25 Nov 2026 - Tip
postgres=# \conninfo\conninfo in psql shows which database, user and host you are onPrints the details of the current psql connection, so you know where a query is about to run.25 Nov 2026 - Tip
sqlite3 -readonly db.sqlitesqlite3 -readonly opens a database without any chance of changing itOpens an SQLite database file in read-only mode, so a stray UPDATE or DELETE just returns an error.25 Nov 2026 - Tip
cwebp -q 80 photo.jpg -o photo.webpcwebp -q 80 converts a PNG or JPEG to a smaller WebP fileConverts a PNG, JPEG or TIFF image to WebP, with a quality setting from 0 to 100.25 Nov 2026 - Tip
magick mogrify -path small -resize "1600x1600>" *.jpgmagick mogrify -resize batch-resizes images, but overwrites themResizes many images in one command, and with -path the originals stay untouched in their folder.25 Nov 2026 - Tip
inotifywait -m -e close_write /srv/inboxinotifywait waits until a file changes, then lets your script go onBlocks until something happens to a file or folder, so a script can react without polling.24 Nov 2026 - Tip
split -b 1G -d --additional-suffix=.part big.iso big.iso.split -b cuts a big file into pieces you can send or storeSplits a large file into fixed-size parts with numbered names, which cat can join back together.24 Nov 2026 - Tip
ip route get 1.1.1.1ip route get shows which route and source address the kernel would useAsks the kernel which gateway, interface and source address it would pick for a destination, without sending anything.24 Nov 2026 - Tip
tracepath -n example.comtracepath traces the route and path MTU without needing rootTraces the route to a host like traceroute and reports the path MTU, as a normal user.24 Nov 2026 - Tip
gpg --import project-signing-key.ascgpg --verify checks a signature file against the file it signsVerifies that a downloaded file matches its detached signature and was signed by the key you expect.24 Nov 2026 - Tip
date -d '2 days ago' +%Fdate -d understands phrases like 'next friday' and '2 days ago'Turns plain-English dates such as yesterday or next friday into a real date on the command line.24 Nov 2026 - Tip
pkill -x nodepkill -x only kills processes whose name matches exactlyStops processes by exact name, so killing 'vim' does not also take down 'gvim' or 'vimdiff'.24 Nov 2026 - Tip
tac /var/log/app.log | head -n 20tac prints a file backwards, last line firstPrints the lines of a file in reverse order, which puts the newest log entry on top.24 Nov 2026 - Tip
Get-NetIPAddress -AddressFamily IPv4 | Format-Table InterfaceAlias, IPAddress, PrefixLengthGet-NetIPAddress lists the IP addresses of your Windows PC in a clean tableLists the IPv4 or IPv6 addresses configured on each network interface of a Windows PC.24 Nov 2026 - TipWin+. opens the emoji and symbol panel in any text fieldOpens a panel with emoji and symbols that you can search while you are typing in any app.24 Nov 2026
- Tip
wsl --list --verbosewsl --list --verbose shows which Linux distros run and on which WSL versionLists the installed WSL distributions with their state and whether they run on WSL 1 or WSL 2.24 Nov 2026 - TipWin+Ctrl+Shift+B restarts the graphics driver when the screen freezesResets the Windows graphics driver with one key combination, which can wake a frozen or black screen.24 Nov 2026
- Tip
:earlier 10m:earlier 10m takes a Vim file back to how it looked ten minutes agoJumps the text back or forward in time instead of stepping through undo one change at a time.24 Nov 2026 - Tip
tree -L 2tree -L 2 shows a folder structure two levels deepDraws the files and folders of a directory as a tree, cut off at the depth you choose.23 Nov 2026 - TipWin+V opens your clipboard history in Windows 11Shows the last things you copied, so you can paste an older one instead of copying it again.23 Nov 2026
- Tip
ps aux --sort=-%mem | head -n 6ps aux --sort=-%mem | head shows which programs eat your memoryLists the processes using the most memory first, so you can see what is filling your RAM.23 Nov 2026 - Tip
free -hfree -h has an available column, and that is the one to readShows how much memory programs can still use, including cache that Linux gives back when asked.23 Nov 2026 - Tip
ip -br addressip -br address shows every interface and its IP on one linePrints one line per network interface with its state and IP addresses.21 Nov 2026 - Tip
.mode column.headers on and .mode column make sqlite3 output readableShows sqlite3 query results as aligned columns with their names above them.19 Nov 2026 - Tip
vcgencmd get_throttledvcgencmd get_throttled tells you if a Raspberry Pi had power troubleShows whether a Raspberry Pi has had under-voltage or throttling since it booted.19 Nov 2026 - Tip
echo '{"name":"nextdash"}' | jq -r '.name'Jq -r prints strings without the quotesPrints JSON strings as plain text, so jq output works in scripts and loops.19 Nov 2026 - Tip
awk '!seen[$0]++' list.txt > unique.txtawk '!seen[$0]++' removes duplicate lines without sortingRemoves duplicate lines from a file and keeps the original order of the rest.19 Nov 2026 - Tip
sed -i.bak 's/old-host/new-host/g' config.txtsed -i.bak keeps a copy of the file you just changedEdits a file in place with sed and saves the original as a backup copy.19 Nov 2026 - TipCtrl+Shift+P in Chrome DevTools opens a command menuOpens a searchable command menu in Chrome DevTools, for example for full-page screenshots.19 Nov 2026
- Tip
\x auto\x auto lets psql show wide rows one field per lineMakes psql print wide query results one field per line, only when they do not fit.19 Nov 2026 - Tip
exiftool -all= photo.jpgexiftool -all= strips the metadata from a photo before you share itRemoves GPS position and all other metadata from a photo before you share it.19 Nov 2026 - Tip
mount | column -tColumn -t lines up messy output in tidy columnsAligns the output of any command, or a CSV file, into readable columns.19 Nov 2026 - Tip
rg -u 'API_KEY' # also searches ignored filesrg skips ignored and hidden files, and -uu searches them tooMakes ripgrep also search ignored and hidden files, such as .env.19 Nov 2026 - Tip
less +F /var/log/syslogless +F follows a file like tail -f and lets you scroll backFollows a growing log file, and lets you stop and scroll back through it.19 Nov 2026 - Tip
winget upgradewinget upgrade lists waiting updates before it installs anythingLists the Windows app updates that are waiting, and updates one app or all of them.19 Nov 2026 - Tip
pro statuspro status shows what Ubuntu Pro covers on your machineLists which Ubuntu Pro security services are active on this machine and whether it is attached.24 Oct 2026 - Tip
ubuntu-drivers devicesubuntu-drivers devices tells you which graphics driver to installShows which driver Ubuntu recommends for your graphics card, ready to install with one command.8 Oct 2026 - Tip
do-release-upgrade -cdo-release-upgrade -c checks for a new Ubuntu release without starting oneChecks whether a newer Ubuntu release is available and reports it without starting an upgrade.2 Oct 2026 - Tip
Unattended-Upgrade::Automatic-Reboot "true";Let unattended-upgrades reboot at 04:00 instead of neverMakes automatic updates restart the machine at a fixed night time when a reboot is needed.24 Sep 2026 - Tip
ip -br aip -br a is the readable version of ip addrShows each network interface with its state and addresses on a single line.23 Sep 2026 - Tip
umask 027umask decides the permissions of every new fileSets the default permissions for new files and directories so others get no access.6 Sep 2026 - Tip
find . -name '*.png' -print0 | xargs -0 -n 1 -P 4 optipngXargs -P runs commands in parallel, no GNU parallel neededRuns a command on several inputs at the same time instead of one after another.27 Aug 2026 - Tip
chmod -R u=rwX,go=rX /srv/siteUse a capital X in chmod so only directories get executeSets sensible permissions in one pass: execute only on directories and already-executable files.24 Aug 2026 - Tip
find . -name '*.tmp' -deletePut -delete last in find, or it deletes more than you thinkDeletes the files that match your tests, as long as -delete comes last in the command.19 Aug 2026 - Tip
find . -name '*.tmp' -print0 | xargs -0 rm --find -print0 | xargs -0 survives file names with spacesPasses file names between find and xargs safely, even with spaces or quotes in them.8 Aug 2026 - Tip
apt changelog openssh-serverapt changelog shows why a package wants to updateShows the maintainers' notes for a package so you know what an update actually changes.4 Jul 2026 - Tip
apt list --upgradableapt list --upgradable shows what is waiting before you upgradeLists the packages that have a newer version available without installing anything.2 Jun 2026
Network63
- Tip
curl \Give ntfy messages a title, priority and tags from curlSends a push notification with a title, priority and emoji from one curl command.25 Nov 2026 - Tip
ping -M do -s 1472 -c 3 example.comping -M do -s 1472 finds the path MTU without fragmentationSends pings with the don't-fragment flag set, so you can find the largest packet that passes.25 Nov 2026 - Tip
netstat -ano | findstr :8080netstat -ano shows which process ID owns each open portLists connections and listening ports in numeric form with the owning process ID, then tasklist names it.25 Nov 2026 - TipPing iPhone from your Apple Watch to find it in the houseMakes the paired iPhone play a sound, or flash its light too, from the watch's Control Center.25 Nov 2026
- Tip
mysqladmin -u root -p pingmysqladmin ping and status give a quick MySQL health checkChecks whether the MySQL server is up and prints a one-line status with uptime, threads and queries.25 Nov 2026 - Tip
tailscale bugreporttailscale bugreport gives support an identifier for your logsMarks your Tailscale client logs with an identifier that you can hand to support.25 Nov 2026 - Tip
tailscale metrics printtailscale metrics print shows the client's own metricsPrints or writes the Tailscale client's usage metrics so a monitoring system such as Prometheus can read them.25 Nov 2026 - Tip
tailscale wait && /path/to/servicetailscale wait blocks a script until Tailscale is readyPauses a script or service start until the Tailscale interface and its addresses are available.25 Nov 2026 - Tip
diff -u nginx.conf.bak nginx.confdiff -u gives a compact change list that patch and git understandCompares two files and prints only the changes, with a few lines of context, in the format patch tools expect.24 Nov 2026 - Tip
tailscale set --shields-uptailscale set --shields-up blocks incoming connections on a deviceMakes a device refuse incoming Tailscale connections while it can still reach others.24 Nov 2026 - Tip
Test-NetConnection -ComputerName example.com -Port 443Test-NetConnection checks whether a TCP port answers, without telnetTests from PowerShell whether a remote TCP port accepts connections, and shows the ping result as well.24 Nov 2026 - Tip
tailscale ip -4tailscale ip -4 prints the Tailscale address of this device, or of any other onePrints the Tailscale IPv4 address of this device, or of another device when you give its name.23 Nov 2026 - Tip
curl -I --resolve example.com:443:203.0.113.10 https://example.com/curl --resolve tests a new server before the DNS points to itMakes curl send a request for a hostname to an IP address you choose, ignoring DNS.23 Nov 2026 - Tip
nmap -sn 192.168.1.0/24nmap -sn lists every device on your network without scanning portsLists the devices that are online on a network without scanning their ports.19 Nov 2026 - Tip
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -datesOpenssl s_client shows when a site's certificate expiresPrints the start and end date of a website's TLS certificate from the terminal.19 Nov 2026 - Tip
nc -zv example.com 443nc -zv tells you whether a TCP port is openTests whether a TCP port accepts connections, without sending any data.19 Nov 2026 - Tip
wp search-replace 'http://old.example' 'https://new.example' --dry-runwp search-replace --dry-run shows what would change before it touches your databaseCounts the replacements WP-CLI would make in your WordPress database without changing anything.19 Nov 2026 - Tip
tailscale ping my-nastailscale ping tells you if a device is reached directly or through a relayShows whether your connection to another Tailscale device is direct or goes through a relay, and how fast it is.18 Nov 2026 - Tip
curl -I https://example.comcurl -I shows the HTTP headers of a page without downloading itFetches only the response headers of a URL, to check redirects, status codes and caching.18 Nov 2026 - Tipss -tulpn shows which program is listening on which portShows which program is using which network port, useful when a port is already taken.16 Nov 2026
- Tip
tailscale file cp ./my-file.txt my-phone:Send a file to your phone with tailscale file cp, no cloud in betweenSends a file straight from your computer to your phone over Tailscale, no cloud in between.9 Nov 2026 - Tip
wp search-replace 'http://old.example' 'https://www.example.nl' --dry-runwp search-replace --dry-run shows what a WordPress domain change would touch9 Nov 2026 - Tip
dig +short example.com @192.168.1.3dig @server name tells you which DNS server is lying to you8 Nov 2026 - Tip
tailscale ping my-serverRun tailscale ping to see if your connection is direct or relayedTells you if a connection on your Tailscale network is direct or goes through a relay.8 Nov 2026 - Tip
pihole disable 5mpihole disable 5m pauses blocking and turns itself back onPauses Pi-hole blocking for five minutes, then turns it back on by itself.20 Oct 2026 - Tip
tail -F /var/log/nginx/access.logtail -F keeps following a log after logrotate renames itFollows a log file by name so it keeps working after the file is rotated.8 Oct 2026 - Tip
pihole -q example.compihole -q tells you which list blocks a domainShows which Pi-hole list blocks a domain, so you can allow it.6 Oct 2026 - Tip
set_real_ip_from 192.168.1.0/24;Tell Nginx which proxy to trust, so your apps see the real client IPMakes nginx read the real visitor address from a header when another proxy sits in front.1 Oct 2026 - Tip
dig use-application-dns.netuse-application-dns.net tells Firefox to leave DoH offChecks whether your DNS filter tells Firefox not to switch on its own encrypted DNS.28 Sep 2026 - Tip
tailscale exit-node list --filter=Netherlandstailscale exit-node list --filter finds exit nodes by countryLists the exit nodes available to you by country and suggests a recommended one.25 Sep 2026 - Tip
image: 'jc21/nginx-proxy-manager:2.17.0'Pin the Nginx Proxy Manager image version, upgrade on purposeShows how to upgrade Nginx Proxy Manager on purpose, with a pinned image version.22 Sep 2026 - Tip
ipconfig /displaydnsipconfig /displaydns shows what Windows has cachedLists the names Windows has cached, including entries from the hosts file.22 Sep 2026 - Tip
curl -sS -o /dev/null -w '%{http_code} %{time_total}s\n' https://example.comcurl -w prints the status code and timing and nothing elsePrints only the HTTP status code and response time of a URL.17 Sep 2026 - Tip
proxy_read_timeout 1h;Nginx closes a quiet WebSocket after 60 secondsKeeps quiet WebSocket connections open longer than the 60 second default.17 Sep 2026 - Tip
claude mcp add --transport http shared-server --scope project https://example.com/mcp.mcp.json can read ${VAR} so the team file holds no secretsKeeps secrets out of a shared .mcp.json by expanding environment variables.14 Sep 2026 - Tip
"acls": [An exit node needs a grant to autogroup:internet, not to itselfLets chosen users route internet traffic through an exit node when your access rules are customised.13 Sep 2026 - Tip
resolvectl dns wg0 10.0.0.1A route-only domain gives you split DNS in one commandSends DNS queries for one domain to a VPN's DNS server and leaves the rest alone.4 Sep 2026 - TipUse the Edge Agent when you cannot open a port to the remote machineLets Portainer manage a remote Docker host that cannot accept incoming connections.4 Sep 2026
- Tip
curl "https://example.com/wp-json/wp/v2/posts?_fields=id,title,link"Add _fields to a WordPress REST API request to get a smaller answerMakes the WordPress REST API return only the fields you list, so responses are smaller and faster.1 Sep 2026 - Tip
"autoApprovers": {AutoApprovers saves you the clicks in the admin consoleApproves advertised subnet routes and exit nodes automatically for the users or tags you name.27 Aug 2026 - Tip
"tests": [Put a tests block in your Tailscale policy fileAdds checks to the policy file that reject any change breaking an access rule you wrote down.21 Aug 2026 - Tip
netplan statusnetplan status shows what the network actually looks like right nowPrints the live state of every network interface, with addresses, routes and DNS.19 Aug 2026 - Tip
delv example.orgdelv checks whether DNSSEC validation worksLooks up a name and checks whether its DNSSEC signatures validate.24 Jul 2026 - Tip
tailscale dns statustailscale dns status shows what MagicDNS is really doingPrints the local DNS forwarder and MagicDNS configuration so you can see why a device name fails.20 Jul 2026 - Tip
limit_req_zone $binary_remote_addr zone=npmlimit:10m rate=10r/s;Rate limit your proxy hosts with http_top.conf and server_proxy.confLimits how many requests per second one client can send to your Nginx Proxy Manager hosts.16 Jul 2026 - Tip
dig +tls @dns.quad9.net example.comdig can speak DoH and DoT itselfTests whether a DNS server answers over encrypted DoT or DoH.16 Jul 2026 - Tip
tailscale whois 100.101.102.103tailscale whois shows who owns a Tailscale IPLooks up the machine and user behind a Tailscale IP address, for example from a log line.13 Jul 2026 - Tip
client_max_body_size 10g;Raise the 413 upload limit for every proxy host with server_proxy.confRaises the upload size limit on all Nginx Proxy Manager proxy hosts, so big uploads stop failing with 413.8 Jul 2026 - Tip
dig +noall +answer +ttlunits example.comdig +ttlunits makes TTLs readablePrints DNS record TTLs as minutes, hours or days instead of raw seconds.7 Jul 2026 - Tip
tailscale netchecktailscale netcheck tells you why your connection is not directReports your network's UDP, NAT and relay conditions to explain why Tailscale connections go through a relay.5 Jul 2026 - Tip
ports:Move the Nginx Proxy Manager admin page off port 81Changes the port of the Nginx Proxy Manager admin page from 81 to one you choose.3 Jul 2026 - Tip
dig +noall +answer example.comRun dig twice and watch the TTL count downShows only the answer section of a DNS lookup, so you can read the TTL.2 Jul 2026 - Tip
tailscale status --activetailscale status --active hides every device that is sitting idleShows only the Tailscale peers you are currently exchanging traffic with, including direct or relayed.27 Jun 2026 - Tip
dig -x 9.9.9.9 +shortdig -x turns an IP address back into a nameLooks up the hostname that belongs to an IP address (reverse DNS).22 Jun 2026 - Tip
Prowlarr Server: http://prowlarr:9696/prowlarrPut the URL base in Prowlarr's server address when you use a reverse proxyReminds you to include the URL base in the Prowlarr app addresses so synced indexers keep working.20 Jun 2026 - Tip
tailscale serve resetClear every Serve and Funnel setting with tailscale serve resetLists what a machine shares over Tailscale and wipes all Serve settings in one command.20 Jun 2026 - Tip
apt policy nginxapt policy tells you which version you get and where it comes fromShows the installed version, the candidate version and which repository each comes from.17 Jun 2026 - Tip
dig +trace example.nldig +trace walks the DNS tree from the rootFollows a DNS lookup from the root servers down to the authoritative answer, step by step.13 Jun 2026 - Tip
Prowlarr > Settings > Indexers > Add Proxy > FlareSolverrTag your FlareSolverr proxy in Prowlarr, or it does nothingShows that a FlareSolverr proxy in Prowlarr needs a tag that matches the indexer before it is used.12 Jun 2026 - Tip
tailscale funnel --bg 3000Funnel only listens on ports 443, 8443 and 10000Explains which three ports a public Tailscale Funnel can use and what you need to enable it.11 Jun 2026 - Tip
cd /var/log/nginxcd – takes you back to the last directorySwitches back to the directory you were in before the last cd.8 Jun 2026 - Tip
dig +short example.comdig +short gives you just the answerPrints only the answer data from a DNS lookup, without headers or statistics.7 Jun 2026 - Tip
tailscale serve --bg localhost:3000Add --bg to tailscale serve so it survives a rebootShares a local web app with your tailnet over HTTPS and keeps it running after a reboot.5 Jun 2026
Storage48
- Tip
pv backup.tar.gz | tar xzpv puts a progress bar on anything you pipeShows progress, speed and time left for data going through a pipe.25 Nov 2026 - Tip
robocopy C:\Data D:\Backup /MIR /LRun robocopy /MIR with /L first, because it deletesShows what a robocopy mirror would copy and delete before it touches any file.25 Nov 2026 - Tip
ditto ~/Projects/site /Volumes/Backup/siteditto copies folders on a Mac and keeps their metadataCopies files and folders on macOS and keeps resource forks, extended attributes and permissions.24 Nov 2026 - Tip
df -hTdf -hT shows the filesystem type next to every mountAdds a column with the filesystem type, so you see what is on each mounted disk.23 Nov 2026 - Tip
rsync -ah --info=progress2 /source/ /destination/rsync --info=progress2 shows one progress line for the whole copyShows a single progress line for the whole transfer instead of one per file.21 Nov 2026 - Tip
tar -tf backup.tar.gz | headtar -tf lists an archive without unpacking itShows what is inside a tar archive without extracting it, and pulls out a single file.19 Nov 2026 - Tip
ncdu -x /ncdu shows what fills your disk and lets you delete from the same screenShows disk usage as a navigable list, biggest first, with delete built in.19 Nov 2026 - Tip
rclone sync /data remote:backup --dry-run -vrclone sync --dry-run shows what will be deleted before it happensShows which files rclone sync would copy or delete, before anything changes.19 Nov 2026 - TipTurbo write speeds up array writes, and the price is every disk spinningMakes array writes faster by reading all the other disks instead of the old data and parity.18 Nov 2026
- Tip
du -sh * 2>/dev/null | sort -hdu -sh * | sort -h shows what is eating your disk, biggest lastLists every folder in the current directory with its size, sorted so the biggest ones are at the bottom.18 Nov 2026 - Tip
zpool scrub poolnameScrub a btrfs or ZFS pool now and then to catch bit rotReads all data on a pool, checks the checksums and repairs bad blocks from a redundant copy.8 Nov 2026 - Tip
watch -n 2 'df -h /mnt/user'watch -n 2 runs a command every two seconds and shows the latest outputRepeats any command at a set interval, so you can watch a number change without retyping it.1 Nov 2026 - TipHigh-water is the default allocation method, and it fills your disks in passesDescribes how a share chooses which array disk gets the next file, and when it moves on.1 Nov 2026
- Tip
mv /mnt/user/downloads/file.mkv /mnt/user/media/mv inside /mnt/user can leave files on the cache, use the MoverExplains why files moved between user shares stay on the cache and how to move them properly.27 Oct 2026 - Tip
timeout -k 5 30 ./backup.shtimeout stops a command that hangsStops a command after a set time, and force-kills it if it will not quit.23 Oct 2026 - Tip
/mnt/user/media and /mnt/disk1/media can be the same filesNever copy between a user share and a disk share with the same folder nameWarns against copying between a user share and a disk share, which can destroy the files.13 Oct 2026 - Tip
Settings > User Preferences > Notification Settings > Notification AgentsSend Unraid Alerts to a push agent and keep Notices in the browserRoutes serious Unraid alerts to your phone through a push service instead of only the WebGUI.3 Oct 2026 - Tip
watch -d -n 5 'df -h /mnt/backup'watch -d highlights what changed between refreshesReruns a command every few seconds and highlights the parts that changed.1 Oct 2026 - Tip
Dashboard > orange icon next to the disk > AcknowledgeAcknowledge the orange SMART icon so it only warns you about new changesSilences a known SMART warning on a disk so you only get alerted again when it changes.24 Sep 2026 - Tip
smartctl -a /dev/sdX > /boot/smart_report.txtsmartctl can save a SMART report to the boot drive for the forumSaves a full SMART report of one disk to a file you can attach to a support post.19 Sep 2026 - Tip
getent hosts nas.localgetent hosts shows what your programs really resolveShows the address a normal program gets, including hosts file entries that dig ignores.16 Sep 2026 - Tip
rsync -ani --delete ~/Documents/ /mnt/backup/Documents/rsync -ani shows exactly what would change before it changes anythingPrints what rsync would copy or delete, without touching any file.11 Sep 2026 - TipPrimary storage, Secondary storage and Mover action decide where a share livesExplains the three share settings that decide where new files land and which way the Mover moves them.7 Sep 2026
- Tip
rsync -a photos/ /backup/ # puts the contents straight in /backup/The trailing slash in rsync decides where your files landWith a slash on the source rsync copies the contents; without it, the folder itself.6 Sep 2026 - TipA disk that is being read ignores its spin down timerExplains why a disk stays awake in spite of the spin down delay and where you set the timers.30 Aug 2026
- Tip
cp /boot/config/go /boot/config/go.bak/boot/config/go runs your own commands at every bootExplains the script on the flash drive that runs your own commands each time Unraid starts.21 Aug 2026 - Tip
Main > (pool name) > Individual Pool Settings > Minimum free spaceSet Minimum free space on a cache pool to twice your biggest fileMakes Unraid send new files to the array instead of filling a cache pool to the brim.20 Aug 2026 - TipMain, Array Operations, History lists every parity check and its resultLists earlier parity checks with their date, duration, speed and errors.19 Aug 2026
- Tip
tail -f /var/log/syslogWhen the array will not stop, find out what still has a disk openLists the commands that show which process keeps a disk busy so the array cannot stop.18 Aug 2026 - Tip
xfs_repair -nv /dev/md1p1Check an array disk's filesystem in Maintenance mode, and use the md deviceRuns a filesystem check on an array disk without breaking parity, read-only unless you ask for a repair.18 Aug 2026 - TipIncluded disk(s) keeps a share on the disks you chooseLimits which array disks a share may use for new files, so it stays off the others.12 Aug 2026
- Tip
Tools > Downgrade OSTools, Downgrade OS is the way back after a bad Unraid updateRolls Unraid back to the previous version from the WebGUI without downloading a zip file.9 Aug 2026 - TipInstall Fix Common Problems and let it scan your serverScans an Unraid server for common configuration mistakes and suggests a fix for each one.2 Aug 2026
- Tip
Main > Boot Device > Boot Device BackupBack up the boot device before every update, and keep the zip off the serverDownloads a ZIP of the Unraid boot drive so a bad update never costs you your configuration.27 Jul 2026 - Tip
lsblk -flsblk -f shows filesystems, labels and UUIDs in one viewShows every disk and partition with its filesystem type, label, UUID and mount point.25 Jul 2026 - Tip/mnt/user0 is the array-only view of your shares, but it is deprecatedExplains what /mnt/user0 shows and why you should not build new scripts on it.21 Jul 2026
- Tip
Remote syslog server: the IP address of this serverPoint the syslog server at the server itself to keep logs on a shareKeeps a lasting copy of the Unraid system log on a share instead of on the boot drive.19 Jul 2026 - Tip
--snapshot-interval 1mChange Portainer's snapshot interval when the home page feels out of dateChanges how often Portainer refreshes the summary data on its home page.16 Jul 2026 - Tip
Settings > Syslog Server > Mirror syslog to boot drive: YesMirror the syslog to the boot drive, but only for a few daysKeeps the system log across a crash by writing it to the boot drive while it happens.13 Jul 2026 - TipBoot Unraid in safe mode to see whether a plugin causes the troubleStarts Unraid with all plugins disabled, so you can tell whether a plugin causes the problem.9 Jul 2026
- Tip
ls -l /mnt/disk*/Media/film.mkv 2>/dev/nullFind the disk that holds a file with ls on /mnt/disk*Shows on which array disk a file from a user share physically sits.2 Jul 2026 - TipLook at Update Assistant before you update UnraidPoints out the pre-update check in the Tools menu and why to confirm its version number.28 Jun 2026
- Tip
/boot/config/super.old -> /boot/config/super.datRename super.old to super.dat to undo a New ConfigPuts back your previous array configuration after you clicked New Config by mistake.27 Jun 2026 - Tip
Settings > Scheduler > Parity CheckAn unclean shutdown starts a non-correcting parity check by defaultExplains that Unraid only reports parity errors after a power cut and does not fix them by itself.19 Jun 2026 - TipSet the disk utilization thresholds, and a value of 0 switches one offControls when Unraid warns that a disk is getting full, for all disks or for one disk.13 Jun 2026
- Tip
Settings > Scheduler > Parity CheckSchedule a monthly correcting parity check under Settings, SchedulerSets Unraid to check your parity automatically every month or quarter instead of waiting for trouble.10 Jun 2026 - Tip
wp db export - | gzip > backup-$(date +%F).sql.gzwp db export – pipes a WordPress database dump straight into gzipWrites a compressed copy of your WordPress database without leaving an uncompressed dump on disk.6 Jun 2026 - Tip
Main > Array Operation > untick "Write corrections to parity" > CheckUntick Write corrections to parity for a read-only parity checkRuns a parity check that only reports mismatches and never rewrites your parity disk.4 Jun 2026
Web41
- Tip
...the page behind the drawer...The inert attribute switches off a whole part of a pageMakes part of a page unclickable, unfocusable and hidden from screen readers with one attribute.25 Nov 2026 - Tip
wp maintenance-mode activatewp maintenance-mode puts your site on hold during a big changeTurns WordPress maintenance mode on and off from the command line.25 Nov 2026 - Tip
inputmode="numeric" autocomplete="one-time-code">Autocomplete="one-time-code" lets browsers fill in SMS verification codesMarks an input as a one-time code field so browsers can offer the code from a text message.25 Nov 2026 - TipThe HTML datalist element adds autocomplete suggestions to an inputGives a text input a list of suggested values without JavaScript, while still allowing free typing.25 Nov 2026
- TipThe HTML inputmode attribute picks the right keyboard on phonesHints which virtual keyboard a phone should show for a field, without changing validation.25 Nov 2026
- TipThe HTML picture element serves other formats and crops per screenOffers the browser alternative image files by format or by media condition, with an img fallback.25 Nov 2026
- Tip
powercfg /batteryreportpowercfg /batteryreport creates an HTML report about your laptop batteryGenerates an HTML report with battery usage over the lifetime of the system.25 Nov 2026 - Tip
wp language core install nl_NLwp language core installs and updates WordPress translationsLists, installs and updates the core language packs of a WordPress site from the command line.25 Nov 2026 - Tip
wp post list --post_status=draftwp post list --post_status=draft shows your unpublished postsLists draft posts from the command line with the fields and output format you choose.25 Nov 2026 - Tip
wp shellwp shell opens an interactive PHP prompt inside your WordPress siteStarts an interactive PHP console with WordPress loaded, to try functions and inspect data.25 Nov 2026 - Tip
const rtf = new Intl.RelativeTimeFormat("nl", { numeric: "auto" });Intl.RelativeTimeFormat writes "3 days ago" in any languageFormats a number and a unit as relative time in a chosen language, without a library.25 Nov 2026 - Tip
button.addEventListener("click", async () => {Navigator.clipboard.writeText copies text, with rules about when it mayWrites a string to the clipboard from JavaScript, as long as the page and the moment are allowed.25 Nov 2026 - Tip
const results = await Promise.allSettled([Promise.allSettled waits for every promise, even the ones that failRuns several promises together and returns the outcome of each, without stopping at the first rejection.25 Nov 2026 - Tip
const params = new URLSearchParams({ q: "fiets reparatie", page: 2 });URLSearchParams builds and reads query strings without manual escapingParses and builds URL query strings, with encoding handled for you.25 Nov 2026 - Tip
node --watch index.jsnode --watch restarts your script when a file changesStarts a Node.js script in watch mode, so it restarts by itself each time you save a file it uses.25 Nov 2026 - Tip
npm cinpm ci gives a clean, reproducible install in CIInstalls exactly what the lockfile says, after wiping node_modules, so builds are the same every time.25 Nov 2026 - Tip
npm ls --depth=0npm ls --depth=0 lists only the packages you installed yourselfShows the top-level dependencies of a project without the long tree of dependencies below them.25 Nov 2026 - Tip
npm outdatednpm outdated shows which dependencies have newer versionsLists installed packages with their current, wanted and latest versions, without changing anything.25 Nov 2026 - Tip
textutil -convert html report.rtftextutil -convert turns Word and RTF files into text or HTML on a MacConverts documents between txt, html, rtf, docx and other formats from the Terminal, without opening an app.25 Nov 2026 - Tip
Delete this item?The dialog element gives you a modal without a libraryOpens a real modal dialog with a backdrop, focus handling and Escape to close, using one HTML element.24 Nov 2026 - Tip
const items = ['a', 'b', 'c'];Array.at(-1) gets the last item without array.length – 1Reads an array item by index and counts from the end when the index is negative.24 Nov 2026 - Tip
const id = crypto.randomUUID();Crypto.randomUUID() creates a random ID without a packageReturns a random version 4 UUID from the browser's secure random generator.24 Nov 2026 - Tip
const files = [Object.groupBy() sorts an array into groups by a keyGroups the items of an array into an object, one array per key you compute.24 Nov 2026 - Tip
wp db checkwp db check tests every WordPress table for corruptionRuns a table check on the whole WordPress database using the credentials from wp-config.php.24 Nov 2026 - Tip
try {AbortSignal.timeout() gives fetch a timeout in one lineMakes a fetch request give up after a set number of milliseconds, without a controller and a timer.24 Nov 2026 - Tip
const sorted = names.toSorted();ToSorted() sorts an array without changing the originalReturns a new sorted array and leaves the array you started with as it was.23 Nov 2026 - TipThe details element gives you an accordion without JavaScriptMakes a click-to-expand block in plain HTML, with no JavaScript.19 Nov 2026
- Tip
const copy = structuredClone(original);StructuredClone makes a real deep copy of an objectMakes a full deep copy of a JavaScript object, including dates, maps and sets.19 Nov 2026 - Tip
wp config shuffle-saltswp config shuffle-salts logs everybody out after a break-inReplaces the keys and salts in wp-config.php so every existing WordPress login session becomes invalid.18 Oct 2026 - Tip
wp option list --autoload=on --format=total_byteswp option list --autoload=on --format=total_bytes shows what every page load drags alongShows how many bytes of WordPress options load on every page request, and which ones are biggest.4 Oct 2026 - Tip
wp plugin list --skip-plugins --skip-themes–skip-plugins and --skip-themes get WP-CLI working on a broken siteLets WP-CLI run on a crashing WordPress site by not loading plugins or themes, so you can fix it.26 Sep 2026 - Tip
wp media regenerate --only-missing --yeswp media regenerate --only-missing fixes images after a theme changeCreates only the missing image sizes after a theme change instead of redoing every thumbnail.20 Sep 2026 - Tip
define( 'WP_AUTO_UPDATE_CORE', 'minor' );WP_AUTO_UPDATE_CORE decides which WordPress updates install themselvesChooses whether WordPress installs only minor releases, all releases or no core updates by itself.15 Sep 2026 - Tip
define( 'WP_ENVIRONMENT_TYPE', 'staging' );Set WP_ENVIRONMENT_TYPE so plugins know a site is stagingMarks a WordPress site as local, staging or production so plugins and code can behave differently.9 Sep 2026 - Tip
wp transient delete --expiredwp transient delete --expired cleans the leftovers out of your options tableRemoves expired cached values from the WordPress database without touching the ones still in use.22 Aug 2026 - Tip
define( 'WP_POST_REVISIONS', 5 );Cap post revisions with WP_POST_REVISIONSLimits how many old versions WordPress keeps of each post so the database stops growing.23 Jul 2026 - Tip
define( 'DISALLOW_FILE_MODS', true );DISALLOW_FILE_MODS locks plugin and theme changes, not just the editorStops anyone from installing or updating plugins and themes in the admin, so a stolen login can do less.15 Jul 2026 - Tip
define( 'WP_DEBUG', true );Log WordPress errors to a file and keep them off the screenWrites WordPress errors to a log file while hiding them from visitors on the page.6 Jul 2026 - Tip
wp config set WP_DEBUG true --rawwp config set WP_DEBUG true --raw edits wp-config.php without opening itSets a constant in wp-config.php as a real true or false value, without hand-editing the file.1 Jul 2026 - Tip
wp plugin verify-checksums --allwp plugin verify-checksums --all checks every plugin against WordPress.orgChecks the files of every installed plugin against WordPress.org and lists any that do not match.21 Jun 2026 - Tip
wp core verify-checksumswp core verify-checksums tells you if someone touched your WordPress filesCompares your WordPress core files with the official list and reports anything changed or unexpected.13 Jun 2026
Git39
- Tip
git grep -n -p TODOgit grep -p shows which function a match lives inSearches only the files git tracks and names the function around every match.25 Nov 2026 - Tip
git range-diff @{u} @{1} @git range-diff shows what a rebase changedCompares two versions of a branch commit by commit, for example before and after a rebase.25 Nov 2026 - Tip
git branch --show-currentgit branch --show-current prints only the name of your branchPrints the name of the current branch and nothing else, which is handy in scripts and prompts.25 Nov 2026 - Tip
git diff --name-only main...HEADgit diff --name-status lists changed files with a letter for what happenedLists only the files that changed, either as plain names or with a status letter for added, modified or deleted.25 Nov 2026 - Tip
git describe --tagsgit describe --tags names a commit after the nearest tagGives a commit a readable name made of the closest tag and the number of commits since it.25 Nov 2026 - Tip
git reset --soft HEAD~1git reset --soft HEAD~1 undoes the last commit but keeps your changesMoves the branch back one commit while the changes stay staged, so you can recommit them differently.25 Nov 2026 - Tip
git show --statgit show --stat summarizes what a commit changedShows a commit message and a list of the changed files with line counts, without the full diff.25 Nov 2026 - Tip
git status -sbgit status -sb shows a compact status with the branch linePrints the changes as short two-letter codes and adds one line with the branch and its upstream.25 Nov 2026 - Tip
git config --global help.autocorrect promptHelp.autocorrect prompt asks before git runs a corrected commandMakes git ask for confirmation when it guesses what you meant after a typo in a command name.24 Nov 2026 - Tip
git tag -ngit tag -n lists your tags with their messagesLists tags together with the first line of their annotation, so the list explains itself.24 Nov 2026 - Tip
git maintenance startgit maintenance start keeps a big repository fast in the backgroundRegisters the repository for scheduled background upkeep like prefetching and commit-graph updates, so it stays fast.24 Nov 2026 - Tip
git stash push -m "login form, half done"git stash push -m gives a stash a name you can find againSaves your unfinished changes under a name, so git stash list tells you what each stash holds.23 Nov 2026 - Tip
gh pr checkout 123gh pr checkout 123 fetches a pull request branch for youSwitches to the branch of a GitHub pull request using only its number.19 Nov 2026 - Tip
git commit --fixup a1b2c3dgit commit --fixup plus --autosquash keeps your history clean without any editing10 Nov 2026 - Tip
git diff --staged | claude -p "Summarize this diff in one sentence"Claude -p lets you pipe text into Claude Code from a script10 Nov 2026 - Tip
git log -L :parseConfig:src/config.jsFollow one function through history with git log -LShows only the commits that changed one function or line range in a file.25 Oct 2026 - Tip
git switch - # back on your feature branchgit switch – takes you back to the branch you were onJumps back to the previous Git branch without typing its name.23 Oct 2026 - Tip
git diff --word-diffRead a small edit in a long line with git diff --word-diffShows changes word by word instead of line by line.12 Oct 2026 - Tip
git clean -n -dPreview what git clean will delete with -nShows which untracked files git clean would remove, without deleting anything.3 Oct 2026 - Tip
git fetch --pruneFetch.prune cleans up branches that no longer exist remotelyRemoves stale remote-tracking branches every time you fetch.24 Sep 2026 - Tip
git branch --sort=-committerdateSort your branches by last commit with branch.sortLists your branches with the most recently committed one at the top.18 Sep 2026 - Tip
git config --global push.autoSetupRemote trueSet push.autoSetupRemote and stop typing --set-upstreamMakes the first push of a new branch set up tracking automatically.13 Sep 2026 - Tip
git config --global rerere.enabled trueTurn on rerere and resolve the same conflict only onceMakes git remember how you resolved a merge conflict and reuse it next time.7 Sep 2026 - Tip
/branch try-sqlite/branch lets you try another direction without losing this conversationSplits the current Claude Code conversation so you can explore a different direction safely.28 Aug 2026 - Tip
git worktree add ../hotfix hotfixUse git worktree to check out two branches at onceChecks out a second branch in its own folder without stashing or cloning.27 Aug 2026 - Tip
git bisect run ./test.shLet git bisect run your test for youFinds the commit that introduced a bug by running your test script on commits automatically.20 Aug 2026 - Tip
.gitA .dockerignore file makes builds faster and images smallerKeeps unneeded and sensitive files out of the build context so builds run faster.17 Aug 2026 - Tip
0123456789abcdef0123456789abcdef01234567Tell git blame to ignore a big reformatting commitMakes git blame skip commits like mass reformatting so it shows who really wrote a line.9 Aug 2026 - TipTurn on Re-pull image in a Portainer Git stack so updates really updateMakes a Git-based Portainer stack pull fresh images whenever it redeploys.5 Aug 2026
- Tip
git diff --stagedgit diff --staged shows what your commit will containShows the changes that are staged and will go into your next commit.26 Jul 2026 - Tip
claude -p "Look at my staged changes and create an appropriate commit" \Scope --allowedTools to single git commands, with a space before the starLets a scripted Claude Code run use only the git commands you list, without prompting.24 Jul 2026 - Tip
git add -pStage only part of a file with git add -pLets you choose which parts of a file go into the next commit.18 Jul 2026 - Tip
git restore --staged notes.txtUnstage a file with git restore --stagedTakes a file out of the staging area while keeping your edits on disk.13 Jul 2026 - Tip
git push --force-with-leaseUse --force-with-lease, not --forceForces a push only if nobody else has updated the remote branch since you last fetched.5 Jul 2026 - Tip
git add forgotten-file.txtAdd a forgotten file to your last commit with --amend --no-editAdds your staged changes to the previous commit without touching its message.25 Jun 2026 - Tip
git reflogFind lost commits with git reflogLists where your branch tips have been so you can bring back commits after a reset.18 Jun 2026 - Tip
git stash push -u -m "login form, half done"Stash your new files too with git stash -uStashes your changes together with new files that git does not track yet, and labels the stash.9 Jun 2026 - Tip
/rewind/rewind undoes Claude's edits without touching gitRolls the code and the conversation back to an earlier prompt in your Claude Code session.6 Jun 2026 - Tip
git switch feature/logingit switch – takes you back to the branch you were just onJumps back to the branch you were on before your last branch switch.3 Jun 2026
AI38
- Tip
/export session-notes.txt/export saves a Claude Code conversation as plain textWrites the current Claude Code conversation to a text file or your clipboard.25 Nov 2026 - Tip
claude -cclaude -c picks up the last Claude Code session in this folderReopens your most recent conversation in the current directory, so you carry on where you stopped.23 Nov 2026 - Tip
Set project instructions -> "Answer in plain English. Ask a questionUse Claude Projects so you stop repeating the same contextKeeps your documents and standing instructions ready in every chat of a Claude project.21 Oct 2026 - Tip
Summarize the email below in two sentences and list any deadlines.Wrap each part of a long Claude prompt in its own XML tagSeparates instructions from pasted content in a Claude prompt so the two are not confused.19 Oct 2026 - Tip
Keep the answer under 100 words, because it goes in an SMS.Explain why you want something and Claude aims betterAdds the reason behind an instruction to a Claude prompt so the answer fits your goal better.13 Oct 2026 - Tip
"command": "osascript -e 'display notification \"Claude Code needs your attention\" with title \"Claude Code\"'"Add a Notification hook so Claude Code pings you when it waitsSends a desktop notification when Claude Code is waiting for your input or approval.5 Oct 2026 - Tip
Which clauses change the notice period? Quote them first, then explain.Put the long document first and your question last in ClaudeOrders a Claude prompt with the long text first and your question at the end.3 Oct 2026 - Tip
/model opusplan/model opusplan plans with Opus and codes with SonnetUses Opus while planning and switches to Sonnet when Claude Code starts the actual work.1 Oct 2026 - Tip
exit 2Block edits to .env with a PreToolUse hook that exits 2Blocks Claude Code from editing protected files by running a script that exits with code 2.26 Sep 2026 - Tip
"model": "opus".claude/settings.local.json overrides the team file just for youOverrides a shared Claude Code project setting for you only, without touching git.23 Sep 2026 - Tip
"command": "f=$(jq -r '.tool_input.file_path') && npx prettier --write --ignore-unknown \"$f\""Let a PostToolUse hook run Prettier after every Claude editFormats every file Claude Code edits by running Prettier from a hook.21 Sep 2026 - Tip
/statusline show model name and context percentage with a progress bar/statusline builds you a status bar with context usage in itAdds a custom status bar to Claude Code showing things like model and context usage.19 Sep 2026 - Tip
/compact keep the failing test names and the decision to use SQLiteGive /compact a focus before the context runs outSummarizes a long Claude Code conversation while keeping the parts you name.16 Sep 2026 - Tip
---A skill can run shell commands before Claude reads itRuns a shell command before a skill loads, so Claude gets fresh data in its prompt.11 Sep 2026 - Tip
---Scope instructions with paths in .claude/rulesMakes a Claude Code rule load only when Claude works on files matching a pattern.9 Sep 2026 - Tip
You are a code reviewer. Give specific, actionable feedback.Claude --agent runs your whole session as one of your subagentsStarts a Claude Code session as one of your own subagents, with its tools and model.8 Sep 2026 - Tip
echo "CLAUDE.local.md" >> .gitignorePut personal project notes in CLAUDE.local.md and gitignore itKeeps your own project notes for Claude Code out of the shared CLAUDE.md and out of git.4 Sep 2026 - Tip
/copy 2/copy 2 copies Claude's second-to-last answer, not just the lastCopies an earlier Claude Code answer, or a single code block from it, to the clipboard.23 Aug 2026 - Tip
See @README for the project overview and @package.json for npm scripts.@-import files in CLAUDE.md instead of pasting themPulls other files into Claude Code's CLAUDE.md instructions with one @path line.23 Aug 2026 - Tip
/context/context shows what is eating your Claude Code context windowShows how full the Claude Code context window is and what is taking the space.19 Aug 2026 - Tip
"permissions": {Deny Read(./.env) so Claude never opens your secretsStops Claude Code from reading your .env file by adding a deny rule to settings.14 Aug 2026 - Tip
/goal all tests in test/auth pass and the lint step is clean/goal keeps Claude working until a condition you wrote is trueKeeps Claude Code working turn after turn until a condition you describe is met.14 Aug 2026 - Tip
claude --permission-mode planPress Ctrl+G in plan mode and edit Claude's plan yourselfLets Claude Code plan first, and lets you edit that plan in your editor before it changes anything.1 Aug 2026 - Tip
claude --permission-mode acceptEditsShift+Tab cycles permission modes, and acceptEdits skips the file-edit promptsCycles Claude Code between permission modes, including one that stops asking about file edits.26 Jul 2026 - TipCtrl+O opens the transcript view where Claude's work is not hiddenShows the full detail of tool calls, hooks and models behind a Claude Code turn.18 Jul 2026
- Tip
Ctrl+Enter send the queued messages nowType while Claude works and your message is queued, not lostQueues what you type while Claude is busy, and lets you take it back with the Up arrow.15 Jul 2026 - TipCtrl+S stashes the prompt you are typing and brings it back laterParks the half-written prompt, lets you send something else, then restores it.12 Jul 2026
- Tip
claude -p "Extract the main function names from auth.py" \–json-schema makes claude -p return JSON you can trustMakes a scripted Claude Code run return validated JSON instead of free text.7 Jul 2026 - TipCtrl+R searches every prompt you ever sent to Claude CodeSearches your earlier Claude Code prompts as you type so you can reuse them.5 Jul 2026
- Tip
claude --fallback-model sonnet,haiku–fallback-model keeps a run going when the main model is overloadedSwitches Claude Code to a backup model automatically when the main one is overloaded.2 Jul 2026 - Tip
claude -n auth-refactorName your Claude Code sessions and resume them by nameStarts Claude Code sessions with a name so you can resume the right one later.1 Jul 2026 - Tip
! npm testA leading ! runs a shell command inside Claude CodeRuns a shell command from the Claude Code prompt and puts the output in the conversation.22 Jun 2026 - Tip
cat build-error.txt | claude -p 'concisely explain the root cause of this build error' > output.txtPipe a log straight into claude -p instead of pasting itSends a log or diff from the shell straight into Claude Code and prints the answer.22 Jun 2026 - Tip
claude --bare -p "Summarize README.md" --allowedTools "Read"Add --bare to claude -p so scripts run the same everywhereRuns a scripted Claude Code call without loading hooks, plugins, MCP servers or CLAUDE.md.19 Jun 2026 - Tip
/btw what was the name of that config file again?Ask Claude Code a /btw question and keep your context cleanAsks Claude Code a quick question about your session without adding it to the conversation.13 Jun 2026 - Tip
.envA .worktreeinclude file carries your .env into each Claude worktreeCopies your gitignored local files, like .env, into every new Claude Code worktree.12 Jun 2026 - Tip
claude --worktree feature-authclaude -w gives every session its own git worktreeStarts Claude Code in its own git worktree and branch so parallel sessions do not collide.7 Jun 2026 - Tip
claude --add-dir ../api-server–add-dir lets Claude see a second folder in the same sessionLets one Claude Code session read and edit files in a second project folder.4 Jun 2026
Media31
- Tip
ffmpeg -i in.mp4 -c:v libx264 -crf 23 -preset medium -c:a copy out.mp4ffmpeg -crf sets video quality instead of a bitrateEncodes video at constant quality with H.264 or H.265, so you pick a CRF number instead of a bitrate.25 Nov 2026 - Tip
ffmpeg -i in.mp4 -vf scale=1280:-2 -c:a copy out.mp4ffmpeg -vf scale=1280:-2 resizes video and keeps the aspect ratioScales a video to a fixed width and works out an even height so the picture is not stretched.25 Nov 2026 - TipHold the shutter button to record a QuickTake video on iPhoneStarts a video straight from Photo mode when you touch and hold the shutter button.24 Nov 2026
- Tip
ffprobe -v error -show_format -show_streams video.mkvffprobe shows the codecs and streams inside a video filePrints the container format and every stream of a media file, so you see codecs, resolution and duration.24 Nov 2026 - Tip
ffmpeg -i movie.mkv -c copy movie.mp4ffmpeg -c copy changes the container without re-encodingMoves a video into another file format in seconds, without re-encoding or quality loss.19 Nov 2026 - Tip
.video {aspect-ratio keeps a box at 16:9 without padding tricksGives an element a fixed width-to-height ratio with one CSS line.19 Nov 2026 - TipSet Minimum Free Space in Sonarr and Radarr so a full disk stops the importsStops Sonarr and Radarr from filling your disk to the last megabyte.9 Nov 2026
- TipLeave "Rescan Series Folder after Refresh" on Always in Sonarr and RadarrA Sonarr and Radarr setting that keeps the app looking at your disk after changes.8 Nov 2026
- TipSet Upgrade Until in your Sonarr and Radarr quality profile, or they keep swapping filesTells Sonarr and Radarr at which quality to stop replacing files with better ones.8 Nov 2026
- TipUse the Mass Editor in Sonarr and Radarr instead of fixing 80 series one by oneChange a setting for dozens of series or movies at once instead of one by one.8 Nov 2026
- TipA 60-minute torrent delay in Sonarr and Radarr lets a Usenet release winMakes Sonarr and Radarr wait for a Usenet release before they grab a torrent.5 Nov 2026
- TipClick Backup now in Sonarr and Radarr, then take the zip off the serverMakes a backup of your Sonarr and Radarr settings and gets it off the server.3 Nov 2026
- TipTell Sonarr and Radarr that a deleted file is not a missing fileStops Sonarr and Radarr from downloading again a file you deleted on purpose.1 Nov 2026
- TipGive Sonarr and Radarr a recycling bin before you click deleteMoves deleted files into a recycling bin instead of removing them for good.24 Oct 2026
- Tip
Settings > Media Management > File Management > Analyze video filesTurn off Analyze video files if nothing in your setup needs itCuts disk reads during Sonarr and Radarr refreshes by switching off MediaInfo analysis you do not use.16 Oct 2026 - Tip
Settings > Indexers > (indexer) > Indexer Priority: 1 (best) ... 50 (worst)Use Indexer Priority to break ties, not to rank everythingExplains that Indexer Priority only decides between otherwise identical releases and runs from 1 to 50.3 Oct 2026 - Tip
Tag the indexer: private-trackerAn indexer tag does not exclude the untagged indexersWarns that Sonarr and Radarr still use untagged indexers for a series that has a matching tag.25 Sep 2026 - Tip
Settings > Indexers > (indexer) > Seed Ratio / Seed TimeRemove Completed only works when your client pauses at the seed goalGets finished torrents removed automatically by combining seed goals, a pausing client and Remove Completed.20 Sep 2026 - Tip
rsync -a --info=progress2 ~/Videos/ /mnt/nas/Videos/rsync --info=progress2 shows one progress line for the whole transferShows a single progress line for the whole copy instead of one per file.18 Sep 2026 - Tip
Series > Edit > Series Type: Standard | Daily | AnimeSet the right Series Type for daily shows and animeExplains how the Series Type changes the way Sonarr searches and why a wrong type finds nothing.13 Sep 2026 - Tip
Quality > Custom Format score > Protocol > ... > Indexer priority > SizeRemember that quality beats Custom Format score in Sonarr and RadarrShows the order Sonarr uses to pick between releases so Custom Format scores behave as expected.8 Sep 2026 - Tip
Series > episode > Manual Search > hover the red iconHover the red exclamation mark in Manual SearchShows why Sonarr refuses a release in Manual Search by hovering over its rejection icon.27 Aug 2026 - Tip
Add Series > Start search for missing episodes (or Add and Search)Tick Start search for missing episodes when you add a showExplains why a newly added Sonarr show needs an explicit search and how to start one.21 Aug 2026 - Tip
resolvectl monitorresolvectl monitor streams every DNS query liveShows a live stream of the DNS lookups made on this machine.14 Aug 2026 - Tip
Clean Library Level: Log OnlySet Clean Library Level to Log Only before you trust an import listMakes an import list report which series it would clean up without changing your library.11 Aug 2026 - Tip
Download Proper & Repacks: Do not PreferSet Download Proper and Repacks to Do not PreferLets Custom Format scores, not the repack label, decide which release Sonarr or Radarr keeps.28 Jul 2026 - Tip
Movie > Minimum Availability: ReleasedPair Radarr's Released availability with a negative Availability DelayDelays Radarr's search until about two weeks before the digital release so early bad releases are skipped.21 Jul 2026 - Tip
Episode Title Required: Only for Bulk Season ReleasesSet Episode Title Required to bulk releases onlyStops Sonarr from importing season packs with TBA episode titles by waiting up to 48 hours.14 Jul 2026 - TipYou can get back into Sonarr by deleting one line in config.xmlResets a forgotten Sonarr login by removing one line from config.xml while the app is stopped.6 Jul 2026
- Tip
SONARR__AUTH__TRUSTCGNATIPADDRESSES=trueLet Tailscale count as local for Sonarr and Radarr loginsMakes Tailscale addresses count as local when Sonarr or Radarr skips the login for local addresses.28 Jun 2026 - Tip
Prowlarr > Settings > Apps > (your app) > Sync LevelProwlarr Full Sync overwrites what you change inside SonarrExplains that Full Sync resets indexer edits made in Sonarr or Radarr, and when Add and Remove Only is better.5 Jun 2026
Python14
- Tip
from itertools import batchedItertools.batched splits a list into chunks of nSplits any iterable into tuples of a fixed size, with the standard library only.25 Nov 2026 - Tip
python -m ensurepip --upgradepython -m ensurepip installs pip when your Python has noneInstalls the pip version bundled with Python, offline, if pip is missing from the interpreter.25 Nov 2026 - Tip
python -m sitepython -m site shows sys.path and the user site-packages folderPrints the module search path, the user base and user site folders, and whether the user site is enabled.25 Nov 2026 - Tip
python -m uuidpython -m uuid prints a fresh UUID without writing any codeGenerates a random UUID, or a name-based one, straight from the command line on Python 3.12 or newer.25 Nov 2026 - Tip
python -m pip check, then fix what it namesPip check finds broken or conflicting dependencies in an environmentVerifies that the installed packages have the dependencies they need, at compatible versions.25 Nov 2026 - Tip
python3 -m calendar -m 4 2027python -m calendar prints a calendar in your terminalPrints a text calendar for a year or month without installing anything.24 Nov 2026 - Tip
python -X importtime -c 'import asyncio' 2> imports.txtpython -X importtime shows which import makes a script start slowlyPrints how long each imported module took, to find the import that slows down startup.24 Nov 2026 - Tip
python3 -m pydoc -bpython -m pydoc -b opens the Python docs of your own installStarts a local documentation server for every installed module and opens it in your browser.24 Nov 2026 - Tip
python3 -m zipfile -l backup.zippython -m zipfile -l lists a zip archive when unzip is missingLists, tests, extracts or creates zip archives with the Python standard library.24 Nov 2026 - Tip
python3 -m timeit "sum(range(1000))"python3 -m timeit times a small piece of code for youRuns a snippet many times and prints the best average time, so you can compare two ways to do something.23 Nov 2026 - Tip
python3 -m pip install --dry-run requestsPip install --dry-run shows what pip would installLists the packages pip would install, without installing or changing anything.19 Nov 2026 - Tip
python3 -m http.server 8000python3 -m http.server shares a folder over HTTP in one lineShares a folder over your network with one line of Python, no setup needed.16 Nov 2026 - Tip
curl -s https://example.com/api | python3 -m json.toolpython3 -m json.tool makes ugly JSON readable in one pipeTakes messy one-line JSON and prints it indented, so you can read it and spot typos.1 Nov 2026 - Tip
RUN --mount=type=cache,target=/root/.cache/pip \RUN --mount=type=cache keeps pip and apt downloads between buildsKeeps downloaded packages between builds so a changed dependency list does not redownload everything.23 Aug 2026
Phone7
- TipGuided Access locks your iPhone to a single appKeeps the iPhone inside one app, with optional blocked screen areas, disabled buttons and a time limit.25 Nov 2026
- TipLive Text copies the text in a photo or in the camera viewLets you select, copy, translate or look up text that appears in a photo or in the camera view.25 Nov 2026
- TipScan a document with the Notes app on your iPhoneUses the camera inside Notes to scan paper pages, straighten them and keep them in a note.25 Nov 2026
- TipText Replacement turns a short code into a long phrase while you typeExpands a short shortcut you type into a full phrase, such as an address or a standard reply.25 Nov 2026
- TipTheater Mode keeps the Apple Watch screen dark and silentStops the display lighting up on a wrist raise and mutes sounds, while taps still arrive.25 Nov 2026
- TipWater Lock on Apple Watch blocks the screen and clears the speakerTurns the touchscreen off while the watch is wet, then plays tones to push water out of the speaker.25 Nov 2026
- TipHold the space bar on iPhone to turn the keyboard into a trackpadTurns the on-screen keyboard into a trackpad to move the text cursor precisely.24 Nov 2026
CSS6
- Tip
.header {CSS backdrop-filter blurs whatever is behind an elementApplies effects such as blur to the area behind an element, for frosted glass headers and overlays.25 Nov 2026 - Tip
.card { position: relative; }CSS inset replaces top, right, bottom and left in one lineSets top, right, bottom and left of a positioned element with one shorthand property.25 Nov 2026 - Tip
place-items: center;CSS place-items: center centers content on both axes in a gridCenters items horizontally and vertically with one declaration on a grid container.25 Nov 2026 - Tip
a {CSS text-underline-offset moves an underline away from the textControls the distance between text and its underline, so links stop cutting through descenders.25 Nov 2026 - Tip
color-scheme: light dark;Color-scheme: light dark gives form controls and scrollbars a dark modeTells the browser your page supports light and dark, so default controls match the visitor's setting.23 Nov 2026 - Tip
text-wrap: balance;Text-wrap: balance keeps a heading from ending on one lonely word19 Nov 2026
Security6
- Tip
gpg --symmetric --armor --output secret.txt.asc secret.txtgpg --symmetric and --encrypt protect a file with a passphrase or a keyEncrypts a file with GnuPG, either with a passphrase or for someone's public key.25 Nov 2026 - Tip
openssl req -x509 -newkey rsa:2048 -days 365 \openssl req -x509 makes a self-signed test certificate in one commandCreates a private key and a self-signed certificate with a subjectAltName, for testing HTTPS locally.25 Nov 2026 - Tip
openssl x509 -fingerprint -sha256 -noout -in cert.pemopenssl x509 -fingerprint prints a certificate's SHA-256 fingerprintPrints the SHA-256 fingerprint of a PEM certificate, for comparing with a value you trust.25 Nov 2026 - Tip
chage -l jordichage -l shows when an account's password or login expiresLists the password aging and expiry details of a user account.24 Nov 2026 - TipUnraid Connect flash backup stores your config in the cloud without encryptionDescribes what the automatic cloud backup of the USB flash drive contains and how it is stored.18 Nov 2026
- TipAn access list with a password can lock you out of the app behind itExplains why a password on a proxy host breaks apps that have their own login.10 Sep 2026
Mac5
- Tip
brew leavesbrew leaves lists the Homebrew packages you actually chose to installLists installed formulae that no other installed formula or cask depends on.25 Nov 2026 - Tip
caffeinate -i rsync -a ~/Photos /Volumes/backup/caffeinate stops your Mac from sleeping while a long command runsKeeps your Mac awake only while one long command runs, then lets it sleep again.17 Nov 2026 - TipShow the path bar in Finder with Option-Command-PShows a clickable row of folders at the bottom of every Finder window.18 Oct 2026
- Tip
~/Library/Application SupportShift-Command-G opens a path in any Finder windowJumps to any folder by typing its path in Finder.3 Oct 2026 - TipOption-Command-V moves files in Finder instead of copying themMoves copied files into the current Finder folder, like cut and paste.25 Sep 2026
Home Assistant1
Nothing matches.