Skip to content

Instantly share code, notes, and snippets.

@vik-y
Created December 18, 2017 18:46
Show Gist options
  • Save vik-y/b5613f9ff2ac21e8a22f90912228469b to your computer and use it in GitHub Desktop.
Save vik-y/b5613f9ff2ac21e8a22f90912228469b to your computer and use it in GitHub Desktop.
Frequently used commands by me for managing my server
# To compress a folder
tar czf archivename.tar.gz folder
# To email a file
echo "PFA apache config" | mutt -s "/etc/apache2" [email protected] -a apache.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment