If you directly use sudo command to redirect  ,you will probably get error,eg:

sudo route -n> /etc/linuxine

you will get error:

bash: /etc/linuxine: Permission denied

The correct command for redirection should be:
sudo sh -c “route -n > /etc/linuxine”

Essentially you need to open a new shell as root, because it’s the shell that’s doing the redirection.