If you directly use sudo command to redirect ,you will probably get error,eg:
sudo route -n> /etc/linuxine
you will get error:
1. Creating a tar.gz file:
tar -czpf folder_name.tar.gz folder_name
this command create folder_name to folder_name.tar.gz 。