You are using Cloud Shell and need to install a custom utility for use in a few weeks. Where can you store the file so it is in the default execution path and persists across sessions?
Choose an answer
Tap an option to check your answer.
Correct answer: ~/bin.
Why this is the answer
The ~/bin directory (which expands to /home/<user/bin) is the correct location because Cloud Shell automatically adds this directory to your PATH environment variable if it exists. This ensures that executables placed there are discoverable and runnable from any directory without needing to specify the full path. Furthermore, the entire home directory, including ~/bin, is persistent across Cloud Shell sessions, making it ideal for storing custom utilities you want to reuse. Cloud Storage is a good option for storing files, but it's an object storage service, not a local file system. Files stored there would need to be manually downloaded and made executable each time you want to use them, and it's not automatically added to the PATH. /google/scripts is a system-level directory and is not intended for user-specific executables; it's also not persistent across sessions for user modifications. /usr/local/bin is a standard system-wide location for user-installed executables, but in Cloud Shell, you typically do not have write permissions to this directory, and changes would not persist across sessions.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed