Moving from:
/www/site1/media/css/main
to
/www/site2/media/css/main
can be a pain, but not in zsh:
cd site1 site2
Find all pdf files recursively
ls **/*.pdf
Find all files bigger than 10M
ls **/*(.Lm+10)
For more examples type ls **/*(
then tab
Enter dirs -v
. You should see all the directories from your history stack.
You can use cd to navigate between its entries:
cd +4
With auto_cd, no need for cd
cd a_directory
# can be replaced with:
a_directory
https://coderwall.com/p/yepegw/mass-renaming-files-with-zmv-zsh
zmv -W '*.txt' '*.markdown'
reasoniamhere.com/2014/01/11/outrageously-useful-tips-to-master-your-z-shell linuxaria.com/howto/globbing-con-zsh