Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I've heard great things about zmv in zsh, and would love to really learn to use it. However, I am still relatively unexperienced in zsh, and have some basic questions:

  • Is there is a man page for zmv in zsh (man zsh outputs "No manual entry for zmv")
  • Does zmv natively allow for dry runs?
  • If the answer to the above is no, how would you test or do a dry run with zmv ?
share|improve this question

1 Answer 1

up vote 7 down vote accepted

The zmv manual is in the zshcontrib man page.

The zsh guide has a fairly detailed section on zmv. Searching for zmv on this site will turn up several usage examples of varying complexity.

You can perform a dry run with zmv -n (-n is a common way of requesting a dry run).

To benefit from zmv and friends, it helps to have code like the following in your ~/.zshrc:

autoload zmv
alias zmz='noglob zmv'
alias zcp='noglob zmv -C'
alias zln='noglob zmv -L'
alias zsy='noglob zmv -Ls'
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.