Unix File Operation Commands

Common Unix commands for file and directory operations: ls, find, grep, awk, sed, and tar with examples and usage notes.

The data

Commands

CommandDescriptionExample
lsList directory contentsls -la /home
findSearch for files in directory hierarchyfind . -name "*.php"
grepSearch text using patternsgrep -r "function" src/
awkPattern scanning and processing languageawk '{print $1}' file.txt
sedStream editor for filtering and transforming textsed 's/old/new/g' file.txt
tarArchive filestar -czf archive.tar.gz folder/

Fetch the same bytes

The static files are identical to what the API returns, but with no rate limit and no server round trip. Use the API when you want a query and a content type; use the files when you want to cache one document.

curl "https://yjtoon.com/api/dataset/file-operations?format=toon"
const res = await fetch(
  "https://yjtoon.com/static-data/dataset/file-operations.toon"
);
const toon = await res.text();

Rate limit: 120 requests per minute per IP, no key and no signup. API reference →

Topics

  • unix
  • linux
  • commands
  • shell