How to use the redirect command