!ls
2022-05-27_how-to-look-at-predictions
2022-05-28_my-first-ai-model
2022-06-03_reading-a-confusion-matrix
2022-06-04_data-matters-more-than-the-model
2022-09-12_detecting-floods-for-disaster-relief
2022-10-04_ai-models-in-a-nutshell
2022-12-23_adding-subscriptions-to-a-quarto-site
2023-01-26_using-m-series-macs-with-pytorch
2023-04-05_converting-audio-to-images
2023-04-13_my-musings-through-stable-diffusion
2023-04-13_stable-diffusion-summarized
2023-04-28_implementing-stable-diffusion-from-its-components
2023-05-23_iterators-and-generators
2023-05-29_unsuccessfully-implementing-diffedit
2023-06-06_einstein-summation-notation-intuitively
2023-06-21_implementing-and-optimizing-meanshift-clustering
2023-08-07_backpropagation-explained-using-english-words
2024-01-24_a-brief-token-on-tokenizers
2024-05-26_implementing-a-neural-network-from-scratch
2024-06-24_what-i-learned-in-my-second-and-third-internships
2025-02-25_how-deepseek-r1-was-trained
2025-06-08_---------文里的一些基本数学术语
2025-07-10_the-state-of-pose-estimation
2025-07-14_current-ideas-in-spatial-understanding
2025-07-25_decomposing-problems-and-working-with-data-will-get-us-working-robots
2025-11-24_llm-agents-are-python-while-loops
2025-12-07_translating-solveit-dialogs
2026-01-22_building-solveit-in-solveit
2026-01-25_ways-to-pull-repos-into-llm-context
2026-01-27_tunneling-form-solveit-to-another-machine
2026-04-06_working-with-bytes-in-python
2026-04-17_visualizing-compressed-latents
404.qmd
CONTROLLER.ipynb
_quarto.yml
_site
about.qmd
index.qmd
posts
profile.jpg
resources
styles.css

how do imove all the post folders to posts? what’s the terminal command

🤖Reply🤖

You can move all the date-prefixed post folders into posts/ with a glob that matches them:

mv 20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]_*/ posts/

That matches any directory starting with a date like 2022-05-27_. The trailing / in the pattern ensures only directories match, so files like 404.qmd won’t be touched.

If you’d rather be loose about it (all the folders here start with 20), this also works:

mv 20*/ posts/

Want to double-check what a glob will match before moving? ls -d 20[0-9][0-9]-*/ will list the folders the command would move, without moving anything.

!mv 20*/ posts/
Back to top