Guide · 70 tips
Terminal tips and tricks
One command, one result. Each tip below has the command to copy and a link to the full steps: what it shows, what the output means and what to do next. Most only read information, so they are safe to try.
Last updated
Download the cheat sheet (PDF)One page · no sign-up · view or print it
Before you run anything: read the command first. Commands in the PowerShell boxes are for Windows. A few change things on your PC (they say so in their post), and some need an administrator window. Outputs in the posts are examples.
Check your PC
10 tipsBattery, storage, memory, what woke it and what slows it down.
-
Check Your Laptop Battery Health on Windows
Type powercfg /batteryreport in a terminal, open the report it saves, and compare Design Capacity with Full Charge Capacity. A common rule of thumb says a battery below about 80 percent of its design capacity is worn.
Full steps for Check Your Laptop Battery Health on Windows →powercfg /batteryreport
-
Frozen or Black Screen on Windows? Try This First
Press the Windows key, Ctrl, Shift and B together. Windows restarts the graphics driver, the screen flickers, you hear a beep, and your open apps stay open. It often helps with a black or frozen screen, but it cannot fix every freeze.
Full steps for Frozen or Black Screen on Windows? Try This First → -
Find Out What Woke Your PC Up at Night
Run powercfg /lastwake to see the last wake source, read the last five wake-ups from the Power-Troubleshooter event log, and list the devices allowed to wake the PC with powercfg /devicequery wake_armed. A Timer from UpdateOrchestrator means Windows Update.
Full steps for Find Out What Woke Your PC Up at Night →powercfg /lastwake
-
See What a Background Process Is Really Doing
List the top memory users with Get-Process, then run Get-CimInstance Win32_Process with the process ID to see the full command line and the parent process. For svchost, tasklist /svc shows the Windows service inside. A hidden PowerShell is not proof of anything, so read the script first.
Full steps for See What a Background Process Is Really Doing →Get-Process | Sort-Object WS -Descending | Select-Object -First 5 Name, Id, @{n='MB';e={[int]($_.WS/1MB)}} -
See How Many Hours Your SSD Has Been Running
Run Get-PhysicalDisk | Get-StorageReliabilityCounter | Select-Object PowerOnHours, Wear, Temperature, ReadErrorsUncorrected in PowerShell as administrator. Divide PowerOnHours by 24 for days. A new laptop should show a small number.
Full steps for See How Many Hours Your SSD Has Been Running →Get-PhysicalDisk | Select-Object FriendlyName, MediaType, HealthStatus
-
Shut Down Doesn't Fully Restart Your PC
Fast Startup makes Shut Down save the Windows kernel to disk, so uptime keeps counting across shutdowns. Check real uptime with LastBootUpTime and Fast Startup with HiberbootEnabled. Restart, Shift + Shut down, or shutdown /s /t 0 always start fresh.
Full steps for Shut Down Doesn't Fully Restart Your PC →(Get-Date) - (Get-CimInstance Win32_OperatingSystem).LastBootUpTime | select Days, Hours
-
Find Your Laptop's Model and Serial Number
Run Get-CimInstance Win32_ComputerSystemProduct to see the maker, model and serial number (IdentifyingNumber), add Version on Lenovo, and Get-CimInstance Win32_BIOS for the BIOS version and date.
Full steps for Find Your Laptop's Model and Serial Number →Get-CimInstance Win32_ComputerSystemProduct | select Vendor, Name, IdentifyingNumber
-
See What's Really Eating Your RAM
Group Get-Process by name and add up WorkingSet64 for each app to see how many processes and how many MB each app really uses, then check free memory with Win32_OperatingSystem. Turn on Memory Saver in Chrome or Sleeping tabs in Edge.
Full steps for See What's Really Eating Your RAM →Get-Process | group Name | select Name, Count, @{n='MB';e={[int](($_.Group | measure WorkingSet64 -Sum).Sum/1MB)}} | sort MB -Descending | select -First 6 -
Close Every Frozen App at Once on Windows
Run Get-Process filtered on Responding to list frozen apps, then pipe the same list to Stop-Process -Force to close them all. Restart a frozen taskbar with Stop-Process -Name explorer, or Ctrl+Shift+Esc > Run new task > explorer.
Full steps for Close Every Frozen App at Once on Windows →Get-Process | ? { -not $_.Responding } | select Name, Id -
Find Gigabytes of Junk Hiding in Your Temp Folder
Measure the size of $env:TEMP with Get-ChildItem and Measure-Object, preview the cleanup with -WhatIf, then delete only files older than seven days. Files in use are skipped. Old Windows Update files are in Settings > System > Storage > Temporary files.
Full steps for Find Gigabytes of Junk Hiding in Your Temp Folder →'{0:N1} GB' -f ((dir $env:TEMP -Recurse -File -ErrorAction SilentlyContinue | measure Length -Sum).Sum / 1GB)
Security and privacy
14 tipsIs something on your PC that should not be? Read-only checks first.
-
See Which Apps Are Using the Internet on Windows
Run netstat -nb in a terminal opened as administrator. The app name appears in square brackets under each connection. Not every strange name is a virus, so search the name before you delete anything.
Full steps for See Which Apps Are Using the Internet on Windows →netstat -nb
-
See Where a Short Link Goes Before You Click
Open a terminal and run curl.exe -sI followed by the link (on a Mac, just curl -sI). The Location line is where the link sends you. Add a capital L, as in -sIL, to see every address it bounces through. Read the domain carefully before you open anything.
Full steps for See Where a Short Link Goes Before You Click →curl.exe -sI https://bit.ly/YOUR-LINK
-
Check If Your Antivirus Has a Blind Spot (Windows)
Run Get-MpPreference | Select-Object ExclusionPath, ExclusionProcess, ExclusionExtension in PowerShell as administrator to see every folder, program and file type Windows Security skips. Empty is the best result. A folder you never added deserves a closer look.
Full steps for Check If Your Antivirus Has a Blind Spot (Windows) →Get-MpPreference | Select-Object ExclusionPath, ExclusionProcess, ExclusionExtension
-
Check If Your PC Is Redirecting Websites (Windows)
Your PC checks the hosts file first, then any proxy, then your DNS server. Print the non-comment lines of the hosts file, read the proxy settings from the registry and list your DNS servers with Get-DnsClientServerAddress. Empty hosts and a proxy of 0 are normal.
Full steps for Check If Your PC Is Redirecting Websites (Windows) →Get-Content C:\Windows\System32\drivers\etc\hosts | Select-String -NotMatch '^\s*(#|$)'
-
Find Programs That Run on a Timer on Your PC
Run Get-ScheduledTask | Where-Object TaskPath -notlike '\Microsoft\*' to list the non-Microsoft scheduled tasks, then add the Runs column to see which program each starts. Updaters are normal. An unknown name running from AppData or Temp deserves a closer look.
Full steps for Find Programs That Run on a Timer on Your PC →Get-ScheduledTask | Where-Object TaskPath -notlike '\Microsoft\*' | Select-Object TaskName, @{n='Runs';e={$_.Actions.Execute}} -
See Which Apps Used Your Camera and Microphone
Windows records every desktop app that used your camera or microphone and the last time it did. One PowerShell command reads that list, newest first, and Settings shows the same for browsers and Store apps.
Full steps for See Which Apps Used Your Camera and Microphone → -
Check If Someone Can Remote-Control Your PC
Run Get-Process for AnyDesk, TeamViewer, RustDesk and UltraViewer, check winget list for installed copies, and read fDenyTSConnections to see if Remote Desktop is on. Uninstall anything you did not install and change your passwords from another device.
Full steps for Check If Someone Can Remote-Control Your PC →Get-Process *anydesk*, *teamviewer*, *rustdesk*, *ultraviewer* | select Name, Path
-
Find Programs Running From Strange Folders
Run Get-Process filtered to paths outside Windows and Program Files to see every running program from unusual folders. Apps like Discord and VS Code in AppData are normal; a Windows name such as svchost in the wrong folder is not.
Full steps for Find Programs Running From Strange Folders →Get-Process | ? Path | ? Path -notmatch 'Windows|Program Files' | select Name, Path
-
Check If Your Password Leaked Without Sending It
Hash the password with SHA-1 on your PC, send only the first 5 characters of the hash to the Pwned Passwords service, and compare the returned list on your PC. A number printed means the password is in leaks that many times.
Full steps for Check If Your Password Leaked Without Sending It → -
See Every App Installed on Your PC, Newest First
Read the three Uninstall registry keys with Get-ItemProperty, sort by InstallDate and show the newest ten with their publisher. Remove anything you did not choose with winget uninstall. Store apps are listed in Settings > Apps > Installed apps.
Full steps for See Every App Installed on Your PC, Newest First → -
Check Who Really Made a Program Before You Run It
Run Get-AuthenticodeSignature on the file and read the Status and the signer name. Valid means the signature is genuine, not that the file is safe, so check the company name. HashMismatch means the file was changed after signing.
Full steps for Check Who Really Made a Program Before You Run It →Get-AuthenticodeSignature .\ChromeSetup.exe | select Status, @{n='Signer';e={$_.SignerCertificate.Subject}} -
Is Your PC Actually Protected? Three Quick Checks
Run Get-NetFirewallProfile to see if the firewall is on for each network type, Get-HotFix to see when updates last installed, and Get-MpComputerStatus to see if Microsoft Defender is running and how old its virus definitions are.
Full steps for Is Your PC Actually Protected? Three Quick Checks →Get-NetFirewallProfile | select Name, Enabled
-
See What Every Website Knows About You (VPN Check)
Run curl.exe ipinfo.io to see your public IP address, approximate city and internet company, which every website can see. Run it again with your VPN on; if the city and company stay the same, the VPN is not hiding you.
Full steps for See What Every Website Knows About You (VPN Check) →curl.exe ipinfo.io
-
Make a Truly Random Password in One Line
Fill 18 bytes from .NET's RandomNumberGenerator and convert them to Base64 for a 24-character password. Pipe it to Set-Clipboard to copy it without showing it, save it in a password manager, then clear it from Win+V clipboard history.
Full steps for Make a Truly Random Password in One Line →$b = New-Object byte[] 18; [Security.Cryptography.RandomNumberGenerator]::Create().GetBytes($b); [Convert]::ToBase64String($b)
Wi-Fi and network
5 tipsFind a password, see who is connected, test the speed.
-
How to Find a Saved Wi-Fi Password on Windows
Run netsh wlan show profiles to list the networks your PC has joined, then netsh wlan show profile name="NetworkName" key=clear and read the Key Content line. It only works for networks your own computer has already joined.
Full steps for How to Find a Saved Wi-Fi Password on Windows →netsh wlan show profiles
-
See Every Device Connected to Your Wi-Fi (Windows)
Run arp -a to see the devices your PC has talked to, then ping every address on your network at once with a PowerShell one-liner and run arp -a again to reveal the rest. Only scan networks you own or manage.
Full steps for See Every Device Connected to Your Wi-Fi (Windows) →arp -a
-
Test Your Internet Speed With No App and No Ads
Use curl.exe to download 100 MB from speed.cloudflare.com to NUL, read the speed_download value and convert it to megabits per second. Divide Mbps by 8 for megabytes per second. On a Mac, run networkQuality.
Full steps for Test Your Internet Speed With No App and No Ads →$s = curl.exe -so NUL -w '%{speed_download}' 'https://speed.cloudflare.com/__down?bytes=100000000'; '{0:N1} Mbps' -f ([double]$s * 8 / 1e6) -
Find Out If It's Your Wi-Fi or Your Internet
Find your router address with ipconfig, ping it 20 times, then ping 1.1.1.1 20 times. Loss or high times to the router means a Wi-Fi problem; a clean router ping but loss to 1.1.1.1 means an internet provider problem.
Full steps for Find Out If It's Your Wi-Fi or Your Internet →ipconfig | findstr Gateway
-
Is Your Wi-Fi Slow Because of Your Neighbours?
Run netsh wlan show interfaces to see your signal, band, channel and link speed, then netsh wlan show networks mode=bssid to see every nearby network and its channel. On 2.4 GHz use channel 1, 6 or 11, or move to 5 GHz.
Full steps for Is Your Wi-Fi Slow Because of Your Neighbours? →netsh wlan show interfaces
Files, apps and storage
6 tipsFind what takes space, move your apps, shrink and extract files.
-
Find the Biggest Files Eating Your Storage
Run a PowerShell command that sorts every file in your user folder by size and shows the top 10. It takes a minute to scan. Usually the culprits are old backups, screen recordings and installers you only ran once.
Full steps for Find the Biggest Files Eating Your Storage → -
Move All Your Apps to a New PC With winget
On the old PC, run winget export -o apps.json. Copy apps.json to the new PC and run winget import -i apps.json --ignore-unavailable. It installs every app on the list that winget can find, newest versions first. Files, settings and sign-ins do not move.
Full steps for Move All Your Apps to a New PC With winget →winget export -o apps.json
-
Shrink a Photo Under 50 KB for Any Online Form
Install ImageMagick, make the photo smaller with magick photo.jpg -resize 600x small.jpg, then cap the file size with magick small.jpg -define jpeg:extent=50KB 50kb.jpg. For exact pixels, use -resize 200x230^ -gravity center -extent 200x230. Your photo never leaves your computer.
Full steps for Shrink a Photo Under 50 KB for Any Online Form →magick photo.jpg -resize 600x small.jpg
-
Get Every Picture Out of a Word File
Open a terminal in the folder and run tar -xf report.docx word/media. Every picture in the file appears in a new word\media folder. For PowerPoint use ppt/media, and for Excel use xl/media. It works for .docx, .pptx and .xlsx, not the old .doc.
Full steps for Get Every Picture Out of a Word File →tar -xf report.docx word/media
-
Find Every Duplicate File on Your PC
Open PowerShell in the folder and run dir -Recurse -File | Get-FileHash | group Hash | ? Count -gt 1 | % { $_.Group.Path; "" }. Each block it prints is one set of identical files, even if their names are different. It only lists them; you decide what to delete.
Full steps for Find Every Duplicate File on Your PC →dir -Recurse -File | Get-FileHash | group Hash | ? Count -gt 1 | % { $_.Group.Path; "" } -
Set a Shutdown Timer on Your PC
Open a terminal and type shutdown /s /t 3600 to switch the PC off in one hour (the number is seconds). shutdown /a cancels it. Save your work first, because Windows closes your apps when the timer ends, even ones with unsaved changes.
Full steps for Set a Shutdown Timer on Your PC →shutdown /s /t 3600
Phone, Google and shortcuts
9 tipsNot all terminal: search tricks, phone settings and keys worth knowing.
-
Free Up Google Storage by Deleting Old Big Emails
In the Gmail search bar type larger:10M older_than:2y, look through the results, delete what you do not need, then empty Trash. The space only comes back after Trash is emptied, and Gmail, Drive and Photos share one pool of storage.
Full steps for Free Up Google Storage by Deleting Old Big Emails →larger:10M older_than:2y
-
4 Google Search Tricks That Find What You Want
Use site: to search one website, filetype:pdf for real guides and papers, a minus sign to remove a word, and before: or after: to limit the date. Stack them to get real opinions with fewer ads.
Full steps for 4 Google Search Tricks That Find What You Want →site:reddit.com best budget laptop
-
Find Out Which Website Sold Your Email Address
Gmail ignores anything after a plus sign, so [email protected] still reaches [email protected]. Use a different tag for every website, and if spam arrives addressed to one tag, you know who leaked it. A few websites reject the plus sign.
Full steps for Find Out Which Website Sold Your Email Address → -
Copy Text From a Picture or Screenshot
On Windows 11, press Windows, Shift and S, snip the area, then use Text actions and Copy all text in Snipping Tool. On iPhone, press and hold on the text in a photo. On Android, use Google Lens, tap Text, then Copy. Check what you paste, because text recognition is not perfect.
Full steps for Copy Text From a Picture or Screenshot → -
Turn On Phone Theft Protection (iPhone and Android)
On iPhone, turn on Stolen Device Protection in Settings, Face ID and Passcode (iOS 17.3 or later). On supported Android phones, turn on Theft Detection Lock under Settings, Google, All services, Theft protection. Menu names vary by phone.
Full steps for Turn On Phone Theft Protection (iPhone and Android) → -
Windows Can Remember Your Last 25 Copies
Press the Windows key and V, then click Turn on. Windows then keeps your last 25 copies, and pressing Windows + V again lets you paste any of them. The list clears when you restart, but pinned items stay. Windows + period opens emoji, and on Windows 11 also GIFs and symbols.
Full steps for Windows Can Remember Your Last 25 Copies → -
Control Your Android Phone From Your PC, Free
Install scrcpy with winget install --exact Genymobile.scrcpy, turn on USB debugging on your phone, plug it in, tap Allow, and type scrcpy. Your phone's screen opens in a window on your PC. Add -S to switch the phone's own screen off while you use it. Android only.
Full steps for Control Your Android Phone From Your PC, Free →scrcpy
-
Send Files From PC to Phone, No Cable, No App
Find your PC's address with ipconfig | findstr IPv4, then run python -m http.server -d $HOME\share. On your phone, on the same Wi-Fi, open http://YOUR-ADDRESS:8000 and tap a file to download it. Press Ctrl+C to stop. Anyone on that Wi-Fi can see the folder while it runs.
Full steps for Send Files From PC to Phone, No Cable, No App →ipconfig | findstr IPv4
-
Make Subtitles for Any Video, Free and Offline
Install Python and FFmpeg, run pip install -U openai-whisper, then whisper reel.mp4 --model small --output_format srt. You get reel.srt with timings, ready for YouTube Studio or your video editor. Add --task translate with the medium model to get English subtitles from another language.
Full steps for Make Subtitles for Any Video, Free and Offline →whisper reel.mp4 --model small --output_format srt
Handy and fun tricks
6 tipsCheat sheets, a dictionary, the weather and a Matrix screen, all in the terminal.
-
Get the Weather in Your Windows Terminal
Run curl.exe wttr.in in PowerShell for today's weather as text art. Use curl.exe, not curl, because in Windows PowerShell 5.1 curl is an alias for Invoke-WebRequest. Add a city after the slash, or run curl.exe wttr.in/Moon for the moon phase.
Full steps for Get the Weather in Your Windows Terminal →curl.exe wttr.in
-
Make Your PC Read Any Text Out Loud (PowerShell)
In Windows PowerShell 5.1, load System.Speech and call Speak on a SpeechSynthesizer to hear any text. Use SelectVoice and Rate to change the voice and speed, and SetOutputToWaveFile to save a voice-over. It needs classic PowerShell, not PowerShell 7.
Full steps for Make Your PC Read Any Text Out Loud (PowerShell) →Add-Type -AssemblyName System.Speech; (New-Object System.Speech.Synthesis.SpeechSynthesizer).Speak('Hello. I am your computer.') -
Matrix Rain in Windows PowerShell, No Download
Paste a short while loop into Windows PowerShell 5.1 to scroll rows of random green characters. A longer version remembers each column, pushes rows down and redraws from the top corner so the rain really falls. Ctrl+C stops it, and it only prints characters on your own screen.
Full steps for Matrix Rain in Windows PowerShell, No Download →while(1){Write-Host (-join(1..100|%{if(Get-Random -Max 5){' '}else{[char](Get-Random -Min 33 -Max 127)}})) -Fore Green;sleep -m 40} -
Open Windows God Mode With One Line
Create a folder named GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} on your desktop and it becomes a list of about 200 Control Panel settings. Or press Win+R and open shell:::{ED7BA470-8E54-465E-825C-99712043E01C} without making a folder.
Full steps for Open Windows God Mode With One Line →md "$([Environment]::GetFolderPath('Desktop'))\GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}" -
Get a Cheat Sheet for Any Command in the Terminal
Run curl.exe cheat.sh/tldr:robocopy for a short cheat sheet with examples for any command, or curl.exe cheat.sh/python/reverse+a+list to ask a coding question. Use curl.exe in Windows PowerShell and plus signs for spaces.
Full steps for Get a Cheat Sheet for Any Command in the Terminal →curl.exe cheat.sh/tldr:robocopy
-
A Dictionary in Your Terminal, From 1997
Run curl.exe dict://dict.org/d:word for a definition, m:word to find the right spelling, and d:word:moby-thesaurus for synonyms. show:db lists every dictionary, including translation ones. It uses the DICT protocol from RFC 2229 (1997).
Full steps for A Dictionary in Your Terminal, From 1997 →curl.exe dict://dict.org/d:serendipity
Claude Code tips
20 tipsSlash commands and flags in Claude Code, Anthropic's coding assistant. Needs a paid plan or API access.
-
Control Claude Code From Your Phone (--rc)
Start Claude Code with claude --rc, or type /remote-control inside a session. The work keeps running on your PC while your phone or browser acts as a window into the same session.
Full steps for Control Claude Code From Your Phone (--rc) →claude --rc "My App"
-
Delete Claude Code's Saved Chats (claude purge)
Claude Code stores each project's chats in .claude/projects in your user folder as plain text. Run claude purge . --dry-run to preview what would go, then claude purge . to delete it. Deleting cannot be undone.
Full steps for Delete Claude Code's Saved Chats (claude purge) →dir $env:USERPROFILE\.claude\projects
-
Ask Claude Code a Side Question With /btw
Type /btw followed by a question while Claude Code is working. The answer appears in an overlay, the main task is not interrupted, and neither the question nor the answer enters your conversation.
Full steps for Ask Claude Code a Side Question With /btw →/btw what does parseToken do in auth.js?
-
Make Claude Code Keep Going With /goal
Type /goal followed by a finish line such as all tests pass. After every turn a small model checks the goal, and Claude starts another turn if it is not met. Add or stop after 20 turns as a safety limit.
Full steps for Make Claude Code Keep Going With /goal →/goal all tests in test/auth pass and the lint step is clean
-
Make Claude Code Work While Your Laptop Is Closed
Type /schedule and describe the job in plain English. It runs on Anthropic's cloud on a schedule, so your laptop can be off. It needs a Pro, Max, Team or Enterprise account and runs count against your plan.
Full steps for Make Claude Code Work While Your Laptop Is Closed →/schedule daily PR review at 9am
-
Claude Code's Hidden Lo-Fi Radio (/radio)
Type /radio in Claude Code to open the Claude FM lo-fi radio in your browser. If no browser is available it prints the stream link. /powerup has short interactive lessons with animated demos.
Full steps for Claude Code's Hidden Lo-Fi Radio (/radio) →/radio
-
Get a Claude Code Usage Report With /insights
Type /insights in Claude Code. It reads your recent sessions on this computer, up to 200 new ones per run, and builds an HTML report you open in your browser. The analysis uses your tokens.
Full steps for Get a Claude Code Usage Report With /insights →/insights
-
Run Many Claude Code Agents at Once (--bg)
Add --bg to a claude command to start the job in the background. Type claude agents to see every session on one screen. Each background job gets its own git worktree so two agents never edit the same file.
Full steps for Run Many Claude Code Agents at Once (--bg) →claude --bg "fix the flaky login test"
-
Save Points for Claude Code With /branch and /undo
Type /branch and a name to copy the conversation and experiment. Type /undo, or press Esc twice on an empty prompt, to rewind the code, the chat or both. It only tracks files Claude edited, so keep using git.
Full steps for Save Points for Claude Code With /branch and /undo →/branch try-redis
-
Scan Your Code for Security Bugs With /security-review
Type /security-review in Claude Code before you push. It compares your branch with the main branch and looks for injection, authentication and data exposure problems. It needs a git remote named origin.
Full steps for Scan Your Code for Security Bugs With /security-review →/security-review
-
See What Fills Claude Code's Memory (/context)
Type /context to see your Claude Code context window as a colored grid. Use /compact with instructions to shrink the chat, and /clear between unrelated jobs. Switch off unused connected tools with /mcp.
Full steps for See What Fills Claude Code's Memory (/context) →/context
-
Make Claude Code Repeat a Task With /loop
Type /loop, how often, and what to do, such as /loop 5m check the deploy. Claude runs that prompt again at each interval while the session stays open. It stops when you close the session. For always-on jobs use /schedule.
Full steps for Make Claude Code Repeat a Task With /loop →/loop 5m check the deploy and tell me when it's live
-
5 Hidden Claude Code Keyboard Shortcuts
In Claude Code, Ctrl+G opens your prompt in your text editor, Ctrl+S stashes your draft, Ctrl+R searches past prompts, Alt+P switches model without clearing your prompt, and Ctrl+B sends a running job to the background.
Full steps for 5 Hidden Claude Code Keyboard Shortcuts → -
Put a Spending Limit on Claude Code Scripts
In print mode, add --max-budget-usd with an amount to stop a Claude Code run once its estimated spend reaches it. The cost is estimated on your computer from token counts, can overshoot a little, and is not your bill.
Full steps for Put a Spending Limit on Claude Code Scripts →claude -p --max-budget-usd 5 "update all deprecated API calls"
-
Switch to Claude Code From Codex or Gemini CLI
Run claude import codex --dry-run, or the same with gemini or cursor, to preview what Claude Code can bring over from your other tool. Inside a session the command is /import. Read what it brought before you trust it.
Full steps for Switch to Claude Code From Codex or Gemini CLI →claude import codex --dry-run
-
Fewer Permission Prompts in Claude Code
Type /fewer-permission-prompts. It scans your past sessions for read-only commands you keep approving and adds them to an allow list in your project's .claude/settings.json so Claude stops asking about them.
Full steps for Fewer Permission Prompts in Claude Code →/fewer-permission-prompts
-
Talk to Claude Code With /voice Dictation
Type /voice in Claude Code, then hold the space bar while you speak and let go to put your words in the prompt. /voice tap switches to tap-to-start and tap-to-stop, and /voice off turns it off. It needs a Claude account login.
Full steps for Talk to Claude Code With /voice Dictation →/voice
-
Review a Pull Request With claude -w
Run claude -w "#123" to fetch pull request 123 into a separate git worktree and start Claude Code there, so your own files stay exactly as they are. Keep the quotes, or the shell treats the hash as a comment.
Full steps for Review a Pull Request With claude -w →claude -w "#123"
-
Customize Claude Code's Status Bar (/statusline)
Type /statusline followed by what you want to see, such as git branch, model and context percent. Claude writes the script and sets it up. Run it with nothing after it to build one from your shell prompt. Cost shown is an estimate.
Full steps for Customize Claude Code's Status Bar (/statusline) →/statusline show git branch, model and context percent
-
Clean Up Your Code With Claude Code /simplify
Type /simplify in Claude Code. Four review agents look at the code you changed for reuse, simplification, efficiency and design level, then apply the fixes. It does not look for bugs. Use /diff to see what changed.
Full steps for Clean Up Your Code With Claude Code /simplify →/simplify
No tip matches that search. Try a shorter word, like wifi or battery.
Questions, answered
Are these commands safe to run?
Most only read information, such as battery health, open connections or startup tasks. A few change things: the shutdown timer, closing frozen apps, cleaning the Temp folder and moving files. Each post says which kind it is. Read a command before you run it and never paste one you do not understand.
Do I need to run the terminal as administrator?
Only for some, such as netstat -nb, drive health and Microsoft Defender settings. The post for each tip says when. Everything else runs in a normal PowerShell or Terminal window.
Do these work on a Mac?
The Windows tips use PowerShell and Windows tools, so they do not run on a Mac. Where a Mac command exists, the post lists it in an "On a Mac" section. Those Mac commands come from Apple's documentation and have not been run on a Mac by us. The Claude Code tips work on Windows, Mac and Linux.
Why do the outputs in the posts look different from mine?
The outputs shown are examples with made-up names, addresses and numbers. Yours will be longer and will show your own apps and devices. Never post a real output that contains your IP address, Wi-Fi name or serial number.