how to make chmod to rwxr-xr-x in linux code example Example: how to make a tarball in linux tar -cvzf name.tar /path/to/directory