tips
14 tips Tools
One command, setting or habit at a time about Tools: what it does, the line to copy and a caveat or two.
Files and media 5
-
Shuffle lines, draw a few at random, or pick a random number.
shuf -n 3 films.txt -
Turn a PDF into plain text you can search or paste.
pdftotext -layout invoice.pdf invoice.txt -
Move a link from a terminal session to your phone by scanning it.
qrencode -t ANSIUTF8 'https://example.com/a/long/path?id=12345' -
Prints only the length of a media file in seconds, with no labels around it.
ffprobe -v error -show_entries format=duration -of default=nw=1:nk=1 input.mp4 -
Prints the container format and every stream of a media file, so you see codecs, resolution and duration.
ffprobe -v error -show_format -show_streams video.mkv
Web development 5
-
Indent XML for reading and find where a broken document goes wrong.
xmllint --format feed.xml -
Starts a Node.js script in watch mode, so it restarts by itself each time you save a file it uses.
node --watch index.js -
Installs exactly what the lockfile says, after wiping node_modules, so builds are the same every time.
npm ci -
Shows the top-level dependencies of a project without the long tree of dependencies below them.
npm ls --depth=0 -
Lists installed packages with their current, wanted and latest versions, without changing anything.
npm outdated
Windows 3
-
Lists where a program or file is found on PATH, in the order Windows uses it.
where python -
Writes your installed Windows apps to a JSON file and reinstalls them elsewhere.
winget export -o apps.json -
Generates an HTML report with battery usage over the lifetime of the system.
powercfg /batteryreport
Screenshots and images 1
-
Converts a PNG, JPEG or TIFF image to WebP, with a quality setting from 0 to 100.
cwebp -q 80 photo.jpg -o photo.webp
Nothing in this filter yet.