Tech & AIrelated: r/commandline

Learn the terminal with small real tasks

Rename a hundred files in one line and feel a little bit dangerous.

time
forty minutes
cost
free
effort
some effort
where
at your desk

what it is

  • Most people learn the shell from tutorials and forget it.
  • Learning it on one real annoyance at a time sticks.
  • Five commands cover most daily jobs: find, grep, mv, sed and a for loop.

how it goes

  1. Open a terminal (WSL on Windows) and cd into a messy folder like Downloads.
  2. Use ls and find to list every PDF older than 30 days with find . -name "*.pdf" -mtime +30.
  3. Write one loop that renames or moves those files into a folder.
  4. Save it as a .sh script and run it again next week.

why try it

It is often said that the first useful one liner is what made it click, not the tutorials.

More in Tech & AI, or pick a niche.