WEBTOOLIST.
STATIC WEB PLATFORM
NO ACCOUNTS / NOTHING TO INSTALL

$ webtoolist --read

CLI One-Liners

Field-tested one-line shell commands for finding files, slicing text, wrangling processes, and quick system checks.

library CLI & Shell Library category Reference

Finding things

find . -name "*.log" -mtime +7 -delete            # delete logs older than 7 days
find . -type f -size +50M -exec ls -lh {} +       # files over 50 MB
grep -rn "TODO" src/                              # TODOs with line numbers
fd -e ts "hooks"                                  # .ts files matching 'hooks' (fd)

Text processing

sort access.log | uniq -c | sort -rn | head       # top repeated lines with counts
cat app.log | cut -d' ' -f1 | sort -u             # unique first-column values
awk -F, '$3 > 1000' sales.csv                     # rows where 3rd CSV column > 1000
sed -i 's/http:/https:/g' *.conf                  # in-place search and replace
tr '[:upper:]' '[:lower:]' < names.txt            # lowercase a whole file

Files and disk

du -h --max-depth=1 . | sort -h                   # what's eating disk space
rsync -avh --progress src/ /mnt/backup/src/       # resumable copy with progress
ln -s /opt/app/bin/run ~/.local/bin/run           # put a binary on PATH
tar -xzf archive.tar.gz -C /tmp/out               # extract into a chosen dir

Processes and system

lsof -i :3000                                     # who is squatting on port 3000
ps aux --sort=-%mem | head                        # top memory consumers
kill -9 $(lsof -t -i:3000)                        # free port 3000, hard
curl -s ifconfig.me                               # your public IP
df -h /                                           # disk free on the root volume

Networking and APIs

curl -s https://api.example.com/health | jq .     # pretty-print JSON responses
curl -s -o /dev/null -w "%{http_code}" https://example.com   # status code only
curl -H "Authorization: Bearer $TOKEN" -d '{"a":1}' -H "Content-Type: application/json" localhost:8080/api  # POST JSON
dig +short example.com                            # quick DNS lookup

Git and history

git log --oneline -5                              # last 5 commits, one line each
git shortlog -sn                                  # commit count per author
git grep "useState" -- '*.ts*'                    # search only tracked files

Miscellaneous gems

watch -n 2 nvidia-smi                             # re-run a command every 2 s
xargs -I{} cp {} backup/ < file-list.txt          # copy each listed file
command -v python3                                # check a binary exists (scriptable)
diff <(cmd1) <(cmd2)                              # diff two command outputs

Notes

  • The one-liners assume GNU coreutils on Linux; on macOS, brew install gnu-sed findutils coreutils (or use sed -i '' and sort -g) makes most of them work unchanged.
  • Anything with -i (in-place) or -delete is destructive — run it first without the flag to preview.