echo "value is $foo" → value is bar (variable expanded)echo 'value is $foo' → value is $foo (literal)foo=bar — no space around =$PATH — environment variablecd - — go to previous directory/ — root directory~ — home folder. — current folder.. — parent folder/, relative path starts with folder/fileCtrl+L — clear terminalCtrl+R — reverse search history!! — repeat last command; — run commands sequentially&& — run next only if previous succeeded| — pipe output to next command>> — append to file# — root/sudo promptxdg-open file — open with default appulimit -a — show memory limitshtop — process monitortldr — simplified man pageslocate / ripgrep (rg) / fzf / broot / nnn — search & file managersmcd () {
mkdir -p "$1"
cd "$1"
}
source mcd.sh
#!/usr/bin/env python
import sys
for arg in reversed(sys.argv[1:]):
print(arg)
| Key | Action |
|---|---|
i |
Enter insert mode |
Esc |
Exit insert mode |
r |
Replace character |
k |
Move up |
s-v |
Visual line select |
c-v |
Visual block select |
: |
Command mode |
wsl --shutdown
diskpart
select disk file="C:\Users\[USER]\AppData\Local\Docker\wsl\disk\docker_data.vhdx"
compact disk
. on any GitHub repo to open web-based VS Code editorTurn any GitHub repo into readable text for LLMs. Replace “hub” with “ingest” in the URL:
https://github.com/user/repohttps://gitingest.com/user/repoAdd .diff to the end of any PR URL to see raw changes. Paste into ChatGPT/Grok for AI code review:
https://github.com/user/repo/pull/42https://github.com/user/repo/pull/42.diffReplace “hub” with “summarize” in any GitHub URL for AI-powered documentation:
https://github.com/user/repohttps://gitsummarize.com/user/repo