xxxxxxxxxx
To tar and gzip a folder, the syntax is:
tar cvzf name_of_archive_file.tar.gz name_of_directory_to_tar
Adding - before the options (czf) is optional with tar. The effect of czf is as follows:
c — create an archive file (as opposed to extract, which is x)
f — filename of the archive file
z — filter archive through gzip (remove this option to create a .tar file)
v - Verbose
xxxxxxxxxx
alias t='r && sz $tether && r && sz $n'
tether='am start -n com.android.settings/com.android.settings.TetherSettings && input keyevent 66 && input keyevent 66'
n='netcfg rndis0 dhcp'
alias sz='ad shell'
alias de='ad devices -l'
alias r='ad kill-server && ad start-server'
alias ad='adb'
alias pu='adb push'
xxxxxxxxxx
run the script
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser