All tags
Start here · CLIFind out why a Linux service failed, with journalctl12 steps · 13 min read · Linux server owners who rarely read logsStart the guide CLI
Narrow down
Guides4
- GuideAdvanced tmux, a config that grows with you, formats, layouts and moreThis advanced tmux guide builds on the beginners series with a modular config covering vi-style copy mode, clipboard integration, and a functional status bar. It dives into layouts, workspace scripts, formats, popups, menus, plugins like tmux-resurrect, and SSH workflows including nested tmux sessions, all tested against tmux 3.8.9 steps · 52 min read
- GuideFind out why a Linux service failed, with journalctl12 steps · 13 min read
- GuideLet git bisect find the commit that broke your codeLet git bisect find the commit that broke your code with a binary search, and let git bisect run do the testing for you.5 steps · 3 min read
- Guide🐳Guide: Updating Docker Containers via the Unraid TerminalUpdate a Docker container such as Jellyfin from the Unraid terminal, step by step, and learn why the command line gives you more control than the Update button.9 steps · 3 min read
Other tips77
- Tip
a2query -m rewritea2query -m rewrite tells you if an Apache module is switched onCheck whether an Apache module is enabled, and get a clean exit code for scripts.3 Dec 2026 - Tip
printf 'GET /\r\n' | hexdump -CHexdump -C shows a file as hex bytes next to readable textSee the exact bytes of a file, with hex on the left and readable characters on the right.3 Dec 2026 - Tip
renice -n 10 -p 4242renice -n 10 -p PID makes a running process less greedyLower the priority of a job that is already running, without restarting it.3 Dec 2026 - Tip
sha256sum -c --ignore-missing SHA256SUMSsha256sum -c --ignore-missing checks only the files you actually downloadedVerify only the downloaded files against a big checksum list, without errors for the rest.3 Dec 2026 - Tip
xmlstarlet ed -u '//item[@id="1"]/title' -v 'Changed' feed.xmlxmlstarlet ed -L updates or deletes XML nodes in the file itselfChange or delete one specific XML node in place, picked by XPath.3 Dec 2026 - Tip
xmlstarlet sel -t -v '//item/title' -n feed.xmlxmlstarlet sel -t -v pulls values out of XML with an XPathRead single values from an XML file with an XPath, from the command line.3 Dec 2026 - Tip
yamllint -f parsable config.yamlyamllint -f parsable prints one line per problem for scripts and editorsPrint yamllint results as one machine-readable line per problem.3 Dec 2026 - Tip
rg 'apiKey' -g '!*.min.js' -g '!package-lock.json'rg -g includes or excludes files by patternLimit ripgrep to some file types or skip noisy files with a glob.3 Dec 2026 - Tip
flatpak uninstall --unusedflatpak uninstall --unused removes runtimes nothing needs anymoreDeletes Flatpak runtimes that no installed app uses anymore.3 Dec 2026 - Tip
unzip -j archive.zip -d out/unzip -j extracts files without recreating the foldersUnpack the files of a zip flat into one directory, ignoring its folder structure3 Dec 2026 - Tip
comm --total a.txt b.txtcomm --total counts the lines that differ between two sorted filesAdds a last line with how many lines are only in file one, only in file two, and in both.3 Dec 2026 - Tip
printf %s hello | openssl dgst -sha256 -hmac secretOpenssl dgst -hmac signs a message with a shared secretComputes an HMAC of a file or text with a secret key, as used for webhook signatures.3 Dec 2026 - Tip
openssl pkcs12 -legacy -in old.pfx -nokeysopenssl pkcs12 -legacy opens an old .pfx that OpenSSL 3 refusesLoads the legacy provider so OpenSSL 3 can read a .pfx made with RC2 or 3DES.3 Dec 2026 - Tip
vcgencmd measure_clock armvcgencmd measure_clock arm shows the real CPU speed of a Raspberry PiReads the actual Arm clock in hertz, which can differ from the speed the kernel asked for.3 Dec 2026 - Tip
\gexec\gexec runs the SQL that a psql query just generatedTakes every value a query returns and executes it as its own SQL statement.2 Dec 2026 - Tip
PRAGMA table_list;PRAGMA table_list shows every table and view with its column countLists all tables and views of a SQLite database with type, column count and strict flag.2 Dec 2026 - Tip
FROM pg_settingsPg_settings.pending_restart lists PostgreSQL changes that still need a restartShows which edited settings in the config file are not active yet because the server has to restart.2 Dec 2026 - Tip
mysqlshowmysqlshow lists databases, tables and columns without opening a clientShows databases, tables or columns from the command line, with optional index and row counts.2 Dec 2026 - Tip
HandBrakeCLI -zHandBrakeCLI -z lists the presets you can use with -ZPrints the available HandBrake presets so you can encode from the terminal with one of them.2 Dec 2026 - Tip
lsmem --summarylsmem --summary shows how much memory the kernel seesPrints the online and offline memory the kernel manages and the size of one memory block.2 Dec 2026 - Tip
montage *.jpg -tile 4x -geometry 300x300+4+4 sheet.jpgmontage makes a contact sheet out of a folder of imagesCombines many images into one grid image with a single ImageMagick command.2 Dec 2026 - Tip
mkvpropedit movie.mkv --edit track:a1 --set language=engmkvpropedit changes track language and default flag without remuxingEdits the language or default flag of an MKV track in place, in a fraction of a second.2 Dec 2026 - Tip
upower -i /org/freedesktop/UPower/devices/battery_BAT0upower -i shows battery details on a Linux laptopLists power devices and prints detailed battery information from the command line.2 Dec 2026 - Tip
lspci -tlspci -t draws the PCI bus as a treeShows buses, bridges and devices as a tree, so you see what hangs off what.2 Dec 2026 - Tip
mariadb --init-command="SET SESSION sql_mode='STRICT_ALL_TABLES'" mydbmariadb --init-command runs a statement every time you connectRuns one SQL statement automatically after the client connects, and again after a reconnect.2 Dec 2026 - Tip
jq -r '.files[] | @sh' data.jsonjq @sh quotes values so the shell can use them safelyTurns JSON strings into single-quoted shell words that survive spaces and apostrophes.2 Dec 2026 - Tip
jq -n -c '$ARGS.positional' --args a "b c"jq --args puts extra command line words into $ARGS.positionalPasses any number of values from the shell to a jq filter as an array.2 Dec 2026 - Tip
echo '{"id":1,"payload":"{\"user\":\"ann\",\"tags\":[\"x\",\"y\"]}"}' | jq -c '.payload | fromjson | .tags'Jq fromjson opens JSON that was stored inside a stringParses a string field that itself contains JSON, so you can filter into it.2 Dec 2026 - Tip
echo 'cost: 1,50 and 2,25' | awk '{n=gsub(/,/,"."); print n": "$0}'Awk gsub() replaces every match in a line or in a single fieldReplaces all matches of a pattern in the line or in one chosen column, and counts them.2 Dec 2026 - Tip
awk -F, 'NR>1 {print > ($2".csv")}' data.csvawk can split one file into several, named after a columnWrites each line to a file named after a value in that line, such as a country code.2 Dec 2026 - Tip
immich upload --skip-hash --recursive directory/immich upload --skip-hash trades the local hash check for speedSkips the CLI's local hashing before upload. Immich still deduplicates on the server.2 Dec 2026 - Tip
echo 20261201 | awk '{print substr($0,1,4)"-"substr($0,5,2)"-"substr($0,7,2)}'Awk substr() cuts a piece out of a line, like a date from a numberExtracts part of a string by start position and length, counting from 1.2 Dec 2026 - Tip
jq 'with_entries(.key |= ascii_upcase)'jq with_entries renames or drops object keys in one filterRuns a filter on every key and value of a JSON object to rename or drop keys.2 Dec 2026 - Tip
ubuntu-bug openssh-serverubuntu-bug collects the details for an Ubuntu bug report for youGather versions and logs automatically when you report a problem.1 Dec 2026 - Tip
jq empty config.jsonOne empty filter checks that a JSON file parsesCatch a broken config before the program that reads it does.1 Dec 2026 - TipPaths() tells you where in a big JSON document a value livesFind the exact route to a value without scrolling through nested output.1 Dec 2026
- Tip
jq -c --slurpfile u users.json 'Slurpfile joins two JSON files on a shared idAdd names from one export to records in another without writing a program.1 Dec 2026 - Tip
pdfgrep -rin "warranty" ~/Documentspdfgrep searches a whole folder of PDF files for a phraseFind the right manual or invoice by what is written in it.1 Dec 2026 - Tip
immich upload --album --recursive ~/Pictures/archiveimmich upload can turn your folders into Immich albumsKeeps your folder structure as albums when importing an old photo collection.1 Dec 2026 - Tip
immich upload --ignore "**/Raw/**" --recursive ~/Pictures/2025Skip raw files and thumbnails in Immich uploads using ignore patternsLeaves unwanted subfolders and file types out of a bulk upload.1 Dec 2026 - Tip
Get-ExecutionPolicy -ListGet-ExecutionPolicy -List shows which Windows scope blocks your scriptFind the PowerShell scope whose policy wins, before changing anything.1 Dec 2026 - Tip
--smart-caseRIPGREP_CONFIG_PATH gives ripgrep a config file for your usual flagsStore the options you type every time in one file that rg reads.1 Dec 2026 - Tip
nmap --script-help ssh2-enum-algosnmap script-help explains an NSE script before you run itRead what a script does and which categories it belongs to.1 Dec 2026 - Tip
echo 'aGVsbG8gd29ybGQ=' | openssl base64 -dOpenssl base64 -d decodes base64 on any system that has OpenSSLEncode and decode base64 with one command that works the same on Linux, macOS and BSD.30 Nov 2026 - Tip
Get-Help Get-ChildItem -ExamplesGet-Help -Examples skips straight to the examples of a PowerShell commandShows only the usage examples of a cmdlet instead of the full help text.30 Nov 2026 - Tip
diff -Naur original/ changed/ > fix.patchdiff -Naur makes a patch that also adds and removes filesCreates a patch of a whole folder that includes new and deleted files, not only changed ones.30 Nov 2026 - Tip
wc -L access.logwc -L prints the length of the longest line in a fileCheck how wide a file is before you print it, wrap it or set a column width.30 Nov 2026 - Tip
patch -p1 --dry-run < ../fix.patchTest a diff with a patch dry run before it changes any fileTests a patch file against your folder first, so a failed patch doesn't leave half-changed files.30 Nov 2026 - Tip
sort hosts.txt | uniq -dUniq -d shows only the duplicate lines and uniq -u only the unique onesFind the entries that appear twice in a list, or the ones that appear once.30 Nov 2026 - Tip
cut -d, -f2 --complement people.csvcut can drop a single column and keep all the othersRemove a single field from a CSV or log without listing every field you want to keep.30 Nov 2026 - Tip
diff --strip-trailing-cr windows.txt unix.txtdiff can ignore Windows line endings with one optionCompares a Windows file with a Unix file without every line showing up as changed.30 Nov 2026 - Tip
newgrp medianewgrp gives your shell the permissions of a new group without logging outStarts a shell that already has a group you were just added to.30 Nov 2026 - Tip
apt-cache search --names-only zstdapt-cache search -n finds a package by its name, without the noiseSearches package names only, so results don't drown in description matches.30 Nov 2026 - Tip
sort -u -k1,1 logins.txtsort -u -k1,1 keeps one line per key instead of one per whole lineRemove duplicates based on one column, like keeping one line per host name.30 Nov 2026 - Tip
echo /srv/media/films/2024/clip.mkv | rev | cut -d/ -f1 | revRev | cut | rev gets the last field of a line, however many fields it hasTake the last part of a path or line when the number of fields changes.30 Nov 2026 - Tip
diff -I '^# generated' old/app.conf new/app.confdiff -I skips lines that match a pattern, like timestampsLeaves out changes in lines such as generated dates, so two exports can be compared.30 Nov 2026 - Tip
apt list '~o'apt list '~o' finds installed packages that no repository offers anymoreLists packages that no longer exist in any configured repository, so they get no updates.30 Nov 2026 - Tip
dig DNSKEY example.com +noall +answer +split=0dig +split=0 keeps long keys on one unbroken lineStop dig from breaking base64 keys and hashes into chunks with spaces, so you can copy them.30 Nov 2026 - Tip
iconv -f latin1 -t utf-8 old.csv > new.csviconv converts an old Latin-1 file to UTF-8 so the accents show up rightFix the garbled characters in an old export by converting its encoding.30 Nov 2026 - Tip
diff -b old.conf new.confdiff -b ignores changes in the amount of whitespaceHides differences that are only extra or fewer spaces, so the real changes stand out.30 Nov 2026 - Tip
csplit -s -z -f part- dump.sql '/^CREATE TABLE/' '{*}'csplit cuts a text file into pieces wherever a pattern matchesSplit a long log or dump into separate files at every line that starts a new section.30 Nov 2026 - Tip
apt policy openssh-serverapt holds back some Ubuntu updates on purpose because of phased updatesExplains the deferred due to phasing message and when to override it.30 Nov 2026 - Tip
fmt -w 72 notes.txtfmt -w rewraps a paragraph so all lines get the same lengthReflow ragged lines in notes, commit messages or a README to one width.30 Nov 2026 - Tip
head -n -5 report.txthead -n -5 prints a whole file except the last five linesCut off a footer or trailing lines without counting how long the file is.30 Nov 2026 - Tip
apt-config dump | lessapt-config dump shows the apt settings that are really in effectPrints the merged configuration from every file in apt.conf.d.30 Nov 2026 - Tip
sysctl kernel.dmesg_restrict kernel.kptr_restrictKernel.dmesg_restrict keeps the kernel log away from normal users, a security sysctlStops unprivileged users from reading the kernel ring buffer with dmesg.30 Nov 2026 - Tip
tasklist /svc /fi "IMAGENAME eq svchost.exe"tasklist /svc /fi shows which services run inside a processLists the services running inside each process, filtered by name, PID or memory use.28 Nov 2026 - Tip
pathping /n example.compathping shows which hop on the route loses packetsMeasures packet loss at every router between your PC and a destination.28 Nov 2026 - Tip
powercfg /requestspowercfg /requests shows what keeps Windows awakeLists the programs and drivers that stop Windows from sleeping or turning off the display.28 Nov 2026 - Tip
powercfg /lastwakepowercfg /lastwake shows what woke your PCShows what woke the PC from sleep and which devices are allowed to wake it.28 Nov 2026 - Tip
fwupdmgr securityfwupdmgr security gives your firmware a Host Security IDRates the firmware protections of a Linux machine from HSI:0 to HSI:5 and explains each failed test.28 Nov 2026 - Tip
mokutil --sb-statemokutil --sb-state tells you if Secure Boot is onShows whether UEFI Secure Boot is switched on for the running system.28 Nov 2026 - Tip
clamscan -r -i /mnt/user/shareclamscan -r -i scans a folder and prints only the infected filesScans a folder recursively with ClamAV and lists only the infected files.28 Nov 2026 - Tip
Get-Process | Out-GridView -PassThru | Stop-ProcessOut-GridView -PassThru lets you pick rows in a window and pipe them onOpens command output in a filterable window and passes the rows you select onward.27 Nov 2026 - Tip
apt -s full-upgradeapt -s runs a simulated install or upgrade and changes nothingShows what an install or upgrade would do without changing the system.24 Nov 2026 - Tip
apt-mark showmanual > packages.txtapt-mark showmanual lists what you installed yourselfPrints the packages you installed on purpose, which makes rebuilds easier.24 Nov 2026 - Tip
apt download htopapt download fetches a .deb without installing itSaves a package as a .deb file in the current directory without installing it.9 May 2026
Shell49
- Tip
zmv -n '(*).log' '$1.txt'zmv -n previews a bulk rename in zsh before it touches a filePreview a pattern-based bulk rename in zsh before running it.3 Dec 2026 - Tip
zoxide query -ls projectzoxide query -ls shows which folders your shell thinks you use mostList the folders zoxide remembers, with scores, to understand its jumps.3 Dec 2026 - Tip
eval "$(fzf --bash)"Fzf Alt-C jumps into any subdirectory with a fuzzy searchUse fzf's Alt-C binding to change directory with fuzzy search.3 Dec 2026 - Tip
nmap -p 22,80,443 -oG scan.gnmap 192.0.2.0/24nmap -oG writes one line per host that grep can searchSaves scan results as one line per host, so grep and cut can pick out open ports.3 Dec 2026 - Tip
LocalCommand echo "%r@%h %n" >>> ~/.ssh/connections.logSsh LocalCommand runs a command on your own machine after you connectRuns a local command right after ssh connects, with tokens such as the remote hostname.3 Dec 2026 - Tip
sudo rpi-imager --cli --sha256 <hash> raspios.img.xz /dev/sdbrpi-imager --cli --sha256 checks the image hash before it writes the cardWrites a Raspberry Pi image from the terminal, and refuses it if the SHA-256 hash does not match.3 Dec 2026 - Tip
sudo hdparm -I /dev/sdaHdparm -I reads the identify data straight from a driveAsks the drive itself for detailed identification and feature data, not the kernel's boot-time copy.2 Dec 2026 - Tip
sudo dmidecode -s bios-versionDmidecode -s prints one hardware value, like the BIOS versionPrints a single DMI string such as BIOS version or product name, handy in scripts.2 Dec 2026 - Tip
mcRun mc in the Unraid web terminal for a two-pane file managerStarts the built-in Midnight Commander to browse and copy files between shares and disks from the terminal.2 Dec 2026 - Tip
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000039,"HIDKeyboardModifierMappingDst":0x700000029}]}'hidutil remaps Caps Lock to Escape without installing anythingRemaps a key on the Mac keyboard from Terminal, until the next restart.2 Dec 2026 - Tip
sudo -E -u www-data php occ user:reportOcc user:report counts your Nextcloud users per backendPrints a small table with total, active and disabled accounts, split by user backend.2 Dec 2026 - Tip
sudo -E -u www-data php occ config:system:get trusted_domainsOcc config:system:set trusted_domains 2 changes one entry of the listArray settings in config.php are set with an index. Without it you overwrite the wrong thing.2 Dec 2026 - Tip
sudo -E -u www-data php occ app:update --showonlyOcc app:update --showonly lists Nextcloud app updates without installing themA dry run for app updates: see what is available before you update one app or all of them.2 Dec 2026 - Tip
sudo apt install hyperfineHyperfine compares the performance of two commands properlyBenchmark two ways of doing something with repeated, comparable runs.1 Dec 2026 - Tip
grep -vxFf allowed.txt users.txtgrep -vxFf shows which lines of one list are missing from anotherCompare two lists without sorting them first, line for line and exact.30 Nov 2026 - Tip
diff -y -W 100 old.conf new.confdiff -y shows two files side by side in the terminalPuts two versions next to each other in columns, which is easier to read for short config files.30 Nov 2026 - Tip
sudo apt-get -d -y full-upgradeapt-get -d upgrade downloads everything first, so the real upgrade is quickFetches all upgrade packages ahead of time without installing anything.30 Nov 2026 - Tip
head -n 3 config.env | od -cOd -c shows every byte of a line, including the ones your terminal hidesFind the stray carriage return, tab or odd byte that breaks a script or config.30 Nov 2026 - Tip
sudo apt-get -s install chrony systemd-timesyncd-A minus after a package name lets apt-get install and remove in one goSwaps one package for another in a single apt transaction.30 Nov 2026 - Tip
sudo apt-mark auto build-essential libssl-devapt-mark auto lets apt autoremove clean up packages you no longer needMarks packages as dependencies so autoremove can remove them when nothing needs them.30 Nov 2026 - Tip
sudo dpkg-reconfigure tzdatadpkg-reconfigure asks a package's apt install questions againReruns the setup questions of an installed package, like time zone or locale.30 Nov 2026 - Tip
sudo usermod -G users aliceUsermod -G without -a wipes a user's other group permissionsShows why adding a group always needs the append flag.30 Nov 2026 - Tip
awk -F: '($3 == 0) {print $1}' /etc/passwdOne awk line finds every account with UID 0, a security check worth a cron jobLists every account in /etc/passwd that has root's user ID.30 Nov 2026 - Tip
sudo pwck -rPwck -r checks passwd and shadow for broken entries, a read-only security checkChecks the account files for broken lines without changing a thing.30 Nov 2026 - Tip
sudo visudo -f /etc/sudoers.d/iologSudoreplay plays back sudo sessions recorded with log_output, a security review toolRecords the terminal output of sudo sessions so you can replay them later.30 Nov 2026 - Tip
sudo passwd -S -aPasswd -S -a shows the password state of every account, a quick security overviewPrints for each account whether its password is set, locked or empty.30 Nov 2026 - Tip
grep -L 'Restart=' /etc/systemd/system/*.servicegrep -L lists the files that do not contain a patternFind the config files where a setting is missing, not the ones where it is set.30 Nov 2026 - Tip
mklink /J "C:\Games\SaveData" "D:\Storage\SaveData"mklink /J makes a folder show up in a second placeCreates a directory junction so a folder appears under a second path.28 Nov 2026 - Tip
Select-String -Pattern 'example.com' -List |Select-String -List names the files that contain a wordLists only the files in a folder tree whose text contains a pattern.28 Nov 2026 - Tip
Start-Process -FilePath "powershell" -Verb RunAsStart-Process -Verb RunAs opens an elevated program from PowerShellStarts one program with administrator rights from a normal PowerShell window.28 Nov 2026 - Tip
where /r C:\Users\Public *.logwhere /r finds a file by name from the command promptFinds files by name under a folder, or shows which copy of a program is on your PATH.28 Nov 2026 - Tip
sudo faillock --user aliceFaillock shows failed logins and clears a locked accountShows the failed logins of a user and clears the records that lock the account.28 Nov 2026 - Tip
sudo visudo -c && echo sudoers okVisudo -c checks your sudoers files for syntax errorsChecks sudoers and its included files for syntax errors and returns an exit code.28 Nov 2026 - Tip
sudo du -xh -d1 / | sort -hdu -x stays on one filesystem so a mounted disk does not skew the totalTotals folder sizes without crossing into other mounted filesystems.28 Nov 2026 - Tip
powerdownpowerdown stops the array and shuts Unraid down safely from the terminalStops the Unraid array and powers the server off from the terminal, the same safe way as the WebGUI.28 Nov 2026 - Tip
curl -s "https://api.pwnedpasswords.com/range/${H:0:5}" | grep -i "${H:5:35}"Check a password against Pwned Passwords with curl and five hash charactersChecks whether a password is in known breaches by sending only 5 characters of its SHA-1 hash.28 Nov 2026 - Tip
username=youruserMount an SMB share from the Unraid terminal with a credentials fileMounts a Windows or Linux network share on the Unraid server using a protected credentials file.28 Nov 2026 - Tip
sudo aa-statusaa-status shows which processes AppArmor confinesLists the loaded AppArmor profiles, their modes and how many running processes are confined.28 Nov 2026 - Tip
sudo systemctl reload-or-restart nginx.serviceSystemctl reload-or-restart reloads a service when it can and restarts when it cannotReloads a service when it supports reloading and does a full restart when it does not.28 Nov 2026 - Tip
sudo usermod -s /usr/sbin/nologin svc-backupGive service accounts the nologin shell so nobody can log in as themSets an account shell to nologin so that service users refuse interactive logins.28 Nov 2026 - Tip
sudo systemctl kill --signal=SIGHUP --kill-whom=main nginx.serviceSystemctl kill --signal sends a signal to a service's processesSends a chosen signal to the main or all processes of a unit without looking up a PID.28 Nov 2026 - Tip
Set-PSReadLineOption -PredictionViewStyle ListViewPress F2 in PowerShell to see command predictions as a listShows PowerShell's history-based command suggestions as a pick list instead of grey text.27 Nov 2026 - Tip
dpkg -L nginx-common | grep etcdpkg -L lists every file an apt package put on your systemLists all the files that an installed package has put on disk.24 Nov 2026 - Tip
sudo apt install apt-fileapt-file search finds the apt package that ships a missing fileFinds which package provides a file, even when that package is not installed.24 Nov 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
echo '[{"n":"a","up":true},{"n":"b","up":false}]' | jq -r '.[] | select(.up) | .n'Jq select() filters JSON in the terminal by a field valueKeeps only the JSON items that match a condition and prints one field.12 Jun 2026 - Tip
sudo netplan set ethernets.enp3s0.dhcp4=falseNetplan set changes one YAML key from the command lineWrites one key to the netplan configuration without opening an editor.12 May 2026 - Tip
sudo netplan getNetplan get prints the merged configuration from all YAML filesShows the final merged netplan configuration, or a single part of it.12 May 2026 - Tip
sudo ufw --dry-run allow 8080/tcpUfw --dry-run prints the rules it would add without applying themShows what a ufw command would change without making the change.11 May 2026
Docker29
- Tip
yamllint -d relaxed docker-compose.ymlyamllint -d relaxed keeps the style nagging down on an existing fileSwitch yamllint to a more forgiving preset so real YAML errors stand out.3 Dec 2026 - Tip
docker import /path/to/exampleimage.tgzdocker import creates an image from a tarball of a filesystemBuilds a fresh image from a root filesystem archive, from a file, a URL or stdin.3 Dec 2026 - Tip
docker compose eventsdocker compose events streams what happens to the containers of a projectShows create, start and die events of the project's containers live, optionally as JSON.3 Dec 2026 - Tip
docker build -t myimage:latest - <<EOFdocker build can read the Dockerfile from stdinBuilds an image from a Dockerfile passed through a pipe or a here-document, with or without a context.3 Dec 2026 - Tip
docker stack config -c docker-compose.yml -c docker-compose.prod.ymldocker stack config prints the merged and interpolated stack fileOutputs the final Compose file after merging and variable substitution, before you deploy it to a swarm.3 Dec 2026 - Tip
docker swarm join-token workerdocker swarm join-token prints, and rotates, the secret for new nodesShows the command to add a worker or manager node to a swarm, and can replace the token.3 Dec 2026 - Tip
docker build --progress=plain -t myimage .docker build --progress=plain shows the full output of every build stepSwitches the build output from the redrawing view to plain text that you can scroll and copy.3 Dec 2026 - Tip
docker attach mc-serverLeave docker attach with Ctrl+P Ctrl+Q, not Ctrl+CDetach from a container's console without stopping the process inside it.30 Nov 2026 - Tip
docker compose --dry-run up -dA Docker Compose dry run shows what a command would create or removePreview which containers and networks a Compose command would create, stop or remove.30 Nov 2026 - Tip
docker create --name tmp nginx:alpinedocker create plus docker cp pulls a file out of an image without running itCopy a default config file out of an image without starting the app.30 Nov 2026 - Tip
docker ps --filter label=com.docker.compose.project=media \Filter docker ps on Compose labels to see one project's containersUse the labels Compose adds to find containers by project or service anywhere.30 Nov 2026 - Tip
docker image ls --filter 'reference=nginx'Filter docker image ls by name pattern to find one family of imagesList only the images whose name or tag matches a pattern.30 Nov 2026 - Tip
docker ps --no-trunc --format 'table {{.Names}}\t{{.Command}}'docker ps with no-trunc shows the full command a container runsSee the complete start command and full IDs that docker ps normally cuts off.30 Nov 2026 - Tip
sudo gpasswd -d alice dockerGpasswd -d removes a user from one group and leaves the rest of their permissions aloneTakes one user out of one group without touching other memberships.30 Nov 2026 - Tip
docker inspect --format '{{range $k, $v := .NetworkSettings.Networks}}{{$k}}={{$v.IPAddress}} {{end}}' myappOne docker inspect template prints the IP of a container on each networkGet a container's IP addresses per network without scrolling through JSON.30 Nov 2026 - Tip
docker image inspect --format '{{json .Config.ExposedPorts}}' nginx:alpinedocker image inspect shows ports, user and variables before you run an imageRead an image's default ports, user, environment and stop signal without starting it.30 Nov 2026 - Tip
docker buildx build \docker buildx builds one image for both Intel and ARM machinesBuild and push an image that runs natively on amd64 and arm64.30 Nov 2026 - Tip
docker compose exec --index 2 worker shdocker compose exec with index picks one container of a scaled serviceOpen a shell in the second or third copy of a scaled Compose service.30 Nov 2026 - Tip
docker pause my-appdocker pause freezes a container without stopping itSuspends every process in a container in place, until you unpause it.28 Nov 2026 - Tip
docker kill --signal=HUP my-proxydocker kill --signal=HUP sends a reload signal instead of killingSends any signal, such as HUP, to a container's main process without stopping the container.28 Nov 2026 - Tip
DB_HOST=192.168.1.10Docker run --env-file loads environment variables from a fileReads container environment variables from a file instead of a long row of -e flags.28 Nov 2026 - Tip
docker exec -it -u 1000:1000 -w /config mycontainer ls -ldocker exec -u and -w run a command as another user in another folderRuns a command inside a running container as a chosen user and from a chosen folder.28 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 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
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 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
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
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
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
AI29
- Tip
/focus/focus hides the tool noise and shows only the answer in Claude CodeCollapses a Claude Code turn to your prompt, a one-line tool summary and the final response.3 Dec 2026 - Tip
claude auth status --textclaude auth status --text tells you when your Claude Code login endsShows which login Claude Code uses and, on recent versions, when a claude.ai sign-in expires.3 Dec 2026 - Tip
claude mcp login sentryclaude mcp login signs in to an MCP server from your shell, even over SSHRuns an MCP server's OAuth sign-in from the shell and prints the URL when no browser is available.3 Dec 2026 - Tip
Why does @src/auth/session.ts refresh the token twice?Type @ in Claude Code to point at a file instead of describing itAutocompletes file paths in your prompt so Claude looks at exactly the file you mean.30 Nov 2026 - Tip
/plan fix the login redirect bug when the session cookie has expired/plan fix the bug starts plan mode and the task in one goSwitches to plan mode with a task attached, so nothing gets edited before you agree.30 Nov 2026 - Tip
/config verbose=true/config key=value changes a setting in one lineSets a session setting straight from the prompt instead of through the settings panel.30 Nov 2026 - Tip
Ctrl+VPaste a screenshot into Claude Code with Ctrl+V, not Cmd+VPuts an image from the clipboard into your Claude Code prompt as a numbered chip.30 Nov 2026 - Tip
/cd ../api-server/cd moves a Claude Code session to another folder and keeps the conversationSwitches the session's working directory and loads that project's settings, without starting over.30 Nov 2026 - Tip
claude --resume auth-refactor --fork-sessionclaude with fork-session resumes a Claude Code session as a copyContinues from an old conversation under a new session ID, so the original stays untouched.30 Nov 2026 - Tip
"env": {The env block in Claude Code settings sets variables for every sessionPuts environment variables in settings.json so every Claude Code session and its commands get them.30 Nov 2026 - Tip
Ctrl+BCtrl+B sends a slow command in Claude Code to the backgroundMoves a long-running shell command out of the way so you and Claude can keep working.30 Nov 2026 - Tip
"language": "dutch"The language setting makes Claude Code answer in your own languageTells Claude Code to always reply in a language you choose, in every session.30 Nov 2026 - Tip
"spinnerTipsEnabled": falseTurn off Claude Code spinner tips, and learn which settings file winsHides the hints under the spinner and shows how user, project and local settings stack.30 Nov 2026 - Tip
claude --append-system-prompt-file ./extra-rules.txtclaude --append-system-prompt-file adds your own rules to the default promptAdds text from a file to the end of Claude Code's default system prompt for one session.28 Nov 2026 - Tip
claude --settings '{"model": "claude-opus-5-5"}'claude --settings overrides settings for one session with inline JSONOverrides Claude Code settings for a single session with a JSON file or an inline JSON string.28 Nov 2026 - Tip
claude --strict-mcp-config --mcp-config ./only-this.jsonclaude --strict-mcp-config --mcp-config loads only the MCP servers you nameStarts Claude Code with only the MCP servers from the file you pass, skipping all others.28 Nov 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
/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
/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
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
- 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
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
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
Git25
- Tip
winget show --id Git.Gitwinget show prints a package's details before you install itRead a package's publisher, licence and versions before installing it.3 Dec 2026 - Tip
gh pr diff 123 --exclude '*.lock'gh pr diff --exclude hides lockfiles and generated files from a pull request diffPrints a pull request's diff in the terminal and leaves out files that match a glob.3 Dec 2026 - Tip
gh issue develop 123 --checkoutgh issue develop creates a branch that GitHub links to the issueCreates a branch for an issue on GitHub, linked to the issue, and can check it out locally.3 Dec 2026 - Tip
gh run view 12345 --log-failedgh run view --log-failed prints only the log of the steps that failedShows the log of failed workflow steps in your terminal, without opening the whole run.3 Dec 2026 - Tip
gh secret set -f .envgh secret set -f loads several repository secrets from a dotenv fileSets GitHub Actions secrets from the terminal, one by one or all at once from a .env file.3 Dec 2026 - Tip
git rev-parse --show-toplevelgit rev-parse --show-toplevel prints the root folder of your repositoryPrints the absolute path of the top folder of the current Git repository, from any subfolder.2 Dec 2026 - Tip
git ls-files --others --exclude-standardgit ls-files --others --exclude-standard lists untracked files, one per linePrints only the new files Git doesn't track yet, skipping everything in .gitignore, as plain paths.2 Dec 2026 - Tip
git difftool --dir-diffgit difftool --dir-diff opens all changed files in one diff windowOpens your visual diff tool once with two folders to compare, instead of once per changed file.2 Dec 2026 - Tip
git merge-base --is-ancestor main featgit merge-base --is-ancestor tells a script if one commit is already in anotherAnswers yes or no through the exit code whether a commit is part of another commit's history.2 Dec 2026 - Tip
git config --get-regexp '^user\.'git config --get-regexp finds settings by a pattern in the keyLists every Git setting whose name matches a pattern, with its value.2 Dec 2026 - Tip
git ls-tree -r --name-only maingit ls-tree -r --name-only lists the files in any commit without checking it outLists every file in a commit or branch as plain paths, without touching your working folder.2 Dec 2026 - Tip
git show-ref --verify --quiet refs/heads/featuregit show-ref --verify --quiet checks if a branch or tag existsTells a script by exit code whether a branch or tag with an exact name exists.2 Dec 2026 - Tip
gh pr checks --watch --fail-fastgh pr checks can watch a pull request and stop at the first failing checkWatches the checks of a pull request and quits as soon as one fails.30 Nov 2026 - Tip
gh alias set mine 'pr list --author @me'gh alias set turns a long gh command into a short wordSaves your favourite gh commands as short aliases, with arguments.30 Nov 2026 - Tip
gh run watch --exit-statusgh run watch with an exit status waits for a workflow and fails when it failsFollows a running Actions workflow in the terminal and returns its result.30 Nov 2026 - Tip
gh release download -R cli/cli --pattern '*linux_amd64.tar.gz' -D /tmp/ghgh release download with a pattern grabs only the release file you needDownloads only the matching assets of a release, without the browser.30 Nov 2026 - Tip
gh pr create --fillgh pr create can fill in the pull request from your commit messagesCreates a pull request from the terminal, taking title and body from your commits.30 Nov 2026 - Tip
gh browse src/app.py:42gh browse file.go:42 opens that exact line in your browserJumps from the terminal to a file, line, issue or settings page of the repository.30 Nov 2026 - Tip
gh run rerun 1234567890 --failedgh run rerun can retry only the jobs that failedReruns the failed jobs of a workflow run instead of the whole run.30 Nov 2026 - Tip
gh api repos/{owner}/{repo}/issues --paginate --jq '.[] | "\(.number)\t\(.title)"'gh api with jq and pagination pulls every page of results in one commandCalls any API endpoint with your login and pulls out just the fields you need.30 Nov 2026 - Tip
git diff --diff-algorithm=histogramDiff.algorithm histogram for diffs that read betterSwitches Git's diff algorithm so moved or repetitive code can show up as cleaner hunks.28 Nov 2026 - Tip
git branch --merged maingit branch --merged to find branches you can deleteLists local branches already merged into main so you can delete them safely.28 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 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
/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
Network20
- Tip
wget --limit-rate=2m https://example.com/big-file.isowget --limit-rate keeps a big download from eating all your bandwidthCap the speed of a wget download so the rest of the network stays usable.3 Dec 2026 - Tip
wget --spider https://example.com/file.zipwget --spider checks that a URL exists without downloading itCheck if a URL or a list of links still works, without fetching the content.3 Dec 2026 - Tip
yt-dlp --download-archive archive.txt "https://www.youtube.com/playlist?list=PLAYLIST_ID"yt-dlp --download-archive skips videos you already downloadedRemembers which videos were downloaded so a re-run only fetches new ones.3 Dec 2026 - Tip
caddy fmt --diff Caddyfilecaddy fmt --diff shows what a Caddyfile cleanup would changeCompares a Caddyfile with its formatted version and shows the differences, without touching the file.3 Dec 2026 - Tip
bridge fdb show br br0bridge fdb show lists which MAC address sits behind which bridge portPrints the forwarding table of a Linux bridge, so you can see where a MAC address lives.3 Dec 2026 - Tip
curl --trace-ascii - https://example.com/curl --trace-ascii dumps all sent and received data as readable textWrites a readable log of everything curl sends and receives, headers and body included.3 Dec 2026 - Tip
rclone copyurl https://example.com/files/big.iso remote:isos -arclone copyurl downloads a URL straight to a remoteCopies the content of a web URL directly to a remote without saving a temporary file.2 Dec 2026 - Tip
curl.exe -I https://example.comType curl.exe in Windows PowerShell 5.1 to get the real toolAvoid the alias that turns curl into Invoke-WebRequest and breaks copied commands.30 Nov 2026 - Tip
curl dict://dict.org/d:latencycurl dict:// looks up a word in an online dictionaryQuery a DICT server for word definitions straight from the terminal.30 Nov 2026 - Tip
apt show nginxapt show tells you what a package is before you install itPrints a package's description, size, dependencies and source repository.30 Nov 2026 - Tip
sed '0,/^port=/s//port=8081 #/' app.confsed '0,/old/s//new/' changes only the first match in a whole fileReplace the first occurrence in a file and leave every later one alone.30 Nov 2026 - Tip
dig +noall +answer example.com A example.org MX example.net NSdig takes several names and types on one command lineAsk for A, MX, NS and other records of several names in a single dig call.30 Nov 2026 - Tip
google-chrome --headless --screenshot --window-size=1280,1696 https://example.comChrome --headless --screenshot takes a screenshot of a page from the command lineSaves a PNG of a web page from the terminal, with no browser window.28 Nov 2026 - Tip
google-chrome --headless --dump-dom https://example.comChrome --headless --dump-dom prints the HTML after the JavaScript has runPrints the page's HTML as it looks after JavaScript has run.28 Nov 2026 - Tip
echo '+noall +answer' > ~/.digrc~/.digrc stores the dig options you always typeKeeps your favourite dig options in a dotfile that is read on every run.24 Nov 2026 - Tip
dig +multiline SOA example.comdig +multiline explains the fields of an SOA recordPrints SOA and key records over several lines with a label per field.24 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 TXT example.comdig TXT reads SPF, DKIM and DMARC records straight from DNSLooks up SPF, DKIM and DMARC settings, which are stored as TXT records.9 May 2026 - Tip
dig -f names.txt +noall +answerdig -f reads a whole list of names from a fileRuns many DNS lookups from one file in a single dig call.7 May 2026 - Tip
wp site list --fields=blog_id,url,registered --format=tablewp site list shows every site of a wordpress multisite networkPrints the sites of a multisite network, either as a table or as plain URLs for scripts.31 Mar 2026
Storage18
- Tip
hexdump -C -s 512 -n 64 disk.imghexdump -s and -n look at just a slice of a big fileShow only a chosen slice of a file in hex instead of the entire thing.3 Dec 2026 - Tip
xxhsum -H64 backup.tar > backup.xxhxxhsum is a very fast checksum for spotting changed files, not for securityQuickly detect a changed or damaged file with a very fast, non-cryptographic hash.3 Dec 2026 - Tip
restic snapshots --group-by host,pathsrestic snapshots --group-by sorts snapshots per host and pathShow restic snapshots grouped by host, path or tag.3 Dec 2026 - Tip
lsscsi -slsscsi -s lists your disks with their sizesLists SCSI-layer devices such as disks with capacity, in one line each.2 Dec 2026 - Tip
mysqldump --routines --events mydb > mydb.sqlmysqldump --routines --events keeps stored code in your backupAdds stored procedures, functions and scheduled events to a mysqldump backup.2 Dec 2026 - Tip
restic find "*.txt"restic find shows which snapshots contain a fileSearches the snapshots of a restic repository for files that match a pattern.2 Dec 2026 - Tip
restic statsrestic stats --mode shows how big your repository really isCounts the data in a restic repository in four modes, from restore size to raw blobs.2 Dec 2026 - Tip
tmutil verifychecksums /path/to/backup-itemtmutil verifychecksums checks a backup against the checksums saved at backup timeCompares backup data with the checksums Time Machine recorded when it was written.2 Dec 2026 - Tip
rclone size remote:photosrclone size tells you how much a remote folder holdsPrints the total size and number of objects at a remote path, optionally as JSON.2 Dec 2026 - Tip
rsync --partial --progress big-file.iso nas:/isos/rsync --partial keeps a half-copied file so the next run can continueKeeps partially transferred files after an interruption instead of deleting them.2 Dec 2026 - Tip
zipgrep db_host backup.zipzipgrep searches the text inside a zip without unpacking itFind which file in an archive mentions a word, without extracting anything.1 Dec 2026 - Tip
shutdown /s /t 3600 /c "Backup should be done by now"shutdown /s /t turns off a Windows PC later, and /a calls it offSet a delayed shutdown for Windows and cancel it if you change your mind.1 Dec 2026 - Tip
diskutil verifyVolume /Volumes/Backupdiskutil verifyVolume checks a Mac volume without repairing anythingCheck a volume's file system for errors from Terminal before you decide on a repair.30 Nov 2026 - Tip
sed -n '/BEGIN backup/,/END backup/p' /var/log/app.logsed -n '/start/,/end/p' prints the block between two lines on LinuxPull one section out of a config or log, from a start line to an end line.30 Nov 2026 - Tip
df -h --output=source,fstype,size,used,avail,pcent,targetdf --output picks exactly the columns you want, including inode usagePrints only the columns of df that you list, such as mount point, percentage and inode use.28 Nov 2026 - Tip
du -h -d1 --time --time-style=long-iso ~/Downloads | sort -hdu --time shows when each folder was last touchedAdds the date of the latest change to each folder in a du listing.28 Nov 2026 - Tip
dpkg -S /usr/bin/digdpkg -S finds the apt package that owns a file on diskTells you which installed package a given file belongs to.24 Nov 2026 - Tip
crontab -l > ~/crontab.backupcrontab -r deletes every cron job without asking, so run crontab -l firstSaves your crontab to a file and makes crontab ask before it removes everything.1 May 2026
Mac12
- Tip
tmutil isexcluded ~/Projects/app/node_modulestmutil isexcluded tells you if Time Machine skips a file or folderReports whether a file, folder or volume is excluded from Time Machine backups.2 Dec 2026 - Tip
avconvert -s clip.mov -o clip-720.m4v -p Preset1280x720Make a smaller copy of a media file with avconvert on your MacRe-encodes a large video to 720p with a tool that ships with macOS.1 Dec 2026 - Tip
systemextensionsctl listsystemextensionsctl list shows which system extensions run on your MacSee every installed system extension, such as VPN or security agents, and its state.30 Nov 2026 - Tip
sysctl -n machdep.cpu.brand_string hw.memsize hw.ncpusysctl -n machdep.cpu.brand_string names the chip in your MacPrint the chip name, memory size and core count with one short command.30 Nov 2026 - Tip
mdimport -i ~/Documents/Invoicesmdimport asks Spotlight to index one folder again, and shows what it readsRe-index a single folder or test what Spotlight extracts from one file.30 Nov 2026 - Tip
/usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" /Applications/Safari.app/Contents/Info.plistPlistBuddy reads one value from a macOS plist, like an app's versionRead a single key such as an app's version from a property list file.30 Nov 2026 - Tip
csrutil statuscsrutil status shows whether macOS System Integrity Protection is onCheck in one line that System Integrity Protection still guards your Mac.30 Nov 2026 - Tip
ipconfig getifaddr en0ipconfig getifaddr en0 prints just your Mac's IP addressGet the local IP address of one interface as a single line, ready for scripts.30 Nov 2026 - Tip
osascript -e 'id of app "Safari"'osascript -e 'id of app' prints the bundle ID of any Mac appGet an app's bundle identifier for defaults, profiles or scripts in one line.30 Nov 2026 - Tip
dscl . -read /Users/$USER NFSHomeDirectory UserShell UniqueIDdscl . -read shows how macOS stores your user accountRead your account's home folder, shell and user ID straight from the directory.30 Nov 2026 - Tip
Option+P macOSOption+P switches the Claude Code model without losing your promptOpens the model picker in the middle of typing, and your draft stays where it is.30 Nov 2026 - Tip
/usr/bin/log show --last 1h --style compact --predicate 'process == "softwareupdated"'Log show with a time window reads back through the macOS logLook back through recent system log entries for one process instead of streaming.30 Nov 2026
Media8
- Tip
ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 in.mp4ffprobe -select_streams with -show_entries prints just the values you needPrints selected properties of one stream, such as the video width and height, in plain machine-readable form.2 Dec 2026 - Tip
jq -n -c 'limit(3; range(1; 1000000000))'jq limit(n; stream) stops after n results instead of reading everythingTakes only the first few results of a jq generator and quits early.2 Dec 2026 - Tip
jellyfin --nowebclient–nowebclient makes Jellyfin run as a server without its web interfaceOne command line option sets hostwebclient to false, so the server hosts no web client.2 Dec 2026 - Tip
jq -cn --stream 'fromstream(1|truncate_stream(inputs))' big.jsonStream mode reads a huge JSON array without loading it all at onceProcess a file that is too big for a normal jq run.1 Dec 2026 - Tip
ffmpeg -f lavfi -i testsrc2=size=1280x720:rate=30 \Generate a test media file with ffmpeg instead of hunting for footageCreates a short video with picture and tone for trying out settings.1 Dec 2026 - Tip
Get-Item * -Stream Zone.Identifier -ErrorAction SilentlyContinueUnblock-File clears the Windows internet mark on a downloaded scriptRun a downloaded PowerShell script you checked, without loosening the execution policy.1 Dec 2026 - Tip
ffmpeg -i in.mp4 -c copy -movflags +faststart out.mp4ffmpeg -movflags +faststart moves the MP4 index to the front for web playbackRewrites an MP4 so the index is at the start and playback begins before the download ends.28 Nov 2026 - Tip
ffmpeg -ss 00:01:30 -i input.mp4 -frames:v 1 thumbnail.pngPut ffmpeg -ss before -i to jump to a time and grab one frameSeeks to a timestamp before reading the file, then saves a single frame as an image.28 Nov 2026
Web5
- Tip
wp widget list <sidebar-id>wp widget list shows the widgets in a sidebarLists the widgets placed in one sidebar, with their ID and position.2 Dec 2026 - Tip
wp sidebar listwp sidebar list shows the sidebars your theme registersLists the registered sidebars with their IDs, which you need for other widget commands.2 Dec 2026 - Tip
wp taxonomy list --format=csvwp taxonomy list shows every taxonomy your site registersLists registered taxonomies, optionally only those that belong to one post type.2 Dec 2026 - Tip
npm cache verifynpm cache verify checks and tidies npm's download cacheCheck the package cache for damage and clear out unneeded data safely.1 Dec 2026 - Tip
powercfg /energypowercfg /energy writes an HTML report of power problemsObserves an idle PC for a minute and writes an HTML report on power problems.28 Nov 2026
Python2
- Tip
python -m compileall -q src/python -m compileall for a quick syntax check of a whole projectCompiles every Python file in a folder and reports files with syntax errors.28 Nov 2026 - Tip
import argparsePython argparse BooleanOptionalAction adds --flag and --no-flag in one lineGenerates a matching --no-flag for a boolean option, so users can switch defaults off.24 Nov 2026
Security1
Posts1
Nothing matches.