How to move Google Cloud SDK Directory

I mistakenly installed the Google Cloud SDK in the wrong directory on my local computer (I installed it in the folder with Google Drive, which is not ideal). What is the preferred way to move a folder? I have not tried anything yet, for fear of creating problems with environment variables that might have been set during installation. I am running OS X on my local machine.

+6
source share
1 answer

The cloud SDK is self-contained, so the google-cloud-sdk directory can usually be moved to where you like. The only thing that is configured outside this directory is your ~ / .bash_profile file (only if you said yes during the installation process), which adds the SDK to your PATH and sets the completion of the command tab. If you had an installer update, perhaps the easiest task is to simply completely remove the google-cloud-sdk directory and reinstall it in the right place. The installer will re-update your ~ / .bash_profile file with the new location.

+14
source

Source: https://habr.com/ru/post/977326/


All Articles